Errors
The Seller API uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
- Codes in the
2xxrange indicate success. - Codes in the
4xxrange indicate an error that failed given the information provided. - Codes in the
5xxrange indicate an error with the Whatnot servers (these are rare).
Most error bodies follow RFC 9457 ("Problem Details for HTTP APIs") and are served as application/problem+json. The exception is 422 Unprocessable Content; see Validation errors below.
Attributes
type(string) A slug identifying the problem type, such asinvalid-parameterorproduct-not-found. Stable for a given kind of error; use it for programmatic branching rather than parsingdetail.title(string) A short, human-readable summary of the problem type. The same for every occurrence of a giventype.status(integer) The HTTP status code, repeated here so the body stands on its own.detail(string) A human-readable explanation specific to this occurrence of the problem.- Additional fields may appear depending on
type. For example,invalid-parameteraddsparam, naming the request field that failed validation, andmissing-scopeaddsrequired_scopes.
Handling errors
Branch on the HTTP status code first, then on type for anything in the 4xx/5xx range. Don't parse detail; it's meant for humans and may change wording over time.
Example error response
{
"type": "invalid-parameter",
"title": "Invalid parameter",
"status": 422,
"detail": "Quantity must be greater than or equal to 0.",
"param": "items.0.quantity"
}
Validation errors
A 422 for a malformed request body or query parameters doesn't follow the type/title/status/detail shape above. Instead it's served as application/json with a detail array, one entry per failed field:
{
"detail": [
{
"loc": ["body", "items", 0, "quantity"],
"msg": "Input should be greater than or equal to 0",
"type": "greater_than_equal"
}
]
}
loc(array) The path to the failing field, as alternating keys and indices starting withbody,query, orpath.msg(string) A human-readable explanation of the failure.type(string) A machine-readable validation failure code, such asgreater_than_equalormissing.
Best practices
- Check the HTTP status code first, then branch on
typefor anything in the4xx/5xxrange. - Retry
429and5xxresponses with exponential backoff; don't retry other4xxerrors without changing the request. - For idempotent writes (such as setting or adjusting inventory), reuse the same per-item
idempotency_keywhen retrying so it isn't applied twice. - Log the request ID from failed responses. It's the fastest way for support to look up what happened.
HTTP Status Code Summary
| Code | Status | Description |
|---|---|---|
| 200 | OK | Everything worked as expected. |
| 204 | No Content | The request succeeded and there's nothing to return. |
| 207 | Multi-Status | A batch request was accepted; check each item's own status in the response body. |
| 400 | Bad Request | The request was malformed. |
| 401 | Unauthorized | No valid API token was provided. |
| 403 | Forbidden | The token's scopes, or your enrollment, don't permit this request. |
| 404 | Not Found | The requested resource doesn't exist. |
| 405 | Method Not Allowed | The HTTP method isn't supported on this path. |
| 409 | Conflict | The request conflicts with the resource's current state. |
| 422 | Unprocessable Content | The request's parameters failed validation. |
| 429 | Too Many Requests | Too many requests hit the API too quickly. Back off and retry. |
| 500, 503 | Server Errors | Something went wrong on Whatnot's end (these are rare). |
Error Types
| Type | Status | Description |
|---|---|---|
invalid-parameter |
422 | A parameter failed validation. |
invalid-product |
422 | The product can't be created or updated as described. |
missing-scope |
403 | The token doesn't have a scope that allows this request. |
unsupported-api-version |
403 | The app requires a newer API version than the one called. |
product-not-found |
404 | No product exists with the given ID. |
product-not-deletable |
409 | The product can't be deleted in its current state. |
seller-not-approved |
403 | The seller isn't approved to create, update, or merchandise products. |
merchandising-rejected |
422 | The merchandising change can't be applied to the product. |
product-creation-disabled |
403 | Product creation isn't enabled for this account. |
product-update-disabled |
403 | Product updates aren't enabled for this account. |
field-not-editable |
422 | The request changes a field that can't be edited for this product. |
variant-not-found |
404 | No variant exists with the given ID. |
inventory-writes-disabled |
403 | Inventory writes aren't enabled for this account. |
shipment-not-found |
404 | No shipment exists with the given ID. |
shipment-item-not-found |
404 | No shipment item exists with the given ID. |
dimension-profile-not-found |
404 | No dimension profile exists with the given ID. |
show-not-found |
404 | No show exists with the given ID. |
report-not-found |
404 | No report exists with the given ID. |
report-rejected |
422 | The report can't be generated with the given parameters. |
label-generation-rejected |
409 | The shipment's state, its settings, or the account setup prevents label generation. |
variant-batch-rejected |
422 | Some variants in the batch update were invalid and allow_partial_updates was false, so none were applied. |
seller-verification-required |
403 | Seller verification must be completed before labels can be generated. |
tracking-code-not-allowed |
409 | A tracking code can't be supplied for this shipment. |
tracking-code-rejected |
409 | The order items can't be moved onto one shipment with the given tracking code. |
invalid-tracking-code |
422 | The tracking code failed validation. |
order-not-found |
404 | No order exists with the given ID. |
order-not-cancellable |
409 | The order can't be cancelled in its current state. |
order-item-not-found |
404 | No order item exists with the given ID. |
disconnect-failed |
500 | Disconnecting the app's installation failed. Try again. |
internal-error |
500 | Something went wrong on our end. Try again, and contact support if it keeps happening. |
malformed-request |
400 | The request couldn't be parsed. |
unauthenticated |
401 | The request didn't include a valid API token. |
endpoint-not-found |
404 | No endpoint matches the requested path. |
method-not-allowed |
405 | The HTTP method isn't supported on this path. |
rate-limited |
429 | Too many requests in a short time. Back off and retry. |
service-unavailable |
503 | The service is temporarily unavailable. Try again later. |