Errors and limits
The error body, the codes you can rely on, rate limits and request size limits.
The error body
Every error from the Seller API has the same body:
{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key does not have the \"orders:read\" scope.",
"statusCode": 403,
"requestId": "6f1c2d9e-…"
}
}| Field | Meaning |
|---|---|
code | A stable code for your program to act on. |
message | Text for people. It can change; don't parse it. |
statusCode | The HTTP status, repeated. |
requestId | Also sent as the X-Request-Id header on every response. Quote it if you contact support. |
details | Only on some errors, such as validation errors: one entry per problem. |
Errors with status 500 or above never include internal details. The message asks you to quote the request id.
Codes
Act on code, and fall back on the HTTP status for a code you don't know.
Any endpoint
| Status | code | Meaning |
|---|---|---|
| 400 | VALIDATION_FAILED | The request breaks a rule: an unknown field, a value of the wrong type, a missing required field, price above MRP and so on. details lists each problem. |
| 400 | INVALID_JSON | The body is not valid JSON. |
| 400 | INVALID_CURSOR | cursor is not a value from the previous page's nextCursor. |
| 401 | UNAUTHORIZED | No key, or the key is not valid, revoked or expired. See Keys and scopes. |
| 403 | FORBIDDEN | The key lacks the scope, or its creator or the seller account cannot use the API. |
| 404 | NOT_FOUND | No such endpoint, or no record with this id in your account. |
| 413 | PAYLOAD_TOO_LARGE | The body is larger than 1 MB. |
| 429 | TOO_MANY_REQUESTS | Over a rate limit. Wait for the number of seconds in Retry-After. |
| 500 | INTERNAL_SERVER_ERROR | Our fault. Retry later, and quote the requestId if it keeps happening. |
Products, stock and prices
| Status | code | Meaning |
|---|---|---|
| 400 | IDEMPOTENCY_KEY_REQUIRED | A create was sent without an Idempotency-Key header. |
| 400 | INVALID_IDEMPOTENCY_KEY | The Idempotency-Key is not 1 to 255 visible ASCII characters without spaces. |
| 409 | IDEMPOTENCY_IN_PROGRESS | A request with this Idempotency-Key is still running, or stopped before it finished. |
| 422 | IDEMPOTENCY_KEY_REUSED | This Idempotency-Key was already used with a different request. |
| 422 | IMAGE_FETCH_FAILED | One or more image URLs could not be used. Nothing was saved. |
| 409 | AMBIGUOUS_SELLER_REFERENCE | More than one of your products has this product code. Use the product id. |
PUT /inventory and PUT /prices report problems per line instead, in each line's error.code:
NOT_FOUND, AMBIGUOUS_SELLER_SKU, DUPLICATE_LINE, STALE_STOCK, STOCK_MANAGED_EXTERNALLY,
VALIDATION_FAILED or INTERNAL_ERROR (retry that line). See Catalogue and stock.
Orders and self-ship
| Status | code | Meaning |
|---|---|---|
| 409 | ORDER_NOT_ACCEPTABLE | The order cannot be accepted, for example because it was cancelled. |
| 409 | ORDER_NOT_ACCEPTED | Accept the order before adding tracking or preparing its invoice. |
| 409 | ORDER_NOT_SHIPPABLE | The order is in a status that cannot be shipped. |
| 409 | ORDER_NOT_CANCELLABLE | The order or line can no longer be cancelled, for example because pickup is scheduled. message says why. |
| 422 | UNKNOWN_LINE | A lineIds entry is not a line of this order. |
| 409 | INVOICE_NOT_READY | The invoice does not exist yet: a prepaid order before its payment is confirmed, or a COD order before you prepare it. |
| 409 | ORDER_NOT_INVOICEABLE | A COD order moved past accepted without an invoice, or was cancelled. |
| 409 | INVOICE_BLOCKED | Something on your account blocks the invoice, such as missing GST states. message says what. |
| 400 | UNKNOWN_COURIER | courierCode is not one from GET /couriers. |
| 409 | COD_INVOICE_REQUIRED | A cash-on-delivery order needs its invoice prepared first, with POST /orders/{orderId}/invoice or in the seller portal. |
| 400 | COD_CONFIRMATION_REQUIRED | Cash on delivery: send codCollectionConfirmed: true and codAmount equal to the order's codAmount. |
| 409 | COURIER_BOOKING_EXISTS | The order is booked with a courier through Bhakti Baazar. Cancel that booking in the seller portal first. |
| 409 | SHIPMENT_EXISTS | The order already has different tracking. Correct it with PATCH. |
| 409 | NO_SELF_SHIP_SHIPMENT | There is no self-ship tracking to correct. |
Documents and customer details
| Status | code | Meaning |
|---|---|---|
| 410 | CUSTOMER_DATA_EXPIRED | The order closed more than 90 days ago, so its documents are no longer available through the API. See Customer details. |
| 409 | SELF_SHIP_DOCUMENT | Labels and manifests exist only for parcels booked through Bhakti Baazar. Print yours from your courier. |
| 409 | NO_SHIPMENT | No parcel is booked through Bhakti Baazar for this order yet. |
| 503 | DOCUMENT_UNAVAILABLE | The document could not be made right now. Retry later. |
Webhooks
| Status | code | Meaning |
|---|---|---|
| 400 | INVALID_WEBHOOK_URL | The URL is not a public https:// address on the standard port. |
| 409 | WEBHOOK_ENDPOINT_LIMIT | You already have 5 endpoints. Delete one first. |
Some write requests pass through the same checks the seller portal uses, so you may also see other
codes from those checks. Their message explains them, and the status tells you whether to fix the
request (4xx) or retry (5xx).
Strict requests
- Unknown fields are refused. A body or query field that the endpoint does not list gets
400 VALIDATION_FAILED, with onedetailsline per field, such asvariants.0.sku is not a field of this request. Check the field names in the API reference. - Values are never converted. Send numbers as JSON numbers and booleans as
true/false."stock": "5"is refused.
Rate limits
| Limit | Requests per minute |
|---|---|
| Per key | 120 |
| Per seller, all keys together | 300 |
| Per partner, all keys with the same partner label together | 3,000 |
The partner limit applies only to keys created with a partner label (an ERP or order-management system such as Unicommerce; see Keys and scopes). It is shared by every seller using that partner. A request refused by its key or seller limit does not count towards the partner limit.
The limits count requests in fixed one-minute windows. Over a limit you get 429 TOO_MANY_REQUESTS
with a Retry-After header: the number of seconds to wait. The message names the limit. These
numbers may be adjusted after the pilot.
To stay under them, use webhooks or updated_since instead of re-reading everything, and send stock
and price changes in batches.
Size limits
| Limit | Value |
|---|---|
| Request body | 1 MB |
Lines in one PUT /inventory or PUT /prices | 100 |
Variants in one POST /products | 50 |
| Images per product (thumbnail and gallery) | 10 |
| Images per variant | 6 |
Page size (limit) | 1 to 100, default 50 |
SKUs in one GET /products?sku= | 50 |
Line ids in one GET /orders?line_id= | 100 |
Lines in one POST /orders/{orderId}/cancel | 100 |
| Webhook endpoints per seller | 5 |