By configuring a Message Service (MNS) queue or an HTTP URL, you can receive delivery receipts after you send your messages. This enables you to monitor the delivery status of your messages and deploy your services accordingly, ensuring optimal performance and user experience.

Important
  • If a network error occurs or the response times out during message delivery, delivery receipts may be repeatedly pushed or fail to be received.
  • It may take some time for the message delivery configuration to take effect. We recommend that you wait for 3 minutes and check whether the delivery receipts are pushed.

Delivery receipts endpoint

You can configure an MNS queue or HTTP URL to receive receipt messages or MO messages based on your needs.

  • MNS queues

    You can configure an MNS queue to receive delivery receipts from a specified region. MNS queues support all message types of Alibaba Cloud Short Message Service (SMS). After you enable MNS to subscribe to a specified message type in the SMS console, MNS automatically generates a queue. You can call SMS SDKs to pull delivery receipts by message type and queue name.

  • HTTP URLs

    You can set up an HTTP URL to receive delivery receipts or MO messages for SMS. To achieve this, SMS utilizes the HTTP POST method to push delivery receipts or MO messages to the specified HTTP URL. You can configure the HTTP callback URL in the Alibaba Cloud SMS console. When a service message is generated, the system sends an HTTP POST request containing the delivery receipt to the designated callback URL. This allows you to receive the message directly.

Types of delivery receipts

You need to select the types of delivery receipts that you want to receive. Different types of delivery receipts are used in different scenarios. The following table lists the types of delivery receipts.

TypeDescriptionMNS queueHTTP URL
MT delivery report (SmsReport)A mobile terminated (MT) delivery report is a message (such as a notification or business message) that is sent from SMS carriers to customers. MT delivery reports indicate the delivery status and details of each message. SMS webhookSMS webhook

Configure delivery receipts

To receive delivery receipts for your SMS messages, you need to configure the delivery receipt settings in the Alibaba Cloud SMS console. Perform the following operations to configure the settings:

  1. Log on to the SMS console.
  2. In the left-side navigation pane, choose System Configurations > General Settings.
  3. On the General Settings page, click the API tab.
  4. In the SMS Delivery Report Setting section, configure one or more endpoints for delivery receipts.
    • MNS queues

      Enable the MNS queues option.

      111
    • HTTP URLs
      1. Enable the HTTP URLs option.
      2. Enter an HTTP URL. Example: http://push.example.com/contextpath/receive.do. 12
      3. Click Save.

Request parameters of MNS queues

ParameterTypeRequiredExampleDescription
MessageTypeStringYesSmsReportThe type of the message. Set the value to SmsReport.
QueueNameStringYesAlicom-Queue-*****-SmsReportThe name of the queue. To view the name of the queue, log on to the SMS console, and then choose System Configurations > General Settings > API in the left-side navigation pane.