Implement the Agentic Commerce Protocol checkout session cancel endpoint (POST /checkout_sessions/{checkout_session_id}/cancel) so a merchant releases reserved inventory when an agent abandons a purchase mid-flow

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

Steps

  1. Implement POST /checkout_sessions/{checkout_session_id}/cancel per the ACP checkout specification, requiring HTTPS and a JSON response
  2. Allow cancellation for any checkout session whose status is not already completed or canceled
  3. Return HTTP 405 if the agent attempts to cancel a session that is already completed or canceled
  4. On successful cancellation, release any reserved inventory holds and update the session's status field to canceled
  5. Trigger any downstream cleanup (e.g. voiding a not-yet-captured Shared Payment Token allowance) tied to that checkout session
  6. Emit an ACP order/session lifecycle event so the calling agent surface (e.g. ChatGPT) reflects the canceled state rather than leaving the user looking at a stale in-progress cart

Known gotchas

Related routes

Implement ACP checkout sessions as a merchant endpoint so AI agents like ChatGPT can complete purchases programmatically
docs.stripe.com/agentic-commerce/acp · 6 steps · unrated
Coordinate a multi-merchant agent purchase across ACP and Universal Commerce Protocol (UCP) endpoints in a single agent session
shopify.dev/docs/agents · 5 steps · unrated
Implement the Agentic Commerce Protocol ORDER_UPDATE webhook to push refund and chargeback status changes back to ChatGPT so agent-visible order state stays synchronized after a completed purchase
agenticcommerce.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