openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UPB_EXCHRATE_GETRATES:
    post:
      tags:
      - UPB_BCF
      operationId: /rfc/UPB_EXCHRATE_GETRATES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE_FROM:
                  type: string
                  format: date
                  default: '01010001'
                  description: Date
                DATE_TO:
                  type: string
                  format: date
                  description: Date
                DATE_TYPE:
                  type: string
                  default: V
                  maxLength: 1
                  description: 'Date Type: See Long Text'
                RATE_TYPE:
                  type: string
                  default: M
                  maxLength: 4
                  description: Exchange Rate Type
                SHOW_PROTOCOL:
                  type: string
                  maxLength: 1
                  description: 'Indicator: Display Log'
                EXCH_RATE_LIST:
                  type: array
                  items:
                    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
                FROM_CURR_RANGE:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 5
                        description: From currency
                      HIGH:
                        type: string
                        maxLength: 5
                        description: From currency
                TO_CURRNCY_RANGE:
                  type: array
                  items:
                    type: object
                    properties:
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 5
                        description: To-currency
                      HIGH:
                        type: string
                        maxLength: 5
                        description: To-currency
              required:
              - DATE_TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXCH_RATE_LIST:
                    type: array
                    items:
                      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
                  FROM_CURR_RANGE:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 5
                          description: From currency
                        HIGH:
                          type: string
                          maxLength: 5
                          description: From currency
                  RETURN:
                    type: array
                    items:
                      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
                  TO_CURRNCY_RANGE:
                    type: array
                    items:
                      type: object
                      properties:
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 5
                          description: To-currency
                        HIGH:
                          type: string
                          maxLength: 5
                          description: To-currency
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
