openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_COLL_SEND_ITEMS:
    post:
      tags:
      - BDM_COLLECTION_DATA
      summary: 'FSCM-COL: Send Data for Collections Management'
      operationId: /rfc/BAPI_COLL_SEND_ITEMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXT_ITEMS:
                  type: array
                  items:
                    type: object
                    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'
                EXT_KEY_FIGURES:
                  type: array
                  items:
                    type: object
                    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'
                ITEMS:
                  type: array
                  items:
                    type: object
                    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: integer
                        format: int64
                        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: integer
                        format: int64
                        description: Amount Payable if Payment within Cash Discount Deadline 1
                      PAY_AMOUNT_DAYS2:
                        type: integer
                        format: int64
                        description: Amount Payable if Payment within Cash Discount Deadline 2
                      END_CASH_DISC1:
                        type: string
                        format: date
                        description: Date to Which Cash Discount Terms 1 Are Valid
                      END_CASH_DISC2:
                        type: string
                        format: date
                        description: Date to Which Cash Discount Terms 2 Are Valid
                      NET_DUE_DATE:
                        type: string
                        format: date
                        description: Due Date for Net Payment
                      BLINE_DATE:
                        type: string
                        format: date
                        description: Baseline date for due date calculation
                      XARRANGED_PAY:
                        type: string
                        maxLength: 1
                        description: 'Arranged for Payment  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      LAST_DUNN_DATE:
                        type: string
                        format: date
                        description: Date of Last Dunning Notice
                      DUNN_LEVEL:
                        type: integer
                        format: int64
                        description: 'Dunning Level  enumValues: 1='
                        enum:
                        - '1'
                      LEGAL_DUNN_ON:
                        type: string
                        format: date
                        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  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                ITEMS_DEL:
                  type: array
                  items:
                    type: object
                    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
                KEY_FIGURES:
                  type: array
                  items:
                    type: object
                    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  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      XNO_DIRECT_PAYER:
                        type: string
                        maxLength: 1
                        description: 'Business Partner Is Not Direct Payer  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                      TIMESTAMP:
                        type: integer
                        format: int64
                        description: 'Time Stamep: Time Data Was Created or Updated'
                LAST_PAYMENT:
                  type: array
                  items:
                    type: object
                    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
                        description: Date of Last Payment
                      LAST_PAYMENT_AMT:
                        type: integer
                        format: int64
                        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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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
                  EXT_ITEMS:
                    type: array
                    items:
                      type: object
                      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'
                  EXT_KEY_FIGURES:
                    type: array
                    items:
                      type: object
                      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'
                  ITEMS:
                    type: array
                    items:
                      type: object
                      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: integer
                          format: int64
                          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: integer
                          format: int64
                          description: Amount Payable if Payment within Cash Discount Deadline 1
                        PAY_AMOUNT_DAYS2:
                          type: integer
                          format: int64
                          description: Amount Payable if Payment within Cash Discount Deadline 2
                        END_CASH_DISC1:
                          type: string
                          format: date
                          description: Date to Which Cash Discount Terms 1 Are Valid
                        END_CASH_DISC2:
                          type: string
                          format: date
                          description: Date to Which Cash Discount Terms 2 Are Valid
                        NET_DUE_DATE:
                          type: string
                          format: date
                          description: Due Date for Net Payment
                        BLINE_DATE:
                          type: string
                          format: date
                          description: Baseline date for due date calculation
                        XARRANGED_PAY:
                          type: string
                          maxLength: 1
                          description: 'Arranged for Payment  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
                        LAST_DUNN_DATE:
                          type: string
                          format: date
                          description: Date of Last Dunning Notice
                        DUNN_LEVEL:
                          type: integer
                          format: int64
                          description: 'Dunning Level  enumValues: 1='
                          enum:
                          - '1'
                        LEGAL_DUNN_ON:
                          type: string
                          format: date
                          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  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
                  ITEMS_DEL:
                    type: array
                    items:
                      type: object
                      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
                  KEY_FIGURES:
                    type: array
                    items:
                      type: object
                      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  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
                        XNO_DIRECT_PAYER:
                          type: string
                          maxLength: 1
                          description: 'Business Partner Is Not Direct Payer  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: 'Time Stamep: Time Data Was Created or Updated'
                  LAST_PAYMENT:
                    type: array
                    items:
                      type: object
                      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
                          description: Date of Last Payment
                        LAST_PAYMENT_AMT:
                          type: integer
                          format: int64
                          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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
