openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPS_STAT_DATA_GET:
    post:
      tags:
      - PH1STATISTICS
      operationId: /rfc/SPS_STAT_DATA_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                END_TMSP:
                  type: integer
                  format: int64
                  description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                MAX_PACKAGE_SIZE:
                  type: integer
                  format: int64
                  description: 'SAPphone: Stat. Data - Upload Package Size (# of Con. Steps)'
                START_TMSP:
                  type: integer
                  format: int64
                  description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                CON_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      CON_ID:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Statistics - Connection ID'
                      REQ_TYPE:
                        type: integer
                        format: int64
                        description: 'SAPphone: Request Type (Phone Call, E-Mail, Fax, ...)  enumValues: 05=Co-Browsing,01=Telephone Call,02=E-mail,04=Chat,03=Fax,06=Web Call Back'
                        enum:
                        - '05'
                        - '01'
                        - '02'
                        - '04'
                        - '03'
                        - '06'
                      CON_DIRECT:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Connection Direction (Inbound, Outbound, Autom c.)  enumValues: 2=Outbound,3=Automatic Call,1=Inbound'
                        enum:
                        - '2'
                        - '3'
                        - '1'
                      EXT_ADTY:
                        type: string
                        maxLength: 3
                        description: 'SAPphone: Address Types  enumValues: IP=IP Address,FAX=Fax Address,TEL=Telephone Number,INT=Internet mail address,URL=URL'
                        enum:
                        - IP
                        - FAX
                        - TEL
                        - INT
                        - URL
                      EXT_ADDR:
                        type: string
                        maxLength: 241
                        description: 'SAPphone: Statistical Data - External Address'
                      INT_ADTY:
                        type: string
                        maxLength: 3
                        description: 'SAPphone: Address Types  enumValues: IP=IP Address,FAX=Fax Address,TEL=Telephone Number,INT=Internet mail address,URL=URL'
                        enum:
                        - IP
                        - FAX
                        - TEL
                        - INT
                        - URL
                      INT_ADDR:
                        type: string
                        maxLength: 241
                        description: 'SAPphone: Statistical Data - Internal Address'
                      START_TMSP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      F_ABAND:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Statistical Data - Flag Abandoned (''X''/'' '')  enumValues: ""=off,X=on'
                        enum:
                        - ''
                        - X
                      QUEUE:
                        type: string
                        maxLength: 30
                        description: 'SAPphone: ACD group/campaign'
                CON_STEPS:
                  type: array
                  items:
                    type: object
                    properties:
                      CON_ID:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Statistics - Connection ID'
                      STEP_NO:
                        type: integer
                        format: int64
                        description: 'SAPphone: Statistical Data - Connection Step Number'
                      STEP_DIREC:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Statistical Data - Connection Step Direction  enumValues: 2=Outbound,3=Transfer,1=Inbound,4=Conference'
                        enum:
                        - '2'
                        - '3'
                        - '1'
                        - '4'
                      STEP_TYP:
                        type: string
                        maxLength: 2
                        description: 'SAPphone: Statistical Data - Connection Step Type  enumValues: 21=Obsolete,12=IVR,10=Ring,31=Preparation Time,11=Queue,30=After Call Work,20=Processing'
                        enum:
                        - '21'
                        - '12'
                        - '10'
                        - '31'
                        - '11'
                        - '30'
                        - '20'
                      1STAGT_EXT:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      1STAGT_CCU:
                        type: string
                        maxLength: 15
                        description: 'SAPphone: Call center user ID'
                      2NDAGT_EXT:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      2NDAGT_CCU:
                        type: string
                        maxLength: 15
                        description: 'SAPphone: Call center user ID'
                      START_TMSP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      STEP_TIME:
                        type: string
                        maxLength: 6
                        description: 'SAPphone: Statistical Data - Connection Step Duration'
                      TRANSF_NO:
                        type: integer
                        format: int64
                        description: 'SAPphone: Statistical Data - Connection Step Transfer Number'
                      STEP_DAYS:
                        type: integer
                        format: int64
                        description: 'SAPphone: Statistical Data - Step Duration in Days'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERR_TEXT:
                    type: string
                    maxLength: 80
                    description: Unformatted text (information only)
                  NO_MORE_DATA:
                    type: string
                    maxLength: 1
                  RETURNCODE:
                    type: string
                    maxLength: 4
                    description: 'SAPphone: Return code'
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                    description: Return code from external software
                  CON_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        CON_ID:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Statistics - Connection ID'
                        REQ_TYPE:
                          type: integer
                          format: int64
                          description: 'SAPphone: Request Type (Phone Call, E-Mail, Fax, ...)  enumValues: 05=Co-Browsing,01=Telephone Call,02=E-mail,04=Chat,03=Fax,06=Web Call Back'
                          enum:
                          - '05'
                          - '01'
                          - '02'
                          - '04'
                          - '03'
                          - '06'
                        CON_DIRECT:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Connection Direction (Inbound, Outbound, Autom c.)  enumValues: 2=Outbound,3=Automatic Call,1=Inbound'
                          enum:
                          - '2'
                          - '3'
                          - '1'
                        EXT_ADTY:
                          type: string
                          maxLength: 3
                          description: 'SAPphone: Address Types  enumValues: IP=IP Address,FAX=Fax Address,TEL=Telephone Number,INT=Internet mail address,URL=URL'
                          enum:
                          - IP
                          - FAX
                          - TEL
                          - INT
                          - URL
                        EXT_ADDR:
                          type: string
                          maxLength: 241
                          description: 'SAPphone: Statistical Data - External Address'
                        INT_ADTY:
                          type: string
                          maxLength: 3
                          description: 'SAPphone: Address Types  enumValues: IP=IP Address,FAX=Fax Address,TEL=Telephone Number,INT=Internet mail address,URL=URL'
                          enum:
                          - IP
                          - FAX
                          - TEL
                          - INT
                          - URL
                        INT_ADDR:
                          type: string
                          maxLength: 241
                          description: 'SAPphone: Statistical Data - Internal Address'
                        START_TMSP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        F_ABAND:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Statistical Data - Flag Abandoned (''X''/'' '')  enumValues: ""=off,X=on'
                          enum:
                          - ''
                          - X
                        QUEUE:
                          type: string
                          maxLength: 30
                          description: 'SAPphone: ACD group/campaign'
                  CON_STEPS:
                    type: array
                    items:
                      type: object
                      properties:
                        CON_ID:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Statistics - Connection ID'
                        STEP_NO:
                          type: integer
                          format: int64
                          description: 'SAPphone: Statistical Data - Connection Step Number'
                        STEP_DIREC:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Statistical Data - Connection Step Direction  enumValues: 2=Outbound,3=Transfer,1=Inbound,4=Conference'
                          enum:
                          - '2'
                          - '3'
                          - '1'
                          - '4'
                        STEP_TYP:
                          type: string
                          maxLength: 2
                          description: 'SAPphone: Statistical Data - Connection Step Type  enumValues: 21=Obsolete,12=IVR,10=Ring,31=Preparation Time,11=Queue,30=After Call Work,20=Processing'
                          enum:
                          - '21'
                          - '12'
                          - '10'
                          - '31'
                          - '11'
                          - '30'
                          - '20'
                        1STAGT_EXT:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        1STAGT_CCU:
                          type: string
                          maxLength: 15
                          description: 'SAPphone: Call center user ID'
                        2NDAGT_EXT:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        2NDAGT_CCU:
                          type: string
                          maxLength: 15
                          description: 'SAPphone: Call center user ID'
                        START_TMSP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        STEP_TIME:
                          type: string
                          maxLength: 6
                          description: 'SAPphone: Statistical Data - Connection Step Duration'
                        TRANSF_NO:
                          type: integer
                          format: int64
                          description: 'SAPphone: Statistical Data - Connection Step Transfer Number'
                        STEP_DAYS:
                          type: integer
                          format: int64
                          description: 'SAPphone: Statistical Data - Step Duration in Days'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
