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:
- pull data from API endpoint
GET /sms/{id}(id - SMS id) and check propertydlr_code - 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 <
200or >=300service will do additional attempts (only per DLR codeDELIVERY_OK) but maximum four. - 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.
DLR report properties
Seção intitulada “DLR report properties”| Property | Type | Description |
|---|---|---|
| uuid | UUID | SMS id |
| dlr_code | integer | DLR status code |
| key_id | integer | API key id used to sent request to API |
| phone | string | Recipinet phone number from SMS (in DLR by email only) |
| callback_data | string | String 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 code | Description |
|---|---|
| 0 | NONE: There is no delivery report available |
| 1 | DELIVERY_OK: The message was successfully delivered |
| 2 | DELIVERY_QUEUE: The message is scheduled for later sending |
| 4 | DELIVERY_SUBMIT_ACK: The message is enroute |
| 8 | DELIVERY_EXPIRED: The SMSC was unable to deliver the message in a specified amount of time. For instance when the phone was turned off |
| 16 | DELIVERY_REJECTED: The message was rejected. The provider could have blocked phone numbers in this range |