xfix.ai ux
CRT-A01 · MediumApplies toStores

Cart state reachable via stable URL or API endpoint

Cart state reachable via stable URL or API endpoint. 1 of the 38 published store audits that judged it fail it (3%), as of 29 Nov 2026.

Step: AI search & agentsSeverity: MediumWeight: 7.7 pts of the AI Shoppers scoreFails on 3% of 38 stores judgedSource: Shopify · Cart API

What it looks for

Cart state reachable via stable URL or API endpoint.

  • Pass: Cart URL stable AND JSON endpoint returns cart state.
  • Partial: URL stable but no JSON endpoint.
  • Fail: Cart accessible only via SPA state (no URL) or ephemeral session URL.

How it is checked

  1. Fresh browser. Signed out, cookies cleared, desktop and mobile viewports, the store's live theme.
  2. Open a product. A real, in-stock product page, found the way a shopper finds one.
  3. Add to cart. Default variant, quantity one, then the cart page itself.
  4. Read it like an agent. The markup and structured data a shopping agent reads, not the layout.
  5. Record the verdict. Pass, partial or fail, saved with the evidence it was judged on: a screenshot where the rule is visual.

Why it matters

Agentic checkout requires the agent to inspect the cart before completing a purchase. If cart state is not accessible via a URL or API, the agent cannot verify totals, catch surprise fees, or hand off to a delegated payment flow.

How to fix it

  1. Expose a stable /cart URL and a /cart.json (or /api/cart) JSON endpoint. Shopify does this by default.
  2. The JSON endpoint should return line items, quantities, prices, subtotal, shipping estimate, and total.
  3. If your store is a custom SPA where the cart is JavaScript-only, add a lightweight JSON endpoint alongside. Not doing this locks agents out.

Stores that fail it, from real audits

Stores that fail CRT-A01
StoreScoreAudited
Enviafloresparadifuntos56

Stores that get it right

What the xfix ux team says about this rule

A cart that exists only inside a session is a cart no assistant can hand back to the shopper.

Drafted by the xfix ux team and approved on 22 Sept 2026.

Sources

How to cite it

1 of 38 online stores audited by xfix ux fail the rule "Cart state reachable via stable URL or API endpoint" (CRT-A01) as of November 2026. xfix ux, xfix.ai/ux/rules/stores/cart-at-a-stable-url/

Questions

What does CRT-A01 check?

Cart state reachable via stable URL or API endpoint.

What counts as a pass on CRT-A01?

Cart URL stable AND JSON endpoint returns cart state.

What counts as a fail on CRT-A01?

Cart accessible only via SPA state (no URL) or ephemeral session URL.

How many stores fail CRT-A01?

1 of the 38 published store audits that judged it fail it (3%), as of 29 Nov 2026.

Why does CRT-A01 matter?

Agentic checkout requires the agent to inspect the cart before completing a purchase. If cart state is not accessible via a URL or API, the agent cannot verify totals, catch surprise fees, or hand off to a delegated payment flow.

How do I fix a fail on CRT-A01?

Expose a stable /cart URL and a /cart.json (or /api/cart) JSON endpoint. Shopify does this by default. The JSON endpoint should return line items, quantities, prices, subtotal, shipping estimate, and total. If your store is a custom SPA where the cart is JavaScript-only, add a lightweight JSON endpoint alongside. Not doing this locks agents out.