openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SXMB_WRITE_MESSAGE_RAW:
    post:
      tags:
      - SXMBPERSIST
      operationId: /rfc/SXMB_WRITE_MESSAGE_RAW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CODE_VERSION:
                  type: string
                  maxLength: 5
                DYNAMIC_ATTR:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAM_NAMESPACE:
                        type: string
                        maxLength: 255
                        description: Namespace for Dynamic Configuration
                      PARAM_NAME:
                        type: string
                        maxLength: 50
                        description: Parameter Name
                      PARAM_VALUE:
                        type: string
                        maxLength: 200
                        description: Parameter Value
                MAIN_ATTR:
                  type: object
                  properties:
                    MESSAGE_CLASS:
                      type: string
                      maxLength: 2
                      description: 'XI: Message Class'
                    VERSION:
                      type: object
                      properties:
                        MAJOR:
                          type: integer
                          format: int64
                          description: Protocol Version for Incompatible Changes
                        MINOR:
                          type: integer
                          format: int64
                          description: Protocol Version for Compatible Changes
                    PROCESSING_MODE:
                      type: string
                      maxLength: 1
                      description: 'XI: Processing Type'
                    MESSAGE_ID:
                      type: string
                      format: byte
                      description: 'XI: Message ID'
                    REF_TO_MESSAGE_ID:
                      type: string
                      format: byte
                      description: 'XI: Message ID'
                    CONVERSATION_ID:
                      type: string
                      maxLength: 60
                      description: 'XI: Conversation ID'
                    TIME_SENT:
                      type: integer
                      format: int64
                      description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                    SENDER:
                      type: object
                      properties:
                        PARTYAGENCY:
                          type: string
                          maxLength: 120
                          description: 'XI Partner: Agency'
                        PARTYTYPE:
                          type: string
                          maxLength: 120
                          description: 'XI Partner: Identification Schema'
                        PARTY:
                          type: string
                          maxLength: 60
                          description: 'XI: Communication Party'
                        SERVICE:
                          type: string
                          maxLength: 60
                          description: 'XI: Service'
                        NAME:
                          type: string
                          maxLength: 120
                          description: 'XI: Interface Name'
                        NAMESPACE:
                          type: string
                          maxLength: 255
                          description: 'XI: Interface Namespace'
                    INTERFACE:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 120
                          description: 'XI: Interface Name'
                        NAMESPACE:
                          type: string
                          maxLength: 255
                          description: 'XI: Interface Namespace'
                    WSUID:
                      type: string
                      description: ID for Web Service Security
                    RECEIVERS:
                      type: array
                      items:
                        type: object
                        properties:
                          PARTYAGENCY:
                            type: string
                            maxLength: 120
                            description: 'XI Partner: Agency'
                          PARTYTYPE:
                            type: string
                            maxLength: 120
                            description: 'XI Partner: Identification Schema'
                          PARTY:
                            type: string
                            maxLength: 60
                            description: 'XI: Communication Party'
                          SERVICE:
                            type: string
                            maxLength: 60
                            description: 'XI: Service'
                          NAME:
                            type: string
                            maxLength: 120
                            description: 'XI: Interface Name'
                          NAMESPACE:
                            type: string
                            maxLength: 255
                            description: 'XI: Interface Namespace'
                          OBJECT_ID:
                            type: string
                            format: byte
                            description: 'XI Runtime: GUID'
                          SWCV_ID:
                            type: string
                            format: byte
                            description: 'XI Runtime: GUID'
                          SP:
                            type: integer
                            format: int32
                            description: Natural number
                          NOT_REQUIRED:
                            type: string
                            maxLength: 1
                            description: Mapping Required?
                          PROPERTY_ID:
                            type: string
                            format: byte
                            description: 'XI Runtime: GUID'
                MESSAGEKEY:
                  type: object
                  properties:
                    MSGID:
                      type: string
                      maxLength: 32
                      description: GUID in 'CHAR' Format in Uppercase
                    PID:
                      type: string
                      maxLength: 40
                      description: 'Integration Engine: Pipeline ID'
                MESSAGEPAYLOAD:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTENTTYPE:
                        type: string
                        description: 'Integration Engine: XML String'
                      PAYLOAD:
                        type: string
                        format: byte
                        description: Message Stream
                      HREF:
                        type: string
                        description: ''
                      NAME:
                        type: string
                        description: ''
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'XI: XI Message Payload Type'
                      TEXT:
                        type: string
                        description: Description
                TASK:
                  type: integer
                  format: int32
                TIMESTAMP:
                  type: integer
                  format: int64
                VERSION:
                  type: integer
                  format: int64
              required:
              - CODE_VERSION
              - DYNAMIC_ATTR
              - MAIN_ATTR
              - MESSAGEKEY
              - MESSAGEPAYLOAD
              - TASK
              - TIMESTAMP
              - VERSION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXCEPTION:
                    type: object
                    properties:
                      CATEGORY:
                        type: string
                        maxLength: 20
                        description: 'XI: Error Category'
                      AREA:
                        type: string
                        maxLength: 20
                        description: 'XI: System Error Area'
                      ID:
                        type: string
                        maxLength: 30
                        description: 'XI: Error ID'
                      TEXT:
                        type: string
                        description: 'Integration Engine: Error Text'
                      TRANSFERCODE:
                        type: integer
                        format: int32
                        description: Transfer Code
                      RETRY:
                        type: string
                        maxLength: 1
                        description: 'XI: System Error Classification by Correctability  enumValues: M=Correctable By Manual Retry,A=Correctable By Automatic Retry,N=Not Correctable'
                        enum:
                        - M
                        - A
                        - N
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
