Errors
RocketShipIt will always return an error_message
and errors
field on every request.
A value in error_message
indicates an error occurred with RocketShipIt itself. Also, a value other than 200
will also be present for code
.
A value in errors
indicates something of note occurred with the shipping carrier. These errors will range in severity indicated by the type
field.
Two examples of errors originating from the carrier:
{
"meta": {
"code": 200,
"error_message": ""
},
"data": {
"errors": [
{
"code": "820",
"description": "The destination state/province code has been changed.",
"type": "NOTE"
}
],
...
{
"meta": {
"code": 200,
"error_message": ""
},
"data": {
"errors": [
{
"code": "",
"description": "Invalid Access License number",
"type": "Error"
}
],
"status_code": "",
"status": ""
}
}
RocketShipIt error caused by invalid JSON:
{
"meta": {
"code": 500,
"error_message": "Invalid JSON - invalid character '\"' after object key:value pair"
},
"data": null
}
See also: Carrier Errors