Answers · agent payments
Our store is adding Agentic Commerce Protocol (ACP) checkout so AI agents can buy from us. The agent's side sends a delegated payment token that comes with an 'allowance'. What does that allowance actually cap (amount, time, merchant, number of uses), and what is still left for us to check before we charge the card?
Last updated
TL;DR: The allowance is a permission for one purchase, not a budget. In ACP's Delegate Payment spec (ACP is maintained by OpenAI and Stripe and is in beta; the current release is 2026-04-17), every POST /agentic_commerce/delegate_payment request must include an allowance with six required fields: reason, which can only be one_time; max_amount, an integer in the currency's minor units (2000 is $20.00); currency, lowercase ISO 4217 such as usd; the checkout_session_id it is for; the merchant_id allowed to use it; and expires_at. The spec says the returned vault token must only be usable within that allowance and must become invalid at or after expires_at. PSP authorization and capture, refunds and multi-use tokens are listed as out of scope. So the allowance is meant to stop a token being used for another checkout session, another merchant, a bigger amount or after it expires. It says nothing about which items, quantities or shipping option the buyer agreed to. Compare the checkout session total with max_amount yourself before you charge, and if the total has gone up, send the buyer back for a new token instead of charging more.
What should I check, step by step?
1. Before you charge, compare the allowance with the checkout session: the same checkout_session_id, your own merchant_id, the same currency, and a session total no higher than max_amount.
- Read max_amount in minor units. 2000 is $20.00 in usd, but the 2026-04-17 schema's own example notes that 100 means 100 yen for a currency with no minor unit.
- If tax, shipping or a quantity change pushes the total above max_amount after the token was issued, don't charge part of it or split it into two charges. Send the session back so the buyer approves the new total and a new token is issued.
- Check expires_at against your own clock right before authorizing, and don't keep the token to charge later. one_time is the only reason value the spec defines.
- Send an Idempotency-Key on every delegate_payment call (it's required), and keep your own record of which key produced which vault token, so a retry after a timeout doesn't create a second token.
- Read risk_signals (type card_testing, a score, and an action of blocked, manual_review or authorized), but don't depend on getting one: the 2026-04-17 release allows the array to be empty.
- Log the vault token id, the allowance and the session total together, without the card number or CVC, so you can show later what the agent was allowed to spend and what you charged.
What fields does the Agentic Commerce Protocol's delegated payment allowance require?
The Delegate Payment RFC defines one endpoint, POST /agentic_commerce/delegate_payment, that a payment provider implements. It takes a card (a funding card number or a network token; card is the only credential type today), an allowance, risk_signals, metadata and an optional billing address, and returns 201 Created with a vault token id (the RFC's example starts with vt_), a created timestamp and the correlation metadata.
- In the 2026-04-17 JSON schema the Allowance object allows no extra fields, and all six are required: reason (enum one_time, described as the only usage pattern currently supported), max_amount (integer, maximum charge in minor units), currency (three lowercase letters), checkout_session_id, merchant_id (up to 256 characters, the merchant authorized to use the token) and expires_at (a date-time).
- The RFC's usage rules are short: the token must only be usable within the allowance (reason, max_amount, currency, expiry) and must become invalid at or after expires_at. Payments, settlement and compliance stay on the merchant's own payment provider. The schema's allowance is the same in the 2026-04-17 release and the unreleased draft as of November 23, 2026.
What doesn't an ACP delegated payment allowance limit or record?
It doesn't describe the purchase. The allowance holds an amount ceiling, a currency, a session id, a merchant and an expiry. The line items, quantities, fulfillment option and totals live in the checkout session, so a total that changed after the token was issued is something the merchant has to catch by comparing the two.
- Several things are out of scope by the RFC's own list: PSP-specific authorization and capture, multi-use tokens beyond the allowance, and refund semantics. Refunds and disputes still go through the merchant's payment provider and the card issuer as usual.
- Risk signals are advisory. The only type defined is card_testing, with a score and a recommended action of blocked, manual_review or authorized. The RFC text still says one or more signals, but the 2026-04-17 changelog removed that minimum because the current implementation doesn't always send one, so the array can be empty.
- Nothing in the allowance records that a person approved the order. If you need to show who agreed to what, keep that record yourself, next to the session id and token id.
How does ACP's delegate_payment endpoint handle retries and idempotency keys?
Idempotency-Key is required on the delegate_payment request (an opaque string up to 255 characters; UUID v4 is recommended). A request without one gets 400 with code idempotency_key_required.
- The same key with an identical body must return the original response with the same status code, and the replay should carry the header Idempotent-Replayed: true. The same key with a different body gets 422 idempotency_conflict and can't be retried; the same key while the first request is still running gets 409 idempotency_in_flight, and the client should honour Retry-After.
- Servers must keep key-to-response mappings for at least 24 hours and must not cache 5xx responses against a key. Errors are flat JSON objects with type, code, message and an optional param written as a JSONPath, and clients must send an API-Version header.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before my agent asks for a delegated payment token for this $42.50 ACP checkout at shop.example, check it against my agent's spending policy and record the decision with the checkout session id as the reference.”
{
"tool": "authorize_spend",
"arguments": {
"credential_id": "YOUR_AGENT_CREDENTIAL_ID",
"amount_minor": 4250,
"currency": "USD",
"merchant_domain": "shop.example",
"category": "retail",
"reference": "csn_..."
}
}- Needs your API key, and set_spend_policy sets the per-transaction and daily caps and allowed merchants first. It returns a signed allow or deny with reasons such as over_per_transaction_cap or merchant_not_allowed, valid for 15 minutes, and records it on Rightshold's ledger. Use the allowed amount as the allowance's max_amount.
- It doesn't call the delegate_payment endpoint or any payment provider. It can't create or read a vault token and doesn't know whether the merchant charged. A deny only stops a payment if your agent checks it before asking for the token.
Rightshold records spending decisions your agent asks for. It never holds or moves money, doesn't process cards or tokens, and isn't affiliated with OpenAI, Stripe or the Agentic Commerce Protocol project. Spec details are from the ACP repository's Delegate Payment RFC, the 2026-04-17 delegate_payment JSON schema and the 2026-04-17 changelog, read November 23, 2026. ACP is in beta and the RFC is marked Draft, so fields can change; pin the API-Version you tested. Not legal, payment or PCI compliance advice.
What are the sources?
- Agentic Commerce Protocol: Delegate Payment RFC (allowance, usage and expiry, idempotency, errors)
- Agentic Commerce Protocol: delegate_payment JSON schema, version 2026-04-17
- Agentic Commerce Protocol: changelog for version 2026-04-17 (empty risk_signals allowed)
- Agentic Commerce Protocol: repository README (maintained by OpenAI and Stripe, beta status)
Related
- How do Stripe shared payment tokens limit what a seller can charge for an AI agent purchase?
- How to require quote-bound approval before an agent payment settles
- How to handle tax, tip and shipping that push an agent charge above its quote-bound approval
- Do card network mandates stop an AI agent from overspending, or do you need issuer authorization rules?
- Can ChatGPT Wallet let an AI agent buy without your approval, and what does a store need to accept it?
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
