Checkout for agents
Part 7 · Acting on a site4 minWhat an agent needs to buy: a catalog it can find, one price and one stock state everywhere, numbers that say what they are, a 402 it can pay, and a merchant profile.
A catalog it can find
An agent comparing products does not want to visit every page. It wants the catalog: every product in one file.
A feed linked from a single page is hard to find. A scan looks for one declared in robots.txt, in UCP, or in the API description.
Why it matters. Publish a product feed and point to it from robots.txt, so an agent finds every product in one request.
Something it can buy
To buy, an agent needs a price it can read and a way to order it can call.
A scan counts offers with a price in the structured data, and looks for order or quote operations among the MCP tools and the API.
Why it matters. Prices in structured data, and an order tool or API: an agent can see the price and act on it.
One price everywhere
A price appears in several places: the visible page, the JSON-LD, the product meta tags, the feed. Each is updated by a different system.
When they disagree, an agent quotes one of them, perhaps the wrong one. A scan compares them as numbers.
Why it matters. Keep one price across the page, the structured data, the product tags and the feed.
In stock, everywhere
The same goes for stock. A page that says sold out, with InStock in its JSON-LD, sends an agent to buy something that is not there.
A scan compares the two, and says so when the page draws stock with a script it cannot read.
Why it matters. Update stock in the structured data whenever the page changes it.
Numbers that say what
A bare 24 could be euros or dollars. 300 could be grams or millilitres. 10:00 could be any time zone.
A scan lists each bare number in the structured data: a price with no currency, a quantity with no unit, a time with no offset.
Why it matters. Give every price a currency, every quantity a unit, and every time an offset.
Asked to pay
Some sites charge per request. An agent that asks without paying gets 402, with the price in a header.
A scan asks likely paid endpoints without paying, and decodes the challenge.
- 402
- The HTTP status for Payment Required, kept unused for decades, now used by agent payments.
Why it matters. A paid endpoint answers 402 with what to pay and how, and an agent can pay and retry on its own.
A merchant profile
UCP, the Universal Commerce Protocol, is a merchant’s profile for agents: the services it offers and how it takes payment.
A scan reads it at /.well-known/ucp and checks the version, services and payment handlers.
Why it matters. Publish a UCP profile, and agents learn what the shop can do before they shop.