In the events of API request errors, ShipBob uses conventional HTTP response codes in the 4XX and 5XX range to indicate the reason behind the error.
HTTP Status Code Summary | ||
---|---|---|
200 or 201 | OK | Everything worked as expected. |
400 | Bad Request | The request was unacceptable, often due to missing a required parameter. |
401 | Unauthorized | No valid API key provided. |
403 | Forbidden | The API key doesn’t have permissions to perform the request. |
404 | Not Found | The requested resource doesn’t exist. |
422 | Duplicate reference ID | You have already created a product or order with the same reference_id |
429 | Too Many Requests | Too many requests hit the API too quickly. We recommend an exponential backoff of your requests. |
500, 502, 503, 504 | Server Errors | Something went wrong on ShipBob’s end. |