/acp-agentic-commerce:acp-cartfrom acp-agentic-commerce
Implements the ACP Cart API for pre-checkout cart sessions, covering create, retrieve, full-replacement update, and cancel operations with estimated totals and expiry handling.
Ships in acp-agentic-commerce. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fetch live spec — the Cart API arrived in the 2026-04-17 release, so anything older will not describe it:
https://github.com/agentic-commerce-protocol/agentic-commerce-protocol/releases to identify the current spec version.spec/<version>/openapi/openapi.cart.yaml in the repo. This is authoritative for paths, headers, and status codes.spec/<version>/json-schema/schema.cart.json for the Cart object schema.site:developers.openai.com commerce cart for narrative guidance.Never write the request/response shapes from memory — read the OpenAPI document.
A lightweight pre-checkout phase for item collection, with:
Checkout carries all of that. Cart deliberately carries none of it, so an agent can assemble a basket cheaply while the buyer is still deciding.
| Method | Path | Operation |
|---|---|---|
POST | /carts | createCart — returns 201 |
GET | /carts/{id} | getCart |
PUT | /carts/{id} | updateCart |
POST | /carts/{id}/cancel | cancelCart |
The agent MUST send the complete desired cart state. The provided
line_itemsreplace the existing cart contents.
This is the single most important behaviour to get right. PUT /carts/{id} is not a patch. Sending one changed line item silently discards the rest of the basket.
cancelCart returns the cart state before deletion, so the caller gets a final snapshot. Subsequent operations on that cart ID should return 404.
getCart also returns 404 when the cart does not exist, has expired, or was cancelled — these are indistinguishable to the caller by design.
Cart uses the standard ACP header set. Authorization (Bearer API key), Content-Type, and API-Version are required; Accept-Language, Idempotency-Key, and Request-Id are optional but you should send them.
Send Idempotency-Key on every mutating call — create, update, and cancel all accept it, and agents retry.
idline_items — each with id, an item (id, name, unit_amount), quantity, and line-level totalscurrencytotals — an array of typed entries (subtotal, total, …), not a flat objectcontinue_url — hand-off link into the seller's own surfaceexpires_atAmounts are integers in the currency's minor unit (12000 = $120.00). Never send a decimal.
When all requested items are unavailable, the seller MAY return 422 with type: invalid_request, code: out_of_stock rather than creating a cart. Handle 422 distinctly from 400 — it means "understood, but nothing purchasable", which is a different remediation for an agent than a malformed request.
totals as an ordered array of typed entries and look up by type; do not index positionally.line_items set on update. If your client holds a partial view of the cart, GET first.continue_url to the buyer — it is the escape hatch from agent to seller-owned checkout.expires_at and return 404 after it passes rather than serving a stale cart.acp-checkout-rest (the next phase) and acp-capability-negotiation (which Cart deliberately skips).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin acp-agentic-commerce17 skills in this plugin
/acp-affiliate-attributionImplement ACP affiliate attribution — privacy-preserving affiliate tracking without cookies using token-based first-touch and last-touch attribution. Use when building affiliate programs, referral tracking, or partnership attribution./acp-capability-negotiationImplement ACP capability negotiation — dynamic discovery of mutually supported capabilities, extensions, payment handlers, and interventions. Use when building multi-feature merchant servers or agents that adapt to merchant capabilities./acp-checkout-mcpImplement ACP checkout as an MCP server, exposing checkout operations as MCP tools. Use when building an MCP-based commerce server for AI agents that use tool-calling to complete purchases.Other plugins' skills for the same job