Information
- OpenAPI version:
3.0.3
Public read API for custom storefronts. Authenticate with a storefront
token as Authorization: Bearer <token>. Public tokens are also bound to
allowed origins.
Every success body is {"data": ...} and every error body is
{"error": {"code", "message", "details"}}. Every response carries
X-Request-Id. Reads carry a weak ETag and answer 304 to a matching
If-None-Match. Error responses carry Cache-Control: no-store; 429
carries Retry-After (whole seconds) and 503 carries Retry-After: 5.
Customer accounts live under /customer. They need a private token
(sfprv_..., server side only): a public token gets 403 private_token_required. The one exception is a read-only demo shop, whose
public token is also accepted; it is served from fixtures (sign in as
[email protected], whose code comes back as demo_code on
requestCustomerCode), never reaches order data, and refuses writes with
403 demo_shop_read_only. A signed-in customer is identified by the
session token from POST /customer/auth/verify, sent as
X-Sevigram-Customer-Session; a missing, expired or foreign session is
401 customer_session_invalid and a wrong sign-in code is 401 customer_code_invalid. The session token is a credential: never log it,
put it in a URL, or keep it in browser storage; hold it in an HttpOnly
cookie on your server. Customer responses are never cached and carry no
ETag. POST /checkouts also accepts the session header (private token
only) to attribute the checkout to the signed-in customer.
Lists are paged with ?cursor=&limit= (default 24, maximum 100) and
answer {items, next_cursor}, where next_cursor is null on the last page.
A storefront token issued by Sevigram.
Security scheme type: http