Pular para o conteúdo

Códigos de relatório de entrega SMS (DLR)

Each SMS has delivery report code (DLR). There are three ways to get DLR code and additional info info:

  1. pull data from API endpoint GET /sms/{id} (id - SMS id) and check property dlr_code
  2. set-up service send HTTP GET requests (webhook) to yours endpoint (please check account page Settings -> API settings). Data sends as URL parameters. On an endpoint’s response with HTTP status code < 200 or >= 300 service will do additional attempts (only per DLR code DELIVERY_OK) but maximum four.
  3. set-up service to send emails about SMS DLR status to yours email address (please check account page Settings -> API settings). Data sends as JSON object in email body.

NOTE: The answer of your script is not taken into account therefore you have to monitor your script. In the case of malfunctions there is no notification by us.

PropertyTypeDescription
uuidUUIDSMS id
dlr_codeintegerDLR status code
key_idintegerAPI key id used to sent request to API
phonestringRecipinet phone number from SMS (in DLR by email only)
callback_datastringString which posted to POST /sms in property callback_data or if sms was send by POST /bulks as Phone’s property callback_data

Description of the delivery report status codes (property dlr_code):

Seção intitulada “Description of the delivery report status codes (property dlr_code):”
Status codeDescription
0NONE: There is no delivery report available
1DELIVERY_OK: The message was successfully delivered
2DELIVERY_QUEUE: The message is scheduled for later sending
4DELIVERY_SUBMIT_ACK: The message is enroute
8DELIVERY_EXPIRED: The SMSC was unable to deliver the message in a specified amount of time. For instance when the phone was turned off
16DELIVERY_REJECTED: The message was rejected. The provider could have blocked phone numbers in this range