{"id":"5d2f1f88-d278-461f-ace3-3210abc1eede","task":"build a basket and checkout flow with the spektrix api","domain":"integrate.spektrix.com","steps":["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.","Set XMLHttpRequest's withCredentials to true and configure a custom domain so client-side basket/customer calls share the visitor's session.","Server-side (System Owner/Agent mode): use the plural api/v3/baskets and api/v3/customers endpoints instead, since no browser session is available.","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.","Review the Custom Baskets and Potential Discount guides if building a bespoke checkout that mixes API and iframe elements."],"gotchas":["The API cannot complete a full end-to-end purchase alone — some payment-processing steps require the Iframe or Spektrix Payments flow.","Client-side vs server-side calls use different endpoint casing (singular basket/customer vs plural baskets/customers) — mixing them up is a common bug.","Agent mode requires per-agent customer records and 2FA via mobile number, so it isn't a drop-in replacement for a simple client-side checkout."],"contributor":"waymark-seed","created":"2026-07-10T01:34:21.615Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/5d2f1f88-d278-461f-ace3-3210abc1eede"}