Adding Outbound Numbers (V1)
Scenario
This interface is invoked to add outbound numbers to an outbound campaign.
Usage Description
- Prerequisites
- You have applied for a developer account.
- The outbound campaign has been created.
- Restrictions
- The number of incomplete outbound calls in an outbound campaign cannot exceed 200,000.
- A maximum of 20 numbers can be added to an outbound campaign task at a time, and the interface invoking time cannot be less than 1 second.
- The called numbers to be added each time must be unique.
- The called numbers to be added each time are not in the blocklist. If a blocklisted number is added, a failure message is displayed when the interface for adding outbound numbers sends a request to the server.
Method
This interface supports only the POST method.
URL
https://ip:port/rest/isales/v1/openapi/campaigns/{vdnId}/calldata/{campaignId}
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.
|
No. |
Parameter |
Value Type |
Mandatory |
Description |
|---|---|---|---|---|
|
1 |
vdnId |
Integer |
Yes |
VCC ID. The value is an integer ranging from 1 to 9999. |
|
2 |
campaignId |
Integer |
Yes |
ID of an outbound campaign. |
Request Description
|
No. |
Parameter |
Value Type |
Mandatory |
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. |
|
3 |
locale |
String |
No |
i18n (internationalization, Language International Code), for example, zh_CN indicates Chinese and en_US indicates English. The default value is zh_CN. |
|
No. |
Parameter |
Value Type |
Mandatory |
Description |
|---|---|---|---|---|
|
1 |
callDataList |
List |
Yes |
List of data to be added. A maximum of 20 data records are supported. For details about the parameters of this object, see Table 4. |
|
2 |
batchId |
String |
No |
Batch ID. |
Response Description
|
No. |
Parameter |
Value 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 6. |
|
No. |
Parameter |
Value Type |
Description |
|---|---|---|---|
|
5.1 |
totalSize |
Integer |
Total number of outbound calls that the system needs to make. |
|
5.1 |
datalist |
Object |
For details, see Table 7. |
Triggered Event
None
Error Codes
|
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 invoking 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:
{ "batchId": "174667380880136549777962146073", "callDataList": [ { "sessionId": "00750", "called": "80021" }, { "sessionId": "00850", "called": "80022" }, { "sessionId": "00950", "called": "80023" }, { "sessionId": "01050", "called": "80024" } ] } - The following provides an example of the response body of this interface:
{ "returnCode": "0200000", "returnObject": { "totalSize": 2, "dataIdList": [ { "called": "88880399", "dataId": "1803096731904991234" }, { "called": "88880399", "dataId": "1803096731997265922" } ] }, "resultCode": "0200000", "resultDesc": "create data succeeded", "returnDesc": "create data succeeded" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot