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.
| URL | Defined by the client |
| METHOD | POST |
| HEADERS | Content-Type: application/json |
| Authorization | The 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]}
| Parameters | Description | |
|---|---|---|
| messageId | Parameter that identifies the sent MT. | Required |
| statusDelivery | Parameter that indicates the delivery status of the MT. Possible values:
| Required |
| sendDate | Parameter that indicates the date and time the MT was sent. | Required |
| doneDate | Parameter 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}
