openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/WPUWBW01/WPUWBW:
    post:
      summary: 'POS interface: Upload goods movements'
      operationId: /idoc/WPUWBW01/WPUWBW
      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
                E1WPG01:
                  type: array
                  items:
                    properties:
                      BELEGDATUM:
                        type: string
                        maxLength: 8
                        description: Date of Document
                      BONNUMMER:
                        type: string
                        maxLength: 15
                        description: External reference no. (GR/I slip)
                      KASSIERER:
                        type: string
                        maxLength: 10
                        description: Cashier
                      AUTORISIER:
                        type: string
                        maxLength: 10
                        description: Authorized by
                      E1WPG02:
                        type: array
                        items:
                          properties:
                            QUALVORG:
                              type: string
                              maxLength: 4
                              description: Qualifier reference transaction
                            REFERENZNR:
                              type: string
                              maxLength: 25
                              description: Number of reference transaction
                            LITEM:
                              type: string
                              maxLength: 10
                              description: Item of POS document
                            QUALARTNR:
                              type: string
                              maxLength: 4
                              description: Qualifier for following field
                            ARTNR:
                              type: string
                              maxLength: 25
                              description: Material Number
                            BEWART:
                              type: string
                              maxLength: 4
                              description: Movement Type
                            MEINH:
                              type: string
                              maxLength: 4
                              description: Sales Unit
                            MENGE:
                              type: string
                              maxLength: 10
                              description: POS goods movement quantity
                            LIEFMENGE:
                              type: string
                              maxLength: 10
                              description: Delivery note quantity
                            WAERS:
                              type: string
                              maxLength: 4
                              description: Currency code
                            WERT:
                              type: string
                              maxLength: 20
                              description: Value
                            EXBWR:
                              type: string
                              maxLength: 20
                              description: External Valuation Price
                            ZFILIALE:
                              type: string
                              maxLength: 10
                              description: POS target store
                            KUNDNR:
                              type: string
                              maxLength: 25
                              description: Number
                            VERKAEUFER:
                              type: string
                              maxLength: 10
                              description: Personnel Number
                            LGORT:
                              type: string
                              maxLength: 4
                              description: Storage Location
                            CHARG:
                              type: string
                              maxLength: 10
                              description: Batch
                            LIFNR:
                              type: string
                              maxLength: 10
                              description: Vendor Number
                            SAKNR:
                              type: string
                              maxLength: 10
                              description: G/L Account
                            KOSTL:
                              type: string
                              maxLength: 10
                              description: Cost Center
                            SOBKZ:
                              type: string
                              maxLength: 1
                              description: Special Stock Indicator
                            ELIKZ:
                              type: string
                              maxLength: 1
                              description: Delivery Completed Indicator?
                            KZBEW:
                              type: string
                              maxLength: 1
                              description: 'Movement Indicator: ""=Goods movement w/o reference,B=Goods movement for purchase order,F=Goods movement for production order,L=Goods movement for delivery note,K=Goods movement for kanban requirement (WM - internal only),O=Subsequent adjustment of "material-provided" consumption,W=Subsequent adjustment of proportion/product unit material'
                              enum:
                              - ''
                              - B
                              - F
                              - L
                              - K
                              - O
                              - W
                            GRUND:
                              type: string
                              maxLength: 4
                              description: Reason for Movement
                            VFDAT:
                              type: string
                              maxLength: 8
                              description: POS shelf-life expiration date or use-by date
                            CHECK:
                              type: string
                              maxLength: 1
                              description: Goods Movement Check
                            UMLGO:
                              type: string
                              maxLength: 4
                              description: Storage Location
                            E1WXX01:
                              type: array
                              items:
                                properties:
                                  FLDGRP:
                                    type: string
                                    maxLength: 5
                                    description: Field Group
                                  FLDNAME:
                                    type: string
                                    maxLength: 10
                                    description: Field Name
                                  FLDVAL:
                                    type: string
                                    maxLength: 40
                                    description: Field Value
                          required:
                          - E1WPG02
                    required:
                    - E1WPG01
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
