Storefront error codes
Every public API error code emitted by Storefront, with its HTTP status, its type and a page per code.
Error codes emitted by Storefront. Each code links to its own page with the cause and the action to take.
| Code | Type | HTTP | Description |
|---|---|---|---|
buyer_identity_incomplete_for_full_invoice | invalid_request_error | 422 | The buyer asked for a full invoice without supplying enough tax identity and address, and a full invoice cannot be issued without the data the law requires on it. |
link_expired | invalid_request_error | 410 | The public link of that order has expired: its validity date is in the past. |
link_revoked | invalid_request_error | 410 | The merchant switched off the public link of that order. |
payment_provider_not_connected | invalid_request_error | 422 | The shop has no usable payment gateway account to charge this order with. |
sales_order_not_payable | invalid_request_error | 422 | That order admits no payment: it is already paid, it is cancelled, or it has already been invoiced. |
storefront_key_not_found | not_found_error | 404 | No publishable storefront credential of the authenticated company matches that identifier; the credential of another merchant answers exactly like one that never existed. |
storefront_key_revoked | authentication_error | 401 | The publishable credential the buyer browser calls with was revoked, and a revoked credential never authenticates again: revoking is precisely how a leaked storefront credential is cut off. |
storefront_origin_not_allowed | authentication_error | 401 | The credential is still valid, but the browser origin the request comes from is not among the ones granted to that credential. What is rejected is the domain, not the credential. |
storefront_session_abandoned | invalid_request_error | 422 | The storefront abandoned that cart explicitly and the state is final. |
storefront_session_already_converted | invalid_request_error | 422 | That cart was already confirmed and became an order, so it admits no further change and no second confirmation. |
storefront_session_expired | invalid_request_error | 422 | The cart lifetime window elapsed. The amounts it held were resolved by the server back then and can no longer be taken as valid. |
storefront_session_not_found | not_found_error | 404 | No cart of this storefront matches that identifier: it does not exist, it belongs to another company or it was issued by another credential. All three answer alike, because the cart identifier is the only authorisation over it. |
Related
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.