openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_EXCHANGERATE_GETDETAIL:
    post:
      tags:
      - BUS1093
      summary: Exchange Rate Stored for Exch.Rate Type, Currency Pair, Value Date
      operationId: /rfc/BAPI_EXCHANGERATE_GETDETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE:
                  type: string
                  format: date
                  description: Value Date
                FROM_CURR:
                  type: string
                  maxLength: 5
                  description: From Currency
                RATE_TYPE:
                  type: string
                  maxLength: 4
                  description: Exchange Rate Type
                TO_CURRNCY:
                  type: string
                  maxLength: 5
                  description: To Currency
              required:
              - DATE
              - FROM_CURR
              - RATE_TYPE
              - TO_CURRNCY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXCH_RATE:
                    type: object
                    properties:
                      RATE_TYPE:
                        type: string
                        maxLength: 4
                        description: Exchange rate type
                      FROM_CURR:
                        type: string
                        maxLength: 5
                        description: From currency
                      TO_CURRNCY:
                        type: string
                        maxLength: 5
                        description: To-currency
                      VALID_FROM:
                        type: string
                        format: date
                        description: Date from Which Entry Is Valid
                      EXCH_RATE:
                        type: integer
                        format: int64
                        description: Direct Quoted Exchange Rate
                      FROM_FACTOR:
                        type: integer
                        format: int64
                        description: Ratio for the "from" currency units
                      TO_FACTOR:
                        type: integer
                        format: int64
                        description: Ratio for the "to" currency units
                      EXCH_RATE_V:
                        type: integer
                        format: int64
                        description: Indirect Quoted Exchange Rate
                      FROM_FACTOR_V:
                        type: integer
                        format: int64
                        description: Ratio for the "from" currency units
                      TO_FACTOR_V:
                        type: integer
                        format: int64
                        description: Ratio for the "to" currency units
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
