openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/INCOMING_CALL_DISPATCH:
    post:
      tags:
      - PHOI
      operationId: /rfc/INCOMING_CALL_DISPATCH
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALL:
                  type: object
                  properties:
                    CALL_DATE:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    CALL_TIME:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                    ADDRNUMBER:
                      type: string
                      maxLength: 10
                      description: Address number
                    PERSNUMBER:
                      type: string
                      maxLength: 10
                      description: Person number
                    ADDR_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    CALLER_TAB:
                      type: string
                      maxLength: 4
                      description: Address data area ID
                    NO_CALLING:
                      type: string
                      maxLength: 30
                      description: Telephone number
                    NO_DIALED:
                      type: string
                      maxLength: 30
                      description: Telephone number
                    DIALED_MOD:
                      type: string
                      maxLength: 30
                      description: Telephone number
                    NO_TRANSF:
                      type: string
                      maxLength: 30
                      description: Telephone number
                    TRANSF_MOD:
                      type: string
                      maxLength: 30
                      description: Telephone number
                    CALL_ENDED:
                      type: string
                      maxLength: 1
                      description: 'SAPphone: Boolean field (''X'' for on, '' '' for off)  enumValues: ""=off,X=on'
                      enum:
                      - ''
                      - X
                    SERVER:
                      type: string
                      maxLength: 6
                      description: Name of SAPconnect Node or Telephony Server
                    CALLSTATE:
                      type: string
                      maxLength: 15
                      description: 'SAPphone: Call status'
                    HANDLE:
                      type: string
                      maxLength: 32
                      description: Call identifier assigned by WS software
                TRANSFERRED_BY:
                  type: object
                  properties:
                    ADDRNUMBER:
                      type: string
                      maxLength: 10
                      description: Address number
                    PERSNUMBER:
                      type: string
                      maxLength: 10
                      description: Person number
                    ADDR_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    ATIC_ID:
                      type: string
                      maxLength: 4
                      description: Address data area ID
                    COMPANY:
                      type: string
                      maxLength: 35
                      description: Name 1
                    NAME:
                      type: string
                      maxLength: 35
                      description: Name 1
                    STREET:
                      type: string
                      maxLength: 35
                      description: House number and street
                    CITY:
                      type: string
                      maxLength: 35
                      description: City
                    CITYCODE:
                      type: string
                      maxLength: 10
                      description: Postal code
                    COUNTRY:
                      type: string
                      maxLength: 3
                      description: Country Key
                    REGION:
                      type: string
                      maxLength: 3
                      description: Region (State, Province, County)
                    TELNO:
                      type: string
                      maxLength: 30
                      description: Telephone number
                ADDITIONAL_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 20
                        description: 'SAPphone: Parameter name'
                      VALUE:
                        type: string
                        maxLength: 55
                        description: 'SAPphone: Parameter value (length 55)'
                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'
                CALLER:
                  type: array
                  items:
                    type: object
                    properties:
                      ADDRNUMBER:
                        type: string
                        maxLength: 10
                        description: Address number
                      PERSNUMBER:
                        type: string
                        maxLength: 10
                        description: Person number
                      ADDR_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      ATIC_ID:
                        type: string
                        maxLength: 4
                        description: Address data area ID
                      COMPANY:
                        type: string
                        maxLength: 35
                        description: Name 1
                      NAME:
                        type: string
                        maxLength: 35
                        description: Name 1
                      STREET:
                        type: string
                        maxLength: 35
                        description: House number and street
                      CITY:
                        type: string
                        maxLength: 35
                        description: City
                      CITYCODE:
                        type: string
                        maxLength: 10
                        description: Postal code
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country Key
                      REGION:
                        type: string
                        maxLength: 3
                        description: Region (State, Province, County)
                      TELNO:
                        type: string
                        maxLength: 30
                        description: Telephone number
                CALLER_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ADDRNUMBER:
                        type: string
                        maxLength: 10
                        description: Address number
                      PERSNUMBER:
                        type: string
                        maxLength: 10
                        description: Person number
                      ADDR_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      ADDRHANDLE:
                        type: string
                        maxLength: 140
                        description: Handle for Creating Addresses/Persons (Bus. Addr. Services)
                      PERSHANDLE:
                        type: string
                        maxLength: 140
                        description: Handle for Creating Addresses/Persons (Bus. Addr. Services)
                      ATIC_ID:
                        type: string
                        maxLength: 4
                        description: Address data area ID
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      DESCRIBE:
                        type: string
                        maxLength: 10
                        description: Describe flag
                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
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CALLER_OUT:
                    type: object
                    properties:
                      ADDRNUMBER:
                        type: string
                        maxLength: 10
                        description: Address number
                      PERSNUMBER:
                        type: string
                        maxLength: 10
                        description: Person number
                      ADDR_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                        enum:
                        - '1'
                        - '2'
                        - '3'
                      ATIC_ID:
                        type: string
                        maxLength: 4
                        description: Address data area ID
                      COMPANY:
                        type: string
                        maxLength: 35
                        description: Name 1
                      NAME:
                        type: string
                        maxLength: 35
                        description: Name 1
                      STREET:
                        type: string
                        maxLength: 35
                        description: House number and street
                      CITY:
                        type: string
                        maxLength: 35
                        description: City
                      CITYCODE:
                        type: string
                        maxLength: 10
                        description: Postal code
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country Key
                      REGION:
                        type: string
                        maxLength: 3
                        description: Region (State, Province, County)
                      TELNO:
                        type: string
                        maxLength: 30
                        description: Telephone number
                  ADDITIONAL_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 20
                          description: 'SAPphone: Parameter name'
                        VALUE:
                          type: string
                          maxLength: 55
                          description: 'SAPphone: Parameter value (length 55)'
                  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'
                  CALLER:
                    type: array
                    items:
                      type: object
                      properties:
                        ADDRNUMBER:
                          type: string
                          maxLength: 10
                          description: Address number
                        PERSNUMBER:
                          type: string
                          maxLength: 10
                          description: Person number
                        ADDR_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                          enum:
                          - '1'
                          - '2'
                          - '3'
                        ATIC_ID:
                          type: string
                          maxLength: 4
                          description: Address data area ID
                        COMPANY:
                          type: string
                          maxLength: 35
                          description: Name 1
                        NAME:
                          type: string
                          maxLength: 35
                          description: Name 1
                        STREET:
                          type: string
                          maxLength: 35
                          description: House number and street
                        CITY:
                          type: string
                          maxLength: 35
                          description: City
                        CITYCODE:
                          type: string
                          maxLength: 10
                          description: Postal code
                        COUNTRY:
                          type: string
                          maxLength: 3
                          description: Country Key
                        REGION:
                          type: string
                          maxLength: 3
                          description: Region (State, Province, County)
                        TELNO:
                          type: string
                          maxLength: 30
                          description: Telephone number
                  CALLER_OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ADDRNUMBER:
                          type: string
                          maxLength: 10
                          description: Address number
                        PERSNUMBER:
                          type: string
                          maxLength: 10
                          description: Person number
                        ADDR_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Address type (1=Organization, 2=Person, 3=Contact person)  enumValues: 1=Organization, Company,2=Private address,3=Contact person (in company)'
                          enum:
                          - '1'
                          - '2'
                          - '3'
                        ADDRHANDLE:
                          type: string
                          maxLength: 140
                          description: Handle for Creating Addresses/Persons (Bus. Addr. Services)
                        PERSHANDLE:
                          type: string
                          maxLength: 140
                          description: Handle for Creating Addresses/Persons (Bus. Addr. Services)
                        ATIC_ID:
                          type: string
                          maxLength: 4
                          description: Address data area ID
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                        DESCRIBE:
                          type: string
                          maxLength: 10
                          description: Describe flag
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
