logo
enes

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
codeResult code; for a successful request it is always zero.0
mailingIdNumber that identifies the registered request5000384
resultIndicates 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
codeResult code; its value indicates the type of error that occurred.-17
hintDescribes the error that occurredThe country abbreviation or the carrier does not exist
messageIdentifies, by name, the error that occurred.Validation error
SMS — Previous
HTTP connection
Next
Error codes