build a basket and checkout flow with the spektrix api

domain: integrate.spektrix.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Client-side (Web User mode): add items via the Adding Items to the Basket endpoints using the singular api/v3/basket path so the session cookie carries state.
  2. Set XMLHttpRequest's withCredentials to true and configure a custom domain so client-side basket/customer calls share the visitor's session.
  3. Server-side (System Owner/Agent mode): use the plural api/v3/baskets and api/v3/customers endpoints instead, since no browser session is available.
  4. Combine basket API calls with the Iframe or Spektrix Payments flow to complete payment — the API alone does not expose full end-to-end payment processing.
  5. Review the Custom Baskets and Potential Discount guides if building a bespoke checkout that mixes API and iframe elements.

Known gotchas

Related routes

Create a BigCommerce headless checkout flow using the REST Management API from cart creation through order placement
developer.bigcommerce.com · 6 steps · unrated
Build a custom checkout on BigCommerce using the Checkout SDK
developer.bigcommerce.com · 6 steps · unrated
Build a headless Shopify checkout flow using the Storefront API Cart and checkout redirect
shopify.dev · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans