Checkout API
2.1 Capability Identifier
The checkout capability namespace isdev.ucp.shopping.checkout. It is UCP’s most essential transaction capability, defining the complete flow from creating a shopping session to completing payment.
2.2 Checkout Session State Machine
A checkout session transitions through 6 well-defined states during its lifecycle:requires_escalation state allows merchants to hand control to a human when the AI cannot process a scenario automatically (e.g., legal compliance confirmation for high-value goods). The fallback path from complete_in_progress to incomplete handles exceptions such as payment failures.
2.3 Five Operations
Create — Create Checkout Session
Get — Query Checkout Session
Update — Update Checkout Session
ready_for_complete.
Complete — Submit for Completion
ready_for_complete. After invocation, the status changes to complete_in_progress as the merchant asynchronously processes payment and order creation. On success, the status changes to completed; on failure, it falls back to incomplete.
Response:
Cancel — Cancel Session
completed and canceled).
2.4 ISO 4217 Amount Handling
UCP strictly requires all monetary amounts to be expressed in ISO 4217 minor units, avoiding floating-point precision issues:2.5 Embedded Checkout UI
When an AI agent cannot complete checkout in pure API mode (e.g., complex payment verification, 3D Secure authentication), UCP supports an embedded UI mode:
The embedded UI is triggered via the
requires_escalation state. The merchant returns a UI URL in the response:
2.6 Price Transparency Requirements
UCP mandates complete price transparency. The pricing object in a checkout session must include:
Before calling the Complete operation, the AI agent must present the full price breakdown to the consumer and obtain confirmation.
Next chapter: Identity Linking — OAuth 2.0 Authorization Code flow, token revocation, and scope management