Los mensajes que tiene controlados la API y mandamos como respuesta son los siguientes:
Code | Mesagge error |
---|---|
INVALID_CREDENTIALS | Your credentials are invalid. |
INCOMPLETE_ADDRESS | Address must be contained street, external number and zipcode. |
STORE_NOT_EXIST | The store does not exist. |
OUT_OF_BALANCE | The account does not enough balance for this transaction. |
OUT_OF_COVERAGE | Dropoff zip code is out of coverage area. |
DELIVERY_NOT_EXIST | Delivery not found with the identifier provided. |
LABEL_ERROR | Label generation error. |
INVALID_ADDRESS | Location is invalid, please sure to include a valid address. |
INVALID_CLIENT_TYPE | Client cannot process orders of this type of business. |
DEACTIVATED_CLIENT | Deactivated client, cannot create delivery orders. |
DEACTIVATED_CLIENT_OUT_PAYMENT | Deactivated client by out of payment, cannot create delivery orders. |
UNAUTHORIZED | Token expired or invalid format. |
INVALID_PICKUP | Pickup location is invalid, please sure to include a valid address. |
INVALID_DROPOFF | Dropoff location is invalid, please sure to include a valid address. |
INVALID_TYPE | The delivery type is inavlid. |
CREATION_LIMIT | Client reach package creation limit. |
Ejemplo de response
{
code: 'INVALID_ADDRESS',
message: 'Location is invalid, please sure to include a valid address'
}