Reference
Errors
Every Banner & Booth API error code with its HTTP status, cause and fix, plus MCP and CLI error formats and retry guidance.
Format
Errors return an HTTP status and a JSON body:
{
"error": {
"code": "unsupported_destination",
"message": "Orders through the API ship to the lower 48 states and DC only.",
"hint": "Use POST /v1/quotes for Alaska, Hawaii and international shipping.",
"docs": "https://docs.bannerandbooth.com/reference/errors#unsupported_destination"
}
}| Field | Always present | Description |
|---|---|---|
code | yes | Stable, snake_case. Branch on this. |
message | yes | A sentence for humans. Wording can change. |
hint | no | What to do next. |
docs | no | A link to the code's section on this page. |
Branch on error.code, not the HTTP status or the message. A few codes can come with more than one status (for example unknown_sku is 422 on order endpoints and 400 on /v1/cart-link).
Summary
| Code | Status | Retry? | Meaning |
|---|---|---|---|
bad_json | 400 | After fixing | Body isn't valid JSON. |
invalid_request | 400 | After fixing | A field is missing or invalid. |
bad_items | 400 | After fixing | items is missing or malformed (cart links). |
missing_target | 400 | After fixing | Preflight has no SKU and no target size. |
bad_email | 400 | After fixing | Quote request email isn't valid. |
missing_details | 400 | After fixing | Quote request details too short. |
unauthorized | 401 | After fixing | Missing or wrong order key. |
not_found | 404 | No | No such product, venue, order, proof or route. |
method_ | 405 | After fixing | Wrong HTTP method. |
conflict | 409 | No | The order's state doesn't allow this. |
too_large | 413 | Use the two-step upload | One-shot upload over 100 MB. |
unsupported_ | 422 | No | Address outside the lower 48 + DC. |
unknown_sku | 422 / 400 | After fixing | A SKU doesn't exist, or isn't on this order. |
rate_limited | 429 | Yes, after Retry-After | Too many requests. |
internal_error | 500 | Yes, with backoff | Unexpected server error. |
upstream_error | 502 | Yes, same Idempotency-Key | Shopify unavailable. |
unavailable | 503 | Yes, after a minute | Order storage or file storage briefly unavailable. |
Codes
bad_json
400. The request body isn't valid JSON.
Fix: Send a JSON body with Content-Type: application/. In shell, check quoting: single-quote the whole -d '...' body, or build it with jq -n.
invalid_request
400. A field is missing, has the wrong type, or is out of range. Common causes:
itemsempty, more than 25 lines, or a quantity outside 1-500.- No valid
emailon a live order ("email is required for live orders."). shipping_speedother thangroundor2nd_day_air.shipping_addressmissingaddress1,cityorzip, or a ZIP that isn't 5 digits.- A malformed
show.date(must beYYYY-MM-DD). notify_urlthat isn't anhttpsURL.changesoutside 5-2,000 characters on request-changes.PATCHwith no recognized field ("Nothing to change.").- A design brief with no logo, headline or notes.
show.ship_toother thanadvance_warehouse,show_siteoraddress, or a malformedshow..warehouse_ deadline - Artwork upload with no
Content-Length, an unsupported extension infilename, or noskuwhen several lines need artwork. - Two-step upload
sizemissing or over 500 MB, or bytes that don't match the declared size. - An unknown
eventon simulate.
Fix: Read message and hint; they name the field. Correct it and resend.
bad_items
400. /v1/cart-link, create_cart_url or /c/{items} couldn't read items.
Fix: Send items as [ in JSON, or BB-KIT-1010A:1, in a query string or /c/ path. 1-25 lines.
missing_target
400. / got neither a sku nor target_width_in and target_height_in.
Fix: Pass a SKU, or the visible print size in inches.
bad_email
400. /v1/quotes got a contact_email that isn't a valid address.
Fix: Use the buyer's real email, with their consent to share it.
missing_details
400. /v1/quotes got details shorter than 10 characters.
Fix: Describe the request: items, sizes, quantities, dates and needs such as PO or tax-exempt.
unauthorized
401. The call needs an order key and the Authorization header (or the MCP order_key argument) is missing, malformed, or belongs to a different order.
Fix:
- Send
Authorization: Bearer bbk_..., using the key from this order's create (or reorder) response. Only the header works; a key in the query string is ignored. - In shell, use double quotes so the variable expands:
-H "Authorization: Bearer $BB_. With single quotes the literal textORDER_ KEY" $BB_ORDER_KEYis sent. - Check that
BB_ORDER_IDandBB_ORDER_KEYare from the same order. Test keys (bbk_test_) only work on test orders. - If the key is lost, email support@bannerandbooth.com from the order's email address with the order id.
not_found
404. The product, venue, order, proof or route doesn't exist.
Fix:
- Products: find the SKU with
GET /. SKUs look likev1/ products ?q=... BB-KIT-1010A. - Venues:
GET /v1/venuesfor slugs. - Orders: check the id, including the
bbo_test_prefix on test orders. - Proofs:
GET /for ids.v1/ orders/ {id}/ proofs latestreturns "There is no proof waiting for review." when nothing is pending: wait for a proof, or check whether it was already decided. - Uploads: an unknown or expired two-step upload URL or
artwork_id. Start the upload again. - Design briefs: a
logo_artwork_idthat isn't on this order. - Print templates:
GET /for an item without a fixed print size (canopies, blank hardware). The hint explains the alternative.v1/ products/ {sku}/ template. svg - Routes: see the API reference.
method_not_allowed
405. Wrong HTTP method, for example GET /v1/quotes.
Fix: Use the method shown in the API reference.
conflict
409. The request is valid, but the order's current state doesn't allow it. Common causes:
- Cancelling a paid order.
- Changing (
PATCH) a paid or cancelled order. - Uploading artwork or sending a design brief once the order is in production, shipped, delivered or cancelled ("artwork can't change now").
- Getting a payment link or deciding a proof on a cancelled order.
- Approving or requesting changes on a proof that's already decided or superseded.
- Reusing an
Idempotency-Keywith a different request body. - Completing a two-step upload before the bytes (or every part) arrived, or completing it twice.
- Simulating on a live order.
Fix: GET / and follow next_actions. For idempotency conflicts, use a new key for a genuinely new order, or resend the exact original body. For paid orders, email support@bannerandbooth.com.
too_large
413. A one-shot PUT / was over 100 MB.
Fix: Use the two-step upload: POST / with sku, filename and size, then PUT to the returned URL. Or run bannerbooth order upload, which picks the method for you. See Artwork: two-step upload.
unsupported_destination
422. The shipping address is outside the lower 48 states and DC: Alaska, Hawaii, a U.S. territory, APO/FPO, or another country.
Fix: Don't retry with the same address. Send a B2B request with POST /v1/quotes so the team can quote shipping, or ship to a lower-48 address. See B2B.
unknown_sku
422 on order endpoints, 400 on cart links. One or more SKUs don't exist (the message lists them), or an artwork upload named a SKU that isn't on this order ("BB-KIT-1010A is not on this order.", with the order's SKUs in hint).
Fix: Search with GET / or search_displays and use the exact sku from the result. Don't construct SKUs. For uploads, use a SKU from the order's lines.
rate_limited
429. Too many requests. The response has a Retry-After header in seconds.
Fix: Wait for Retry-After, then retry. On order creation and uploads the limits are hourly, so Retry-After is 3600. Limits are in Limits. For quote requests over the limit, email support@bannerandbooth.com directly.
internal_error
500. Something failed on Banner & Booth's side. The message is "Something went wrong on our side."
Fix: Retry with backoff. For POST /v1/orders, retry with the same Idempotency-Key. If it keeps failing, email support@bannerandbooth.com with the time, the endpoint and the order id if you have one.
upstream_error
502. Shopify, which holds live orders and payments, didn't respond.
Fix: Retry with backoff (for example after 2, 4, 8 and 16 seconds). For POST /v1/orders, retry with the same Idempotency-Key and body: it's safe and can't create a duplicate.
unavailable
503. Order storage or file storage is briefly unavailable.
Fix: Retry after a minute. Use the same Idempotency-Key on creates.
MCP errors
Tool failures come back as a normal tool result with isError: true and the code in structuredContent.:
{ "content": [{ "type": "text", "text": "{\"error\":\"unknown_sku\",\"message\":\"Unknown sku(s): BB-NOPE. Use search_displays or get_display to find valid skus.\"}" }],
"structuredContent": { "error": "unknown_sku", "message": "Unknown sku(s): BB-NOPE. Use search_displays or get_display to find valid skus." },
"isError": true }The codes are the same as REST. One MCP-only code:
| Code | Meaning | Fix |
|---|---|---|
tool_failed | The tool threw an unexpected error. | Retry once. If it repeats, use the REST endpoint or email support@bannerandbooth.com with the arguments. |
Protocol errors (unknown tool, bad JSON-RPC) use JSON-RPC error codes. See MCP reference: errors.
CLI errors
The CLI prints {"error": on stderr and exits non-zero. API errors keep the API's code. CLI-only codes:
| Code | Exit | Meaning |
|---|---|---|
usage | 1 | Missing argument, unknown command, or no key found for an order. Run bannerbooth <command> --schema. |
confirm_required | 1 | Live order create or order reorder without --yes. For create, the error JSON includes the quote; show it to the buyer, then re-run with --yes. |
upload_failed | 2 | Uploading the file or a part to the upload URL failed. Re-run order upload. |
file | 1 | The file can't be read. |
unsupported_file | 1 | Not PNG, JPEG, TIFF, PSD, PDF, AI, EPS or SVG. |
network | 2 | The API couldn't be reached. |
http_ | 2 or 3 | An API error with no JSON body. |
unexpected | 2 | A bug. Report it to support@bannerandbooth.com. |
A preflight FAIL isn't an error: the result prints on stdout and the exit code is 4. See CLI reference: exit codes.
Retry guidance
| Situation | Do |
|---|---|
4xx other than 429 | Don't retry unchanged. Fix the request. |
429 | Wait Retry-After seconds. |
500, 502, 503, timeouts, connection resets | Retry with exponential backoff. On create, reuse the Idempotency-Key. |
| Any error after a create you can't confirm | Retry the create with the same key and body. You'll get the original order back if it was created. |