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.

Error BodyJSON
{
  "valid": false,
  "message": "Validation failed",
  "error_code": "VALIDATION_FAILED",
  "errors": {
    "address_to.postal_code": ["The postal code is invalid"]
  }
}
HTTPError CodeMeaning
400VALIDATION_FAILEDA 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
400INVALID_CONTENTThe carriers cannot take this content (Price answers "Invalid shipment content")
400PRICING_CALCULATION_FAILEDNo 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
401AUTHENTICATION_FAILEDThe X-API-Key header is missing or invalid ({"error", "message"})
402PAYMENT_FAILEDThe balance does not cover the total; nothing is charged (order_id is present when the order was created but not paid)
422MISSING_BANK_DETAILSCash on delivery without bank_iban and bank_holder in the order or your profile
422CUSTOMS_ARTICLES_REQUIREDThe rate is customs.declarable and content.articles is empty
422VALIDATION_FAILEDAbroad: cash on delivery, open package, return package, return of documents or Saturday delivery, or an incomplete foreign address
422GOODS_NOT_ALLOWEDThe customs lines were refused (errors)
422CUSTOMS_SIGNATURE_MISSINGuse_saved_signature is true but no signature is saved in your eAWB account
429RATE_LIMIT_EXCEEDEDToo many requests, see the limits below ({"error", "message"})
500INTERNAL_ERRORUnexpected 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.