openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/COLLECTIONDATA_SENDITEMS01/COLLECTIONDATA_SENDITEMS:
    post:
      summary: 'FSCM-COL: Send Data for Collections Management'
      operationId: /idoc/COLLECTIONDATA_SENDITEMS01/COLLECTIONDATA_SENDITEMS
      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
                E1BP_COLL_KEY_FIGURES:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      LOG_SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system
                      XINITIAL_LOAD:
                        type: string
                        maxLength: 1
                        description: 'Recreation of Data for Collections Management: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      XNO_DIRECT_PAYER:
                        type: string
                        maxLength: 1
                        description: 'Business Partner Is Not Direct Payer: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      TIMESTAMP:
                        type: number
                        maxLength: 16
                        description: 'Time Stamep: Time Data Was Created or Updated'
                E1BP_COLL_LAST_PAYMENT:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      LAST_PAYMENT_DAT:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date of Last Payment
                      LAST_PAYMENT_AMT:
                        type: number
                        maxLength: 25
                        description: Amount of Last Payment
                      LAST_PAYMENT_CUR:
                        type: string
                        maxLength: 5
                        description: Currency of Last Payment
                      ISO_CODE:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                E1BP_COLL_ITEMS:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      OPEN_ITEM_REF:
                        type: string
                        maxLength: 50
                        description: Reference to Open Invoice Item
                      INVOICE_REF:
                        type: string
                        maxLength: 50
                        description: Reference to Document (Invoice Reference)
                      INVOICE_REF_TYPE:
                        type: string
                        maxLength: 2
                        description: Type of Follow-On Document
                      OPEN_ITEM_AMT:
                        type: number
                        maxLength: 25
                        description: Amount in Document Currency
                      OPEN_ITEM_CURR:
                        type: string
                        maxLength: 5
                        description: Document Currency
                      ISO_CODE:
                        type: string
                        maxLength: 3
                        description: ISO currency code
                      PAY_AMOUNT_DAYS1:
                        type: number
                        maxLength: 25
                        description: Amount Payable if Payment within Cash Discount Deadline 1
                      PAY_AMOUNT_DAYS2:
                        type: number
                        maxLength: 25
                        description: Amount Payable if Payment within Cash Discount Deadline 2
                      END_CASH_DISC1:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date to Which Cash Discount Terms 1 Are Valid
                      END_CASH_DISC2:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date to Which Cash Discount Terms 2 Are Valid
                      NET_DUE_DATE:
                        type: string
                        format: date
                        maxLength: 8
                        description: Due Date for Net Payment
                      BLINE_DATE:
                        type: string
                        format: date
                        maxLength: 8
                        description: Baseline date for due date calculation
                      XARRANGED_PAY:
                        type: string
                        maxLength: 1
                        description: 'Arranged for Payment: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      LAST_DUNN_DATE:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date of Last Dunning Notice
                      DUNN_LEVEL:
                        type: string
                        maxLength: 1
                        description: 'Dunning Level: 1='
                        enum:
                        - '1'
                      LEGAL_DUNN_ON:
                        type: string
                        format: date
                        maxLength: 8
                        description: Date of Legal Dunning Procedure
                      CASE_GUID:
                        type: string
                        maxLength: 32
                        description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                      XCASE_GUID_UPD:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Update Dispute Case: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                E1BP_COLL_ITEMS_DEL:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      OPEN_ITEM_REF:
                        type: string
                        maxLength: 50
                        description: Reference to Open Invoice Item
                E1BP_COLL_EXT_KEY_FIGURES:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      ATTR_ID:
                        type: string
                        maxLength: 30
                        description: 'FSCM-DM: Attribute ID'
                      ATTR_VALUE:
                        type: string
                        maxLength: 132
                        description: 'FSCM-DM: Attribute Value'
                E1BP_COLL_EXT_ITEMS:
                  type: array
                  items:
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      COMP_CODE:
                        type: string
                        maxLength: 4
                        description: Company Code
                      OPEN_ITEM_REF:
                        type: string
                        maxLength: 50
                        description: Reference to Open Invoice Item
                      ATTR_ID:
                        type: string
                        maxLength: 30
                        description: 'FSCM-DM: Attribute ID'
                      ATTR_VALUE:
                        type: string
                        maxLength: 132
                        description: 'FSCM-DM: Attribute Value'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
