openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_CURRENCY_GETLIST:
    post:
      tags:
      - BUS1090
      summary: Display All Currency Codes Existing in the SAP System
      operationId: /rfc/BAPI_CURRENCY_GETLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CURRENCY_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CURRENCY:
                        type: string
                        maxLength: 5
                        description: Currency Key
                      CURRENCY_ISO:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                      ALT_CURR:
                        type: string
                        maxLength: 3
                        description: Alternative key for currencies
                      VALID_TO:
                        type: string
                        format: date
                        description: Date until which the currency is valid
                      LONG_TEXT:
                        type: string
                        maxLength: 40
                        description: Long Text
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      CODE:
                        type: string
                        maxLength: 5
                        description: Message code
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                  CURRENCY_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CURRENCY:
                          type: string
                          maxLength: 5
                          description: Currency Key
                        CURRENCY_ISO:
                          type: string
                          maxLength: 3
                          description: ISO currency code
                        ALT_CURR:
                          type: string
                          maxLength: 3
                          description: Alternative key for currencies
                        VALID_TO:
                          type: string
                          format: date
                          description: Date until which the currency is valid
                        LONG_TEXT:
                          type: string
                          maxLength: 40
                          description: Long Text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
