openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_BANK_GETDETAIL:
    post:
      tags:
      - '1011'
      summary: Details on Banks
      operationId: /rfc/BAPI_BANK_GETDETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BANKCOUNTRY:
                  type: string
                  maxLength: 3
                  description: Bank Country Key
                BANKKEY:
                  type: string
                  maxLength: 15
                  description: Bank Key
              required:
              - BANKCOUNTRY
              - BANKKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BANK_ADDRESS:
                    type: object
                    properties:
                      BANK_NAME:
                        type: string
                        maxLength: 60
                        description: Name of bank
                      REGION:
                        type: string
                        maxLength: 3
                        description: Region (State, Province, County)
                      STREET:
                        type: string
                        maxLength: 35
                        description: House number and street
                      CITY:
                        type: string
                        maxLength: 35
                        description: City
                      SWIFT_CODE:
                        type: string
                        maxLength: 11
                        description: SWIFT Code for International Payments
                      BANK_GROUP:
                        type: string
                        maxLength: 2
                        description: Bank group (bank network)
                      POBK_CURAC:
                        type: string
                        maxLength: 1
                        description: 'Post Office Bank Current Account  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      BANK_NO:
                        type: string
                        maxLength: 15
                        description: Bank number
                      POST_BANK:
                        type: string
                        maxLength: 16
                        description: Post office bank current account number
                      BANK_BRANCH:
                        type: string
                        maxLength: 40
                        description: Bank Branch
                      ADDR_NO:
                        type: string
                        maxLength: 10
                        description: Address number
                  BANK_DETAIL:
                    type: object
                    properties:
                      CREAT_DATE:
                        type: string
                        format: date
                        description: Date on which the record was created
                      CREATOR:
                        type: string
                        maxLength: 12
                        description: Name of person who created the object
                      METHOD:
                        type: string
                        maxLength: 4
                        description: Check digit calculation method
                      FORMATTING:
                        type: string
                        maxLength: 3
                        description: Format of File with Bank Data
                      BANK_DELETE:
                        type: string
                        maxLength: 1
                        description: 'Deletion Indicator  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                  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
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
