openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXMI_XOM_JOBS_CALLBACK:
    post:
      tags:
      - SXOM
      summary: Callback Routine for Events That Affect Print Requests
      operationId: /rfc/SXMI_XOM_JOBS_CALLBACK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                RMG_ID:
                  type: string
                  maxLength: 20
                JOB_EVENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      SPOOLID:
                        type: string
                        maxLength: 15
                        description: External Representation of SAP Spool ID
                      TIMESTAMP:
                        type: string
                        maxLength: 14
                        description: Time stamp of callback event
                      JOBSTATE:
                        type: integer
                        format: int64
                        description: Status code for print requests
                      CLASSCODE:
                        type: integer
                        format: int64
                        description: Error class of event
                      AREACODE:
                        type: integer
                        format: int64
                        description: Area code of event
                      RESULTCODE:
                        type: integer
                        format: int64
                        description: Result code for print requests
                      QUEUEPOS:
                        type: integer
                        format: int64
                        description: Position of print request in queue
                      PPAGES:
                        type: integer
                        format: int64
                        description: Pages of a print request printed
                      WAITTIME:
                        type: integer
                        format: int64
                        description: Estimated wait time for print request (minutes)
                      MSGCLASS:
                        type: string
                        maxLength: 16
                        description: 'XMI logging: company name of external management tool'
                      MSGID:
                        type: string
                        maxLength: 30
                        description: Message ID for an XMI log entry
                      MSGARG1:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE1:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG2:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE2:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG3:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE3:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGARG4:
                        type: string
                        maxLength: 128
                        description: Argument string for an XMI log
                      ARGTYPE4:
                        type: string
                        maxLength: 1
                        description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                        enum:
                        - C
                        - U
                        - T
                        - D
                      MSGTEXT:
                        type: string
                        maxLength: 128
                        description: Actual text of message
              required:
              - RMG_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CALLBACK_AMOUNT:
                    type: integer
                    format: int64
                  CALLBACK_INTERVAL:
                    type: integer
                    format: int64
                  CONFIG_DEVICES:
                    type: string
                    maxLength: 1
                  CONFIG_GROUPS:
                    type: string
                    maxLength: 1
                  JOB_EVENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        SPOOLID:
                          type: string
                          maxLength: 15
                          description: External Representation of SAP Spool ID
                        TIMESTAMP:
                          type: string
                          maxLength: 14
                          description: Time stamp of callback event
                        JOBSTATE:
                          type: integer
                          format: int64
                          description: Status code for print requests
                        CLASSCODE:
                          type: integer
                          format: int64
                          description: Error class of event
                        AREACODE:
                          type: integer
                          format: int64
                          description: Area code of event
                        RESULTCODE:
                          type: integer
                          format: int64
                          description: Result code for print requests
                        QUEUEPOS:
                          type: integer
                          format: int64
                          description: Position of print request in queue
                        PPAGES:
                          type: integer
                          format: int64
                          description: Pages of a print request printed
                        WAITTIME:
                          type: integer
                          format: int64
                          description: Estimated wait time for print request (minutes)
                        MSGCLASS:
                          type: string
                          maxLength: 16
                          description: 'XMI logging: company name of external management tool'
                        MSGID:
                          type: string
                          maxLength: 30
                          description: Message ID for an XMI log entry
                        MSGARG1:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE1:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG2:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE2:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG3:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE3:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGARG4:
                          type: string
                          maxLength: 128
                          description: Argument string for an XMI log
                        ARGTYPE4:
                          type: string
                          maxLength: 1
                          description: 'Argument type of an XMI log entry  enumValues: C=Character string not to be interpreted,U=Date, time from time stamp (UTC),T=Time from time stamp (UTC),D=Date from time stamp (UTC)'
                          enum:
                          - C
                          - U
                          - T
                          - D
                        MSGTEXT:
                          type: string
                          maxLength: 128
                          description: Actual text of message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
