Docs that match the API

Docs

Several pages disagreed with the API, or with each other. They now describe what the API sends.

What changed

  • One ordering story. REST carts and the MCP order tool are two ways into the same ordering. Pages that said ordering was MCP only, or that every confirm happens on a Layout page, are corrected.
  • Every error code. Every error code lists each code with its status, the endpoints that send it, and what to do.
  • Failure codes. Every value failure_code takes is listed in Failure codes and in the Order schema. An older order that stored a code outside the list now reads as UNKNOWN, and one that stored PAYMENT_DECLINED reads as CARD_DECLINED.
  • Webhook payload. Event types said order.carted carries items, modifiers and a pickup time. It carries the store's name, the item count and the total, like every event. Only order.failed adds a reason, order.failure_code.
  • Smaller corrections. A wrong verification code is 401 bad_code. The request field that asks for the consent link back is connectDelivery. Provisioning returns no credential, a build grant lasts 15 minutes unless you refresh it, and a build grant cannot read GET /v1/orders/:id.
  • MCP tools. MCP tools has every tool's input and output JSON Schema and which session may call what. The same contract is machine-readable at mcp-tools.json.

Why it matters

Code written from a page that described something the API does not do would fail.

What to do

If you parsed order.carted for items or a pickup time, read the cart with GET /v1/carts/:id instead. If you generate types from openapi.json or mcp-tools.json, regenerate them.

Breaking changes

None. Apart from the failure_code mapping above, the API's behaviour did not change.

All changes