openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SPS_STATCAMPAIGN:
    post:
      tags:
      - PD02
      operationId: /rfc/SPS_STATCAMPAIGN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AGENT_NAME:
                  type: string
                  maxLength: 15
                CAMPAIGNID:
                  type: string
                  maxLength: 32
                END_TMSP:
                  type: integer
                  format: int64
                START_TMSP:
                  type: integer
                  format: int64
                PDSTATISTC:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        maxLength: 32
                        description: Planned Call GUID
                      NO_TRIES:
                        type: integer
                        format: int64
                        description: 'SAPphone: Automatic Dialing - Number of Tries'
                      HW_DISP:
                        type: string
                        maxLength: 15
                        description: 'SAPphone: PD hardware disposition (fax/busy/answer machine)'
                      TELNO:
                        type: string
                        maxLength: 30
                        description: Telephone number
                      AGENT_NAME:
                        type: string
                        maxLength: 15
                        description: 'SAPphone: Call center user ID'
                      CAMPAIGNID:
                        type: string
                        maxLength: 32
                        description: 'SAPphone: Automatic Dialing Campaign ID'
                      CALL_TMSP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      DIAL_TIME:
                        type: string
                        maxLength: 6
                        description: 'SAPphone: Duration of PD call'
                      FINISHED:
                        type: string
                        maxLength: 1
                        description: 'SAPphone: Boolean field (''X'' for on, '' '' for off)  enumValues: ""=off,X=on'
                        enum:
                        - ''
                        - X
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERR_TEXT:
                    type: string
                    maxLength: 80
                    description: Error description
                  RETURNCODE:
                    type: string
                    maxLength: 4
                  SYSTEM_RC_X:
                    type: string
                    maxLength: 10
                  PDSTATISTC:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          maxLength: 32
                          description: Planned Call GUID
                        NO_TRIES:
                          type: integer
                          format: int64
                          description: 'SAPphone: Automatic Dialing - Number of Tries'
                        HW_DISP:
                          type: string
                          maxLength: 15
                          description: 'SAPphone: PD hardware disposition (fax/busy/answer machine)'
                        TELNO:
                          type: string
                          maxLength: 30
                          description: Telephone number
                        AGENT_NAME:
                          type: string
                          maxLength: 15
                          description: 'SAPphone: Call center user ID'
                        CAMPAIGNID:
                          type: string
                          maxLength: 32
                          description: 'SAPphone: Automatic Dialing Campaign ID'
                        CALL_TMSP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        DIAL_TIME:
                          type: string
                          maxLength: 6
                          description: 'SAPphone: Duration of PD call'
                        FINISHED:
                          type: string
                          maxLength: 1
                          description: 'SAPphone: Boolean field (''X'' for on, '' '' for off)  enumValues: ""=off,X=on'
                          enum:
                          - ''
                          - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
