openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPS_WAITFORCALL:
    post:
      tags:
      - PH1S
      operationId: /rfc/SPS_WAITFORCALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXT:
                  type: string
                  maxLength: 30
                WORKMODE:
                  type: integer
                  format: int64
                CALLDATA:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJNAME:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Info object name'
                      INSTANCE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Info object number'
                      KEYNAME:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Info object information - name'
                      VALUE:
                        type: string
                        maxLength: 255
                        description: 'SAPphone: Info object information - value'
                EXTCALLS:
                  type: array
                  items:
                    type: object
                    properties:
                      HANDLE:
                        type: string
                        maxLength: 32
                        description: Call identifier assigned by WS software
                      STATE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                        enum:
                        - '01'
                        - '00'
                        - '03'
                        - '04'
                        - '06'
                        - '02'
                        - '05'
                        - '07'
                      PARTY:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      PTYPE:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                        enum:
                        - I
                        - E
                      DNIS:
                        type: string
                        maxLength: 30
                        description: Telephone number
                EXTTABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      TELNO:
                        type: string
                        maxLength: 30
                        description: Telephone number
              required:
              - EXT
              - WORKMODE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BAS_ID:
                    type: string
                    maxLength: 32
                    description: 'Routing: Value of an Attribute Group Member'
                  ERR_TEXT:
                    type: string
                    maxLength: 80
                  HANDLE:
                    type: string
                    maxLength: 32
                  IN_EXT:
                    type: string
                    maxLength: 30
                  LINK:
                    type: string
                    maxLength: 1024
                    description: 'SAPphone: Link'
                  ORIGINATOR:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 3
                        description: 'SAPconnect: Address type  enumValues: X40=X.400 mail address,*=All,PAG=Pager (SMS) number,RML=SAPoffice address,FAX=Fax number,INT=Internet mail address,PRT=Printer name'
                        enum:
                        - X40
                        - '*'
                        - PAG
                        - RML
                        - FAX
                        - INT
                        - PRT
                      ADDRESS:
                        type: string
                        maxLength: 241
                        description: E-Mail Address
                  REASON:
                    type: integer
                    format: int64
                  RETURNCODE:
                    type: string
                    maxLength: 4
                  SENT_TO:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 3
                        description: 'SAPconnect: Address type  enumValues: X40=X.400 mail address,*=All,PAG=Pager (SMS) number,RML=SAPoffice address,FAX=Fax number,INT=Internet mail address,PRT=Printer name'
                        enum:
                        - X40
                        - '*'
                        - PAG
                        - RML
                        - FAX
                        - INT
                        - PRT
                      ADDRESS:
                        type: string
                        maxLength: 241
                        description: E-Mail Address
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                  TITLE:
                    type: string
                    maxLength: 250
                    description: 'SAPphone: Title'
                  TYPE_OF_REQUEST:
                    type: string
                    maxLength: 10
                    description: 'SAPphone: Type of Inbound Inquiry'
                  CALLDATA:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJNAME:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Info object name'
                        INSTANCE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Info object number'
                        KEYNAME:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Info object information - name'
                        VALUE:
                          type: string
                          maxLength: 255
                          description: 'SAPphone: Info object information - value'
                  EXTCALLS:
                    type: array
                    items:
                      type: object
                      properties:
                        HANDLE:
                          type: string
                          maxLength: 32
                          description: Call identifier assigned by WS software
                        STATE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Call status  enumValues: 01=Initiated,00=Unknown,03=Connected,04=On hold,06=Failed,02=Ringing,05=In queue,07=Offered'
                          enum:
                          - '01'
                          - '00'
                          - '03'
                          - '04'
                          - '06'
                          - '02'
                          - '05'
                          - '07'
                        PARTY:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        PTYPE:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Type of call partner (internal/external)  enumValues: I=Internal,E=External'
                          enum:
                          - I
                          - E
                        DNIS:
                          type: string
                          maxLength: 30
                          description: Telephone number
                  EXTTABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        TELNO:
                          type: string
                          maxLength: 30
                          description: Telephone number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
