openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_BANK_CREATE:
    post:
      tags:
      - '1011'
      summary: Create Bank
      operationId: /rfc/BAPI_BANK_CREATE
      requestBody:
        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_ADDRESS1:
                  type: object
                  properties:
                    ADDR_NO:
                      type: string
                      maxLength: 10
                      description: Address number
                    FORMOFADDR:
                      type: string
                      maxLength: 20
                      description: Form of address text
                    NAME:
                      type: string
                      maxLength: 40
                      description: Name 1
                    NAME_2:
                      type: string
                      maxLength: 40
                      description: Name 2
                    NAME_3:
                      type: string
                      maxLength: 40
                      description: Name 3
                    NAME_4:
                      type: string
                      maxLength: 40
                      description: Name 4
                    C_O_NAME:
                      type: string
                      maxLength: 40
                      description: c/o name
                    CITY:
                      type: string
                      maxLength: 40
                      description: City
                    DISTRICT:
                      type: string
                      maxLength: 40
                      description: District
                    CITY_NO:
                      type: string
                      maxLength: 12
                      description: City code for city/street file
                    POSTL_COD1:
                      type: string
                      maxLength: 10
                      description: City postal code
                    POSTL_COD2:
                      type: string
                      maxLength: 10
                      description: PO Box postal code
                    POSTL_COD3:
                      type: string
                      maxLength: 10
                      description: Company postal code (for large customers)
                    PO_BOX:
                      type: string
                      maxLength: 10
                      description: PO Box
                    PO_BOX_CIT:
                      type: string
                      maxLength: 40
                      description: PO Box city
                    DELIV_DIS:
                      type: string
                      maxLength: 15
                      description: (Not Supported) Post Delivery District
                    STREET:
                      type: string
                      maxLength: 40
                      description: Street name
                    STREET_NO:
                      type: string
                      maxLength: 12
                      description: Street Number for City/Street File
                    STR_ABBR:
                      type: string
                      maxLength: 2
                      description: (Not Supported) Abbreviation of Street Name
                    HOUSE_NO:
                      type: string
                      maxLength: 10
                      description: House Number
                    STR_SUPPL1:
                      type: string
                      maxLength: 40
                      description: Street 2
                    STR_SUPPL2:
                      type: string
                      maxLength: 40
                      description: Street 3
                    LOCATION:
                      type: string
                      maxLength: 40
                      description: Street 5
                    BUILDING:
                      type: string
                      maxLength: 10
                      description: 'old: building (no. or abbreviation)'
                    FLOOR:
                      type: string
                      maxLength: 10
                      description: Floor in building
                    ROOM_NO:
                      type: string
                      maxLength: 10
                      description: Room or Appartment Number
                    COUNTRY:
                      type: string
                      maxLength: 3
                      description: Country Key
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    REGION:
                      type: string
                      maxLength: 3
                      description: Region (State, Province, County)
                    SORT1:
                      type: string
                      maxLength: 20
                      description: Search Term 1
                    SORT2:
                      type: string
                      maxLength: 20
                      description: Search Term 2
                    TIME_ZONE:
                      type: string
                      maxLength: 6
                      description: Address time zone
                    TAXJURCODE:
                      type: string
                      maxLength: 15
                      description: Tax Jurisdiction
                    ADR_NOTES:
                      type: string
                      maxLength: 50
                      description: Address notes
                    COMM_TYPE:
                      type: string
                      maxLength: 3
                      description: Communication Method (Key) (Business Address Services)
                    TEL1_NUMBR:
                      type: string
                      maxLength: 30
                      description: 'First telephone no.: dialling code+number'
                    TEL1_EXT:
                      type: string
                      maxLength: 10
                      description: 'First Telephone No.: Extension'
                    FAX_NUMBER:
                      type: string
                      maxLength: 30
                      description: 'First fax no.: dialling code+number'
                    FAX_EXTENS:
                      type: string
                      maxLength: 10
                      description: 'First fax no.: extension'
                    STREET_LNG:
                      type: string
                      maxLength: 60
                      description: Street
                    DISTRCT_NO:
                      type: string
                      maxLength: 8
                      description: District code for City and Street file
                    CHCKSTATUS:
                      type: string
                      maxLength: 1
                      description: 'City file test status  enumValues: C=checked against city index,D=differs from city index,""=Not checked'
                      enum:
                      - C
                      - D
                      - ''
                    PBOXCIT_NO:
                      type: string
                      maxLength: 12
                      description: City PO box code (City file)
                    TRANSPZONE:
                      type: string
                      maxLength: 10
                      description: Transportation zone to or from which the goods are delivered
                    HOUSE_NO2:
                      type: string
                      maxLength: 10
                      description: House number supplement
                    E_MAIL:
                      type: string
                      maxLength: 241
                      description: E-Mail Address
                    STR_SUPPL3:
                      type: string
                      maxLength: 40
                      description: Street 4
                    TITLE:
                      type: string
                      maxLength: 30
                      description: Title text
                    COUNTRYISO:
                      type: string
                      maxLength: 2
                      description: Country ISO code
                    LANGU_ISO:
                      type: string
                      maxLength: 2
                      description: Language according to ISO 639
                    BUILD_LONG:
                      type: string
                      maxLength: 20
                      description: Building (Number or Code)
                    REGIOGROUP:
                      type: string
                      maxLength: 8
                      description: Regional structure grouping
                    HOME_CITY:
                      type: string
                      maxLength: 40
                      description: City (different from postal city)
                    HOMECITYNO:
                      type: string
                      maxLength: 12
                      description: Different city for city/street file
                    PCODE1_EXT:
                      type: string
                      maxLength: 10
                      description: (Not Supported)City Postal Code Extension, e.g. ZIP+4+2 Code
                    PCODE2_EXT:
                      type: string
                      maxLength: 10
                      description: (Not Supported) PO Box Postal Code Extension
                    PCODE3_EXT:
                      type: string
                      maxLength: 10
                      description: (Not Supported) Major Customer Postal Code Extension
                    PO_W_O_NO:
                      type: string
                      maxLength: 1
                      description: 'Flag: PO Box without number  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PO_BOX_REG:
                      type: string
                      maxLength: 3
                      description: Region for PO Box (Country, State, Province, ...)
                    POBOX_CTRY:
                      type: string
                      maxLength: 3
                      description: PO box country
                    PO_CTRYISO:
                      type: string
                      maxLength: 2
                      description: Country ISO code
                    HOMEPAGE:
                      type: string
                      maxLength: 132
                      description: URI, e.g. Homepage or ftp Address
                    DONT_USE_S:
                      type: string
                      maxLength: 4
                      description: Street Address Undeliverable Flag
                    DONT_USE_P:
                      type: string
                      maxLength: 4
                      description: PO Box Address Undeliverable Flag
                    HOUSE_NO3:
                      type: string
                      maxLength: 10
                      description: (Not supported) House Number Range
                    LANGU_CR:
                      type: string
                      maxLength: 1
                      description: Address record creation original language
                    LANGUCRISO:
                      type: string
                      maxLength: 2
                      description: Language according to ISO 639
                BANK_CTRY:
                  type: string
                  maxLength: 3
                  description: Bank Country
                BANK_FORMATTING:
                  type: string
                  maxLength: 3
                  description: Format of file with bank data
                BANK_KEY:
                  type: string
                  maxLength: 15
                  description: Bank Key
                BANK_METHOD:
                  type: string
                  maxLength: 4
                  description: Check digit calculation method
              required:
              - BANK_ADDRESS
              - BANK_CTRY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BANKCOUNTRY:
                    type: string
                    maxLength: 3
                    description: Bank Country Key
                  BANKKEY:
                    type: string
                    maxLength: 15
                    description: Bank Key
                  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.
