Use batch HTTP push to receive the review status for card SMS templates (MnsCardTemplate).
Protocol
Parameter | Description |
Request protocol | HTTP |
Request format | application/json |
Encoding | UTF-8 |
Request
The request body is a JSON array where each object represents the review status of a single template.
Sample request
[
{
"approval_status":2,
"extData":{},
"tmpOps":[{"state":2,"desc":"Rejected","vendorCode":"MEIZU"},{"state":2,"desc":"Rejected","vendorCode":"OPPO"},{"state":2,"desc":"Rejected","vendorCode":"XIAOMI"},{"state":2,"desc":"Rejected","vendorCode":"HUAWEI"}],
"template_code":"CARD_SMS_****",
"desc":"**Rejected: Rejected\r\n**Rejected: Rejected\r\n**Rejected: Rejected\r\n**Rejected: Rejected"
}
]Fields
Parameter | Type | Description |
approval_status | Integer | The overall review status of the template.
|
extData | Struct | The custom parameters from your template submission request. |
tmpOps | List | The review status from each mobile phone manufacturer. |
template_code | String | The card SMS template code. |
desc | String | A description of the overall status. |
tmpOps fields
Parameter | Type | Description |
state | Integer | The review status from the mobile phone manufacturer.
|
desc | String | The review feedback from the mobile phone manufacturer. |
vendorCode | String | The identifier for the mobile phone manufacturer. |
Response
Sample response
{
"code" : 0,
"msg" : "Received"
}Fields
Parameter | Type | Required | Example | Description |
code | Number | Yes | 0 | The response code. |
msg | String | No | Received | A descriptive message. |
The system only verifies that the
codein your response body is a number and does not validate its value. To acknowledge receipt of the notification, your endpoint must return an HTTP status code of 200. If the system receives a non-200 HTTP status code or a response timeout occurs, it will retry the push notification.If a system exception or consumption failure occurs on your endpoint, return a 5xx HTTP status code.
Retry policy
If the initial push fails, the system retries after 1, 5, and 10 minutes. If the push still fails after these three attempts, the system stops retrying.