Response
Last update: 7 days ago by Irais Aguirre
The service returns a JSON string that changes depending on the type of response. A successful response looks like this:
Response example
{"code":0,"mailingId":5000384,"result":"Applied"}
| Description | ||
|---|---|---|
| code | Result code; for a successful request it is always zero. | 0 |
| mailingId | Number that identifies the registered request | 5000384 |
| result | Indicates the result of the request; for a successful request it is always Applied. This value tells you whether the request was registered correctly and is waiting to be processed. | Applied |
When there is a problem processing the request, the JSON string changes. The following is the string you will receive.
Error response example
{"code":-17,"hint":"The country abbreviation or the carrier does not exist","message":"Validation error"}
| Description | ||
|---|---|---|
| code | Result code; its value indicates the type of error that occurred. | -17 |
| hint | Describes the error that occurred | The country abbreviation or the carrier does not exist |
| message | Identifies, by name, the error that occurred. | Validation error |
