iFragment

Errors

Error format and codes.

Every error is returned with a 4xx/5xx HTTP status and this body:

{
  "success": false,
  "error": {
    "code": -1007,
    "type": "validation",
    "message": "Check the request fields",
    "details": [{ "field": "quantity", "message": "Minimum 50" }]
  },
  "meta": { "requestId": "8e3c…", "timestamp": "2026-09-26T10:15:30.000Z", "processingTimeMs": 3 }
}
  • code is a stable numeric code, rely on it in your code; message may change and is translated according to Accept-Language.
  • details: per-field errors (validation only).
  • data: additional error data, if any.
  • meta.requestId matches the x-request-id header; include it when contacting support.

HTTP statuses

StatusWhenWhat to do
400validation error (-1007), missing Idempotency-Key (-11001), invalid username (-9202), product (-9203) or externalId (-9204)fix the request
401missing, invalid or revoked keycheck X-API-Key
402insufficient balance (-9301)top up the balance
403IP is not in the Project allowlistadd the server address
404order not found or belongs to another Project (-9201)check the order id
409a request with this Idempotency-Key is still in progress (-11003); externalId is already taken by an order with different parameters (-9207)retry later or check the order
422recipient not found (-9002), recipient cannot receive a gift (-9003), Idempotency-Key reused with a different body (-11002)show the error to the buyer or use a new key; do not retry as is
429rate limit exceeded (-11005)retry after Retry-After
502the supplier is temporarily unavailable (-9006)retry in a few seconds
5xxan error on our sideretry with the same Idempotency-Key

Code ranges

CodesArea
-1000…-1999general (validation, access)
-11001…-11099idempotency and limits
-9001…-9099supplier (recipient not found, unavailable)
-9201…-9299orders
-9301…-9399prices and balance
-9101…-9199Supplier Accounts
-9401…-9499webhooks

The full list of codes for each method is in the API reference.

On this page