Skip to Content
API DocumentationReceipt Message PushStatus report push

Status Report Push

SMS receipt status reports are pushed to the customer’s specified address via HTTP batch push.

Protocol Explanation

CategoryDescription
URLUser-configured HTTP callback address (currently requires user provision)
MethodPOST
ProtocolHTTP + JSON
EncodingUTF-8

Request Description

The request is formatted as a JSON Array, and a single request may contain multiple SMS receipt status reports.

Request Example

{ "MsgType": 2, "Data": [ { "SessionNo": "d0****f7-0fc3-****-****-9f73****6c6e", "Phone": "185****9057", "CostCount": 2, "ReceiptTime": 1563867000, "ReceiptResult": "Sent successfully", // Determine the sending result using this field, see parameter description for enumeration values "ReceiptCode": "Delivrd", "ReceiptDesc": "User received successfully", "UserId": "you man c define the content by yrself" }, { "SessionNo": "d1****f7-0fc3-****-****-9f73****6c6e", "Phone": "185****9057", "CostCount": 2, "ReceiptTime": 1563867000, "ReceiptResult": "Sending failed", "ReceiptCode": "MSBLACK", "ReceiptDesc": "Phone in operator's anti-harassment blacklist", "UserId": "you man c define the content by yrself" } ] }

Parameter Description

Parameter nameTypeDescriptionCaseRequired
MsgTypeintType of the push message, 2 represents receipt status report2Y
DataArrayBatch listY
  • Data
Parameter nameTypeDescriptionCaseRequired
SessionNostringSending sequence number of SMS sendingxddd-xx-ss-ss-ssY
PhonestringMobile number18512345678Y
CostCountintCount of split messages2Y
ReceiptTimeintTime of the status report1563867000Y
ReceiptResultstringReceipt status result; this field can be used to determine the sending result. Enumeration values:
> Sent successfully or Success: The short message was sent successfully
> Sending failed or Fail: The short message sending failed
> Unknown state or Unknow: The carrier did not report the status report
Sent successfullyY
ReceiptCodestringStatus report codeDelivrdY
ReceiptDescstringStatus report descriptionUser received successfullyY
UserIdstringCustom business identifier ID, a string (length cannot exceed 32 characters), does not support special characters like single quotes or emojisxxx-uhost-001N

Response Description

Response Example

{ code: 0, message: "ok" }

Parameter Description

codemessageDescription
0okReceived successfully
Non-0Error descriptionNot received successfully

Retry Explanation

If the initial push fails (non-success response), a retry will occur every 1 second. If it still isn’t successful after 3 retries, the push will cease.