Direct API
Error Codes
HTTP status codes and error_code values the API answers with
Create Order and Price Calculation answer a refusal with the body below: valid false, a message, an error_code when there is one and the field errors. 400 and 422 refusals happen before any payment and charge nothing. 401 and the per-key 429 come from the API key check and answer {"error", "message"} on every endpoint, as do the other endpoints' errors.
{
"valid": false,
"message": "Validation failed",
"error_code": "VALIDATION_FAILED",
"errors": {
"address_to.postal_code": ["The postal code is invalid"]
}
}| HTTP | Error Code | Meaning |
|---|---|---|
| 400 | VALIDATION_FAILED | A field is missing or invalid (errors), incl. Romania not on either side, a country not on sale, insurance over the cap or not in RON |
| 400 | INVALID_CONTENT | The carriers cannot take this content (Price answers "Invalid shipment content") |
| 400 | PRICING_CALCULATION_FAILED | No rate for this carrier and service. errors.option_id, with the options on offer, only when the carrier offers several and none was sent, or the one sent is not offered |
| 401 | AUTHENTICATION_FAILED | The X-API-Key header is missing or invalid ({"error", "message"}) |
| 402 | PAYMENT_FAILED | The balance does not cover the total; nothing is charged (order_id is present when the order was created but not paid) |
| 422 | MISSING_BANK_DETAILS | Cash on delivery without bank_iban and bank_holder in the order or your profile |
| 422 | CUSTOMS_ARTICLES_REQUIRED | The rate is customs.declarable and content.articles is empty |
| 422 | VALIDATION_FAILED | Abroad: cash on delivery, open package, return package, return of documents or Saturday delivery, or an incomplete foreign address |
| 422 | GOODS_NOT_ALLOWED | The customs lines were refused (errors) |
| 422 | CUSTOMS_SIGNATURE_MISSING | use_saved_signature is true but no signature is saved in your eAWB account |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests, see the limits below ({"error", "message"}) |
| 500 | INTERNAL_ERROR | Unexpected error; try again or contact us |
Rate limits: 120 requests per minute per IP (answer {"message": "Too Many Attempts."}) and 400 requests per minute per API key (RATE_LIMIT_EXCEEDED). The fixedlocations endpoints have their own limit: 30 requests per minute per IP. The orders list and tracking answer invalid parameters with 422 {"error", "message"}, without field errors; only label download lists the field errors.

