openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_IDOC_R3I_INCOMING:
    post:
      tags:
      - EDII
      summary: 'CA-EDI: Conversion of IDoc data -> IDoc when received by SAPoffice'
      operationId: /rfc/EDI_IDOC_R3I_INCOMING
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADDRESS:
                  type: string
                  maxLength: 17
                  description: Address identification (17 bytes) for control record
                OBJECTTYPE:
                  type: string
                  default: IDC
                  maxLength: 3
                  description: Object type ('IDC' expected)
                REFERENCE_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: '''X'': Object type contains references'
                IDOCS:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
                RECEIVERS:
                  type: array
                  items:
                    type: object
                    properties:
                      RECEIVER:
                        type: string
                        maxLength: 1215
                        description: 'SAPoffice: Name of the recipient of a document (also ext.)'
                      REC_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Specification of recipient type  enumValues: K=Pager/SMS,G=Organization object/ID,J=SAP object,H=Organizational unit/position,D=X.500 Address,R=SAP user in another SAP System,""=Name,P=Private distribution list,X=X.400 address,O=SAPoffice user,A=External address,L=Telex number,1=Other Recipient Types,F=Fax number,C=Shared distribution list,B=SAP user,U=Internet address'
                        enum:
                        - K
                        - G
                        - J
                        - H
                        - D
                        - R
                        - ''
                        - P
                        - X
                        - O
                        - A
                        - L
                        - '1'
                        - F
                        - C
                        - B
                        - U
                      REC_ID:
                        type: string
                        maxLength: 17
                        description: Recipient ID
                      REPLY_DOC:
                        type: string
                        maxLength: 46
                        description: Object ID of the document being replied to
                      REC_DATE:
                        type: string
                        format: date
                        description: Date document was received
                      PROXY_ID:
                        type: string
                        maxLength: 17
                        description: ID of the substitute who (also) received the object
                      RETRN_CODE:
                        type: string
                        maxLength: 4
                        description: Return code
                      EXPRESS:
                        type: string
                        maxLength: 1
                        description: 'Send express  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      COPY:
                        type: string
                        maxLength: 1
                        description: 'Send: As copy  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      BLIND_COPY:
                        type: string
                        maxLength: 1
                        description: 'Send as a blind copy  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NO_FORWARD:
                        type: string
                        maxLength: 1
                        description: 'You cannot forward this message  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NO_PRINT:
                        type: string
                        maxLength: 1
                        description: 'Object cannot be printed  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_ANSWER:
                        type: string
                        maxLength: 1
                        description: 'A reply must be sent for this object  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_DO_EXPL:
                        type: string
                        maxLength: 1
                        description: 'ToDo by all recipients  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_DO_GRP:
                        type: string
                        maxLength: 1
                        description: ToDo group of the recipient
                      COM_TYPE:
                        type: string
                        maxLength: 6
                        description: 'Transmission Method (Fax, Telex, ...)  enumValues: ""=SAPoffice internal,TELEX=Telex,TELFAX=Fax'
                        enum:
                        - ''
                        - TELEX
                        - TELFAX
                      LFDNR:
                        type: string
                        maxLength: 3
                        description: 'Addresses: Sequence Number of Address'
                      FAX:
                        type: string
                        maxLength: 30
                        description: 'SAPoffice: Fax number'
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country Key
                      SPOOL_ID:
                        type: string
                        maxLength: 5
                        description: ID of the spool entry (e.g. after faxing)
                      NOTIF_DEL:
                        type: string
                        maxLength: 1
                        description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NOTIF_READ:
                        type: string
                        maxLength: 1
                        description: Read acknowledgment expected
                      NOTIF_NDEL:
                        type: string
                        maxLength: 1
                        description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      SAP_BODY:
                        type: string
                        maxLength: 1
                        description: 'Send externally with SAP data part  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                REFERENCES:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CONVERSION_DONE:
                    type: string
                    maxLength: 1
                    description: '''X'': All IDocs created'
                  IDOCS:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'Text field length 255: texts'
                  RECEIVERS:
                    type: array
                    items:
                      type: object
                      properties:
                        RECEIVER:
                          type: string
                          maxLength: 1215
                          description: 'SAPoffice: Name of the recipient of a document (also ext.)'
                        REC_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Specification of recipient type  enumValues: K=Pager/SMS,G=Organization object/ID,J=SAP object,H=Organizational unit/position,D=X.500 Address,R=SAP user in another SAP System,""=Name,P=Private distribution list,X=X.400 address,O=SAPoffice user,A=External address,L=Telex number,1=Other Recipient Types,F=Fax number,C=Shared distribution list,B=SAP user,U=Internet address'
                          enum:
                          - K
                          - G
                          - J
                          - H
                          - D
                          - R
                          - ''
                          - P
                          - X
                          - O
                          - A
                          - L
                          - '1'
                          - F
                          - C
                          - B
                          - U
                        REC_ID:
                          type: string
                          maxLength: 17
                          description: Recipient ID
                        REPLY_DOC:
                          type: string
                          maxLength: 46
                          description: Object ID of the document being replied to
                        REC_DATE:
                          type: string
                          format: date
                          description: Date document was received
                        PROXY_ID:
                          type: string
                          maxLength: 17
                          description: ID of the substitute who (also) received the object
                        RETRN_CODE:
                          type: string
                          maxLength: 4
                          description: Return code
                        EXPRESS:
                          type: string
                          maxLength: 1
                          description: 'Send express  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        COPY:
                          type: string
                          maxLength: 1
                          description: 'Send: As copy  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        BLIND_COPY:
                          type: string
                          maxLength: 1
                          description: 'Send as a blind copy  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NO_FORWARD:
                          type: string
                          maxLength: 1
                          description: 'You cannot forward this message  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NO_PRINT:
                          type: string
                          maxLength: 1
                          description: 'Object cannot be printed  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_ANSWER:
                          type: string
                          maxLength: 1
                          description: 'A reply must be sent for this object  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_DO_EXPL:
                          type: string
                          maxLength: 1
                          description: 'ToDo by all recipients  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_DO_GRP:
                          type: string
                          maxLength: 1
                          description: ToDo group of the recipient
                        COM_TYPE:
                          type: string
                          maxLength: 6
                          description: 'Transmission Method (Fax, Telex, ...)  enumValues: ""=SAPoffice internal,TELEX=Telex,TELFAX=Fax'
                          enum:
                          - ''
                          - TELEX
                          - TELFAX
                        LFDNR:
                          type: string
                          maxLength: 3
                          description: 'Addresses: Sequence Number of Address'
                        FAX:
                          type: string
                          maxLength: 30
                          description: 'SAPoffice: Fax number'
                        COUNTRY:
                          type: string
                          maxLength: 3
                          description: Country Key
                        SPOOL_ID:
                          type: string
                          maxLength: 5
                          description: ID of the spool entry (e.g. after faxing)
                        NOTIF_DEL:
                          type: string
                          maxLength: 1
                          description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NOTIF_READ:
                          type: string
                          maxLength: 1
                          description: Read acknowledgment expected
                        NOTIF_NDEL:
                          type: string
                          maxLength: 1
                          description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        SAP_BODY:
                          type: string
                          maxLength: 1
                          description: 'Send externally with SAP data part  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                  REFERENCES:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'Text field length 255: texts'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
