You can configure a Message Service (MNS) queue to receive delivery receipts.

Prerequisites

  • An Alibaba Cloud account and an AccessKey pair are created. For more information, see Obtain an AccessKey pair
  • The MNS queue has access to the following domain names: dybaseapi.ap-southeast-1.aliyuncs.com and 1493622401794734.mns.ap-southeast-1.aliyuncs.com.

Request parameters

ParameterTypeExampleDescription
ToString8521234****The mobile phone number that receives delivery receipts.
StatusString1The status of the message.
  • 1: The message was sent.
  • 2: The message failed to be sent.
  • 6: The message expired.
MessageIdString123456789****The ID of the delivery receipt.
TaskIdString123456The ID of the task.
SendDateStringThu, 25 Nov 2021 10:27:00 +0800The time when the message was sent to the carrier.
ReceiveDateStringThu, 25 Nov 2021 10:27:33 +0800The time when the delivery receipt was received from the carrier.
ErrorCodeStringsuccessThe error code.
ErrorDescriptionStringsuccessThe error message.
Example
{
    "To" : "8521234****",
    "SendDate" : "Thu, 25 Nov 2021 10:27:00 +0800",
    "ReceiveDate" : "Thu, 25 Nov 2021 10:27:33 +0800",
    "Status" : "1",
    "ErrorCode" : "success",
    "ErrorDescription" : "success",
    "TaskId" : "67890"
    "MessageId" : "123456789****"
  }