ap2-checkout-mandate
Installation
SKILL.md
AP2 Checkout Mandate
Renamed. This credential was called the Cart Mandate in earlier AP2 releases. If you are reading older samples, blog posts, or tutorials that say "Cart Mandate", they are describing this object — but the structure changed along with the name, so do not port field names across. Fetch the live schema.
Before writing code
Fetch live docs:
- Fetch
https://ap2-protocol.org/ap2/checkout_mandate/for the current Checkout Mandate schema — open and closed forms. - Fetch
https://ap2-protocol.org/ap2/agent_authorization/for the open/closed mandate model this sits inside. Read that first if you have not; the mandate makes little sense without it. - Fetch
https://ap2-protocol.org/glossary/to catch any further renames. - Web-search
site:github.com google-agentic-commerce AP2 code sdk mandate checkoutfor the current type definitions undercode/.
Conceptual Architecture
What it authorizes
The Checkout Mandate authorizes completing a checkout transaction. It is the credential that says "this user agreed to buy this."
It exists in two forms, matching the open/closed model from the Agent Authorization Framework: