The SimpleSell API uses HTTP status codes to indicate whether a request succeeded. Codes in the 2xx range mean success. Codes in the 4xx range mean the request failed, for example because of invalid data or a missing API token. Codes in the 5xx range mean something went wrong on our side.
Error response
Error responses contain a message that describes the error:
Use the status code to handle errors in your code. The message is intended for logging and debugging. Its wording can change.
Validation errors
If the request data is invalid, the API responds with 422 Unprocessable Entity. The errors object lists the messages for each invalid field:
Fields in nested objects and arrays use dot notation, such as receiver.country or items.0.quantity.
The API also returns validation errors when you process a parcel that lacks data. See Checks before processing.
Processing errors
Errors from your carrier don’t return an HTTP error, because processing runs in the background. They appear in the parcel’s processing_errors once processing has completed. See the Quickstart.
Processing errors contain the messages your carrier returns, so their language and wording depend on the carrier. Show them to the person who can fix the parcel data, but don’t parse them in your code.
Status codes
Conflicts
A 409 Conflict means the request is valid, but isn’t possible at this point in the resource’s lifecycle. For example, you can’t update a parcel that is already processed:
Don’t retry the request unchanged. The message explains what prevented the request. Retrieve the resource to check where it is in its lifecycle.
For parcels, the parcel lifecycle explains which actions are possible when.
Request IDs
Every response contains an X-Request-ID header with a unique ID for the request:
If you need help with a failed request, contact support@simplesell.de and include:
- The request ID from the
X-Request-ID header
- The request: method, URL, and body
- The response: status code and body
This helps us find the request in our logs and reproduce the problem.
Remove your API token before you send logs. We never need your token to help you.