Updated on 2025-11-13 GMT+08:00

Importing Outbound Call Data to a Task Group

Scenario

This interface is invoked to import outbound call data for task group management.

Usage Description

  • Prerequisites
    • You have applied for a developer account.
    • You have created a task group.

Method

This interface supports only the POST method.

URL

https://IP address:Port number/rest/isales/v1/openapi/campaigns/{vdnId}/groupcalldata?campaignGroupId={taskGroupId}

In the URL, IP address indicates the IP address of the CC-iSales server, and Port number 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

VCC ID.

The value is an integer ranging from 1 to 9999.

2

taskGroupId

String

Yes

Task ID.

You can click a task group to view the task ID in task group details on the Task Group Management page.

Request Description

Table 2 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

Yes

The value is fixed at 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.

Table 3 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1

callDataList

List

Yes

List of data records to be added. A maximum of 20 data records are supported.

For details about the parameters of this object, see Table 4.

Table 4 Parameter description of callDataList

No.

Parameter

Type

Mandatory or Not

Description

1.1

sessionId

String

No

Customer ID, which is sent back to the customer in the outbound call result.

The value can contain a maximum of 32 characters.

1.2

called

List

Yes

Called number.

The value can contain a maximum of 24 characters, including only digits, asterisks (*), and number signs (#).

1.3

caller

String

No

Calling number.

The value can contain a maximum of 24 characters.

1.4

customField

String

No

User-defined field. The value can contain a maximum of 200 characters and cannot contain the following special characters: `~!@#$%^&*()+=|{}'":;<>/?.\[]¥...-,

1.5

recycleTime

String

No

Recycling time, in yyyy-mm-dd hh:mm:ss format.

1.6

callData

String

No

Call-associated data. The value can contain a maximum number of 1024 characters.

CAUTION:
  • If an automatic outbound call involves an intelligent IVR flow, the value of this parameter must be in JSON format.

    The intelligent IVR flow invokes the JSON Data Invoking diagram element to parse and assign values to the call-associated data in JSON format. For details about the implementation and usage of the diagram element, see JSON Data Invoking (Expired and Not Recommended).

  • The following is a JSON format example. Customize the information in italics and retain other information.

    "callData":"{\\\"fullName\\\":\\\"Lin Zihang\\\",\\\"date\\\":\\\"March 31, 2022\\\",\\\"riskName\\\":\\\"Compulsory traffic insurance\\\"}"

1.7

priority

String

No

The priority can be set. The value ranges from 1 to 5. The default value is 3. The value 1 indicates the highest priority, and the value 5 indicates the lowest priority. When an outbound call task is executed, the outbound call data is extracted by priority.

Table 5 Parameter description of called

No.

Parameter

Type

Mandatory or Not

Description

1.2.1

calledNo

String

Yes

Called number of a customer.

The value can contain a maximum of 24 characters, including only digits, asterisks (*), and number signs (#).

1.2.2

delayTime

String

No

Call interval of each customer number, in seconds. The value ranges from 0 to 86400, and the default value is 0.

1.2.3

type

String

No

Type of a customer number.

  • This parameter is mandatory when Policy Type under OUTBOUND CALL RESULT POLICY is set to Contact Policy during outbound campaign addition.
  • This parameter is mandatory when Call Mode under CALL POLICY is set to By round during outbound campaign addition.

    The value is customized and can contain a maximum of 20 characters, excluding special characters.

Response Description

Table 6 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 8.

2

resultDesc

String

Description.

3

returnCode

String

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

For details, see Table 8.

4

returnDesc

String

Description.

5

returnObject

Object

For details, see Table 7.

Table 7 Parameter description of returnObject

No.

Parameter

Type

Description

5.1

totalSize

Integer

Total number of outbound calls that the system needs to make.

Triggered Event

None

Error Codes

Table 8 Error code description

No.

Error Code

Description

1

0200001

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

2

0200006

Database operation error.

3

0200007

The outbound campaign does not exist.

4

0200018

Duplicate numbers exist.

5

0200019

The number cannot be added in the current state.

6

0200020

The number quantity exceeds the upper limit 200,000.

7

0200022

The interface invocation time is short.

8

0200024

The number to be added is in the blocklist.

9

0200029

The maximum number of numbers that can be added each time is exceeded.

10

0200030

The time format is incorrect.

11

02000001

Empty parameter.

12

02000002

The parameter contains invalid characters.

13

02000003

The parameter length cannot exceed the maximum length.

14

02000004

The parameter length cannot be less than the minimum length.

15

02000005

The parameter length must be within the specified range.

16

02000006

Incorrect parameter type.

17

02000007

Incorrect parameter value.

18

02000008

Parameter conversion error. Check the request parameters.

19

02000009

Incorrect parameter combination. Check the request parameters.

20

02000010

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

21

02000011

The number of parameters cannot exceed the specified number.

Example

  • The following provides an example of the request body of this interface:
    {
        "callDataList": [
            {
                "sessionId": "12340001",
                "priority": 1,
                "called": [
                    {
                        "calledNo": "138111001",
                        "type": "SI"
                    }
                ]
            },
            {
                "sessionId": "12340002",
                "priority": 2,
                "called": [
                    {
                        "calledNo": "186000034",
                        "type": "SI"
                    }
                ]
            }
        ]
    }
  • The following provides an example of the response body of this interface:
    {
        "resultCode": "0200000",
        "resultDesc": "",
        "returnCode": "0200000",
        "returnDesc": "",
        "returnObject": {
            "totalSize": 46
        }
    }