logo
enes

HTTP connection

Last update: 7 days ago by Irais Aguirre

The web service you develop must handle an HTTP POST request, which receives JSON strings and returns a plain-text result. The following is the information required to connect the service.


URLDefined by the client
METHODPOST
HEADERSContent-Type: application/json
AuthorizationThe service must use basic authorization with a username and password, so that it receives the authorization header Authorization: Basic [string generated with the provided credentials]

BODY

{
"messageId": [String][required],
"statusDelivery": [string][required],
"sendDate": [Long][required],
"doneDate": [Long][optional]
}

ParametersDescription
messageIdParameter that identifies the sent MT.Required
statusDeliveryParameter that indicates the delivery status of the MT. Possible values:
  • DELIVERED: successfully delivered.
  • REJECTED: rejected by the carrier.
  • UNKNOWN: rejected by the carrier, the error code is unknown.
Required
sendDateParameter that indicates the date and time the MT was sent.Required
doneDateParameter returned by the carrier that indicates when the MT was sent to the device or, where applicable, when it was received on the device (DLR handset)Optional

Example

{
"messageId": 12345678,
"statusDelivery": "DELIVERED",
"sendDate": 1588694204000,
"doneDate": 1588694204000
}
SMS — Previous
Endpoint to receive DLRs
Next — SMS
Response