Updated on 2023-09-27 GMT+08:00

Querying a Single External Result

Scenario

This interface is invoked to query a single outbound call external result. It is provided for the retry policy interface to create non-retry policies.

Usage Description

  • Prerequisites
    • The corresponding AK/SK authentication permission is available.
    • You have applied for a developer account.

Method

This interface supports only the GET method.

URI

https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}/{defId}/queryObsResultDetail

In the URL, ip indicates the IP address of the CC-iSales server, and port indicates the HTTPS port number of the CC-iSales server.

Table 1 Parameters in the URL

No.

Parameter

Type

Mandatory or Not

Description

1

vdnId

Integer

Yes

VDN ID.

The value is an integer ranging from 1 to 9999.

2

defId

Integer

Yes

External result ID to be queried.

Request Description

Table 2 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

Yes

The value is fixed to application/json; charset=UTF-8.

2

Authorization

String

Yes

For details about the generation mode, see C2 Monitoring, System Outbound Call, CDR, and Knowledge Base Interface Authentication.

Response Description

Table 3 Response body parameters

No.

Parameter

Type

Description

1

resultCode

String

Error code. The value 0200000 indicates success, and other values indicate failure.

For details, see Table 6.

2

resultDesc

String

Description.

3

obResult

JSON object

External result data.

4

returnCode

String

Error code. The value 0200000 indicates success, and other values indicate failure.

For details, see Table 6.

5

returnDesc

String

Description.

Table 4 obResult

No.

Parameter

Type

Description

1

defId

String

External result ID.

2

displayResult

String

External result.

3

vdnId

Integer

vdnId

4

resultCode

String

External result code.

5

resultMapList

List <JSON object>

OBS result code corresponding to an external result code.

Table 5 resultMapList

No.

Parameter

Type

Description

1

mapId

String

ID of the mapping between the external result and OBS result code.

2

defId

String

External result ID.

3

failCode

String

OBS result code.

4

vdnId

Integer

vdnId

Error Codes

Table 6 Error code description

No.

Error Code

Description

1

0200001

Parameter error. For details about the error, see resultDesc.

2

02000001

Empty parameter.

3

02000002

The parameter contains invalid characters.

4

02000003

The parameter length cannot exceed the maximum length.

5

02000004

The parameter length cannot be less than the minimum length.

6

02000005

The parameter length must be within the specified range.

7

02000006

Incorrect parameter type.

8

02000007

Incorrect parameter value.

9

02000008

Parameter conversion error. Check the request parameters.

10

02000009

Incorrect parameter combination. Check the request parameters.

11

02000010

The hour and minute parameters must be set at the same time.

12

02000011

The number of parameters cannot exceed the specified number.

Example

  • The following provides an example of the response body of this interface:
    {
      "returnCode": "0200000",
      "obResult": {
        "defId": "1402245659",
        "displayResult": "6: The call is not answered.",
        "vdnId": 40,
        "resultCode": "002",
        "resultMapList": [
          {
            "mapId": "1059886898",
            "defId": "1402245659",
            "failCode": "34609",
            "vdnId": "40"
              },
          {
            "mapId": "1162133679",
            "defId": "1402245659",
            "failCode": "00008",
            "vdnId": "40"
          }
        ]
      },
      "resultCode": "0200000",
      "resultDesc": "queryObsResultDetail success",
      "returnDesc": "queryObsResultDetail success"
    }