Batch Sending Multi Content SMS
https://api.laaffic.com/v3/sendSms/batch
Parameters | Description | Required | Type |
---|---|---|---|
appId | App ID (Account Management – App Management - appId properties) | Yes | String |
array | Json gather | Yes | Array |
numbers | SMS Receiving Phone Number(COMMA required between each phone number) | Yes | String |
content | SMS content, length should not be over the 1024 characters.(GET should use urlEncode) | Yes | String |
senderId | sender number(name). The maximum length is 32 characters. | No | String |
orderId | Customer id. The number of orderId must be consistent with the number of mobile phone numbers. | No | String |
Request URL:
https://api.laaffic.com/v3/sendSms/batch
Request Method:
POST
Request Headers:
Content-Type: application/json;charset=UTF-8
Sign: 05d7a50893e22a5c4bb3216ae3396c7c
Timestamp: 1630468800
Api-Key: bDqJFiq9
Request Body:
{
"appId": "4luaKsL2",
"array": [
{
"numbers": "91856321412,91856321413",
"content": "test message",
"senderId": "",
"orderId": "56584,56585"
},
{
"numbers": "91856321414",
"content": "test message1",
"senderId": "",
"orderId": "56586"
}
]
}
Parameters | Description | Type |
---|---|---|
status | "0" means successful,others than 0 means failure, seeing Status Code description. | String |
reason | failure reason description | String |
success | The number of Numbers in the submitted successfully | String |
fail | The number of Numbers in the submitted fails | String |
array | Json gather | JSONArray |
msgId | submitted numbers id corresponding to platform | String |
number | submitted numbers | String |
orderId | customer id | String |
Note: After the SMS is successfully submitted and sent, the system will generate a platform msgId for each successfully submitted number. Customers can query the sending results of the number basing on the msgId.
status | Description |
---|---|
0 | success |
-1 | Authentication error |
-2 | Restricted IP access |
-3 | Sensitive characters in SMS content |
-4 | SMS content is empty |
-5 | The SMS content is too long |
-6 | SMS that is not a template |
-7 | Phone number exceeds limit |
-8 | The phone number is empty |
-9 | Abnormal phone number |
-10 | The customer's balance is insufficient |
-16 | Timestamp expires |
-18 | port program unusual |
-19 | Please contact the business managers binding channel |
Need help?
Click here and start chatting with us!