openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/BANK_CREATE01/BANK_CREATE:
    post:
      summary: Create bank
      operationId: /idoc/BANK_CREATE01/BANK_CREATE
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1BANK_CREATE:
                  type: array
                  items:
                    properties:
                      BANK_CTRY:
                        type: string
                        maxLength: 3
                        description: Bank country key
                      BANK_KEY:
                        type: string
                        maxLength: 15
                        description: Bank Keys
                      BANK_METHOD:
                        type: string
                        maxLength: 4
                        description: Check digit calculation method
                      BANK_FORMATTING:
                        type: string
                        maxLength: 3
                        description: Format of File with Bank Data
                      E1BP1011_ADDRESS:
                        type: array
                        items:
                          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: X=Yes,""=No'
                              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
                      E1BPADR1:
                        type: array
                        items:
                          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: ""=Not checked,C=checked against city index,D=differs from city index'
                              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
                            E1BPADR11:
                              type: array
                              items:
                                properties:
                                  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: X=Yes,""=No'
                                    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
                          required:
                          - E1BPADR1
                    required:
                    - E1BANK_CREATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
