Agentic commerceN-0428 Nov 202611 min read

What happens between “buy this for me” and a completed payment?

A shopper types one sentence to an agent: “Buy me this office chair, up to €300 including shipping.” A minute later the agent shows a cart for €285 and she confirms it. She has now said two things. One is a limit, €300. The other is consent to a specific cart, €285. Most of the time nobody needs to know which of the two was the approval, because the charge is €285 and both are satisfied.

Then the merchant’s shipping calculation finishes, the chair turns out to be a bulky parcel, and the total becomes €315. Or it becomes €299. Whether the purchase now stops, goes through without a further question, or fails with a message about a declined card depends on which of her two statements was recorded as the approval, and on who holds that record.

My claim is that the path from the sentence to the payment has four steps, each specified by a different document, and that the object saying what was approved is defined outside the checkout protocols, or in one of them not at all. I follow one purchase through the four steps, then move the total and follow it again.

The purchase I will follow

The case is constructed for this article. On Tuesday 1 December 2026 a shopper asks her agent for an office chair from a retailer I will call the chair shop. All times are UTC. Prices include VAT, and I leave the tax lines at zero so the arithmetic stays visible.

Thing Value Held by
Stated ceiling €300.00 (30000 in minor units), shipping included Agent platform
Item chair_ergo_7, €249.00 Chair shop
First quote, 10:02 €249.00 plus €36.00 parcel shipping, total €285.00 Chair shop, shown to the shopper
Shopper confirms 10:04 Agent platform
Second quote, 10:05 €249.00 plus €66.00 bulky shipping, total €315.00 Chair shop
Checkout session cs_chair_01 Chair shop

Five parties take part: the shopper; the agent platform, which runs the model and the deterministic code around it; the chair shop; a credential provider, which holds the card and can release a scoped form of it (a payment service provider, PSP, a wallet or a network); and the merchant’s PSP, which sends the charge to the issuer.

Four steps, and a different document for each

Figure 1 shows the whole exchange when nothing goes wrong, with a note above each step naming the specifications that define its messages.

sequenceDiagram
  participant S as Shopper
  participant A as Agent platform
  participant M as Chair shop
  participant C as Credential provider
  participant P as Merchant PSP
  Note over A,M: Step 1, checkout, ACP or UCP
  A->>M: create checkout, chair_ergo_7
  M-->>A: cart with total 285.00 EUR
  Note over S,A: Step 2, approval, AP2 or nothing
  A->>S: show cart or limits
  S-->>A: confirm
  Note over A,C: Step 3, credential, ACP or AP2 or network
  A->>C: allowance or signed mandate
  C-->>A: scoped token
  Note over A,P: Step 4, completion and charge
  A->>M: complete with token
  M->>P: charge 285.00 EUR
  P-->>M: approved
  M-->>A: order ord_5102
Figure 1 Checkout protocols define the first and last exchanges, and the approval and the credential in between come from other specifications.

The Agentic Commerce Protocol (ACP) is maintained by OpenAI and Stripe, with Meta listed as a third lead maintainer. The Universal Commerce Protocol (UCP) lists Google, Shopify, Etsy, Wayfair and other retailers as co-developers. Both are checkout protocols. The Agent Payments Protocol (AP2) started at Google and is not one: its specification says it “operates as a security feature within a Commerce Protocol” and leaves catalogue and checkout APIs out of scope. Authorization and capture, step 4, stay with the merchant’s PSP in every design.

Which document covers each step, and its state at the end of November 2026
Step Specification What it defines State
1. Checkout ACP Agentic Checkout Create, update, retrieve, complete and cancel on a checkout session Release 2026-04-17; the RFC text carries “Status: Draft”
1. Checkout UCP Checkout capability The same operations, plus a status lifecycle and negotiated extensions Release v2026-08-25
2. Approval AP2 Checkout and Payment Mandates Signed objects for an exact cart or for constraints Version 0.2, 28 April 2026, donated to the FIDO Alliance the same day
2. Approval Mastercard Verifiable Intent The same open and closed mandate model 0.1 draft, February 2026, also contributed to FIDO
2. Approval UCP AP2 Mandates extension Where the mandates travel in UCP messages Part of v2026-08-25, optional, negotiated per session
3. Credential ACP Delegate Payment A vault token limited by an allowance RFC marked draft; one credential type (card) and one allowance reason (one_time)
3. Credential Stripe shared payment tokens Stripe’s implementation of that token API version 2026-09-30.preview
3. Credential Visa Intelligent Commerce A network token and cryptogram released against an instruction Developer documentation, undated
4. Charge None of the above Authorization and capture stay with the merchant’s PSP ACP lists them as out of scope

Visa’s Trusted Agent Protocol (October 2025) is left out on purpose. It signs the agent’s HTTP requests so that a merchant can recognize the agent; its public material carries no approved amount or cart, so it identifies who is calling and takes no part in what was approved.

Step 1: the merchant builds the checkout

At 10:02 the agent platform opens a checkout session, the merchant-side object that holds the cart, the delivery details and the totals until an order is created. The listing is illustrative: path, headers and field names come from the ACP agentic checkout RFC, the values are mine.

Agent platform to chair shop, 10:02
POST /checkout_sessions HTTP/1.1
Host: chair-shop.example
Authorization: Bearer <platform token>
Content-Type: application/json
API-Version: 2026-04-17
Idempotency-Key: 6a1d2c9e-41f7-4b0a-8f3d-2c7e9b5a1d44

{
  "items": [{ "id": "chair_ergo_7", "quantity": 1 }],
  "fulfillment_details": {
    "name": "<shopper>",
    "address": { "line_one": "<street>", "city": "Graz", "country": "AT", "postal_code": "8010" }
  }
}

The request contains no price. The price comes back from the merchant, which the RFC calls the system of record that returns an “authoritative cart state on every response”. This is the response, with payment handlers, shipping options and policy links left out.

Chair shop to agent platform, 201 Created
{
  "id": "cs_chair_01",
  "status": "ready_for_payment",
  "currency": "eur",
  "line_items": [
    {
      "id": "li_1",
      "item": { "id": "chair_ergo_7", "quantity": 1 },
      "base_amount": 24900, "discount": 0, "subtotal": 24900, "tax": 0, "total": 24900
    }
  ],
  "totals": [
    { "type": "items_base_amount", "display_text": "Item", "amount": 24900 },
    { "type": "fulfillment", "display_text": "Shipping", "amount": 3600 },
    { "type": "total", "display_text": "Total", "amount": 28500 }
  ],
  "messages": []
}

Amounts are in minor units. Nothing in the object is signed: it was true when sent, and a later GET may return different totals.

UCP models the same step with its own status names (incomplete, ready_for_complete, complete_in_progress, completed). Its base checkout says the checkout “has to be finalized manually by the user through a trusted UI unless the AP2 Mandates extension is supported”. When that extension is negotiated, the business signs every checkout response (illustrative, cut to the relevant fields).

UCP checkout response with the AP2 extension active
{
  "id": "chk_chair_01",
  "status": "ready_for_complete",
  "currency": "EUR",
  "totals": [{ "type": "total", "amount": 28500 }],
  "ap2": {
    "merchant_authorization": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImNoYWlyX3Nob3BfMjAyNiJ9..<signature>"
  }
}

The value is a detached JSON Web Signature over the checkout body itself, canonicalized with RFC 8785 after the ap2 field is removed. The extension gives the reason for canonical bytes: mandates “are stored as evidence of user consent” and may be verified “days or months later”. From here on, the €285 cart is an object that can be hashed and compared. That is the precondition for approving it exactly.

Step 2: the shopper approves something

What the protocols make of the 10:04 confirmation differs more than anything else in the flow. In ACP it is an event inside the agent platform that no message carries; the merchant infers it when a completion arrives with a usable token.

AP2 turns the confirmation into a mandate, a signed statement of what the agent is authorized to do. Version 0.2 defines two types, Checkout and Payment, each in a closed form (final values) and an open form (constraints). They are SD-JWTs, tokens with selective disclosure, created on a trusted surface: a user interface that the specification requires to be non-agentic, so the language model is not in the consent path.

Approving the exact cart

In AP2’s human-present mode the shopper approves the closed checkout, and two closed mandates are signed. The Checkout Mandate carries the merchant-signed checkout and a checkout_hash over it. The Payment Mandate follows the schema; the values are mine and the SD-JWT envelope is omitted.

Closed Payment Mandate, content as signed at 10:04
{
  "vct": "mandate.payment.1",
  "transaction_id": "<base64url SHA-256 of the signed checkout>",
  "payee": { "id": "chair_shop", "name": "Chair Shop", "website": "https://chair-shop.example" },
  "payment_amount": { "amount": 28500, "currency": "EUR" },
  "payment_instrument": { "id": "instr_1", "type": "card", "description": "Card ••••4242" }
}

The line that does the work is transaction_id, the hash of the checkout JWT, the same value the Checkout Mandate carries as checkout_hash. Payment approval and cart approval point at one signed object, and neither can be moved to another cart. Under UCP the checkout mandate “MUST contain the full checkout response including the ap2.merchant_authorization field”, so the shopper’s signature covers the merchant’s.

Approving a range

In human-not-present mode the shopper signs open mandates and leaves; the agent later signs the closed ones with its own key. The price limit lives in the open Payment Mandate.

Open Payment Mandate, content as signed by the shopper
{
  "vct": "mandate.payment.open.1",
  "constraints": [
    { "type": "payment.amount_range", "currency": "EUR", "max": 30000 },
    {
      "type": "payment.allowed_payees",
      "allowed": [{ "id": "chair_shop", "name": "Chair Shop", "website": "https://chair-shop.example" }]
    },
    { "type": "payment.reference", "conditional_transaction_id": "<hash of the open Checkout Mandate>" }
  ],
  "cnf": { "jwk": { "kty": "EC", "crv": "P-256", "x": "<agent key x>", "y": "<agent key y>" } },
  "iat": 1796119440,
  "exp": 1796123040
}

For payment.amount_range the closed mandate’s amount “MUST be within the range defined by min and max”. The cnf claim binds the open mandate to the agent’s key, since it is not yet tied to a transaction. One detail decides who catches a price problem: the constraints defined for open Checkout Mandates, checkout.allowed_merchants and checkout.line_items, say nothing about money. The limit exists only on the payment side, so the credential provider evaluates it and the merchant is not asked to.

Step 3: a credential is released against the approval

The agent now needs something the merchant can charge: a scoped stand-in for the card. The scope is where the approval survives or is lost.

In ACP the agent platform calls the merchant PSP’s Delegate Payment endpoint and receives a vault token. The body is illustrative; the fields are the required ones.

Delegate Payment request body, 10:04
{
  "payment_method": {
    "type": "card",
    "card_number_type": "network_token",
    "virtual": false,
    "number": "<network token>",
    "display_card_funding_type": "credit",
    "metadata": {}
  },
  "allowance": {
    "reason": "one_time",
    "max_amount": 28500,
    "currency": "eur",
    "checkout_session_id": "cs_chair_01",
    "merchant_id": "chair_shop",
    "expires_at": "2026-12-01T11:00:00Z"
  },
  "risk_signals": [{ "type": "card_testing", "score": 10, "action": "authorized" }],
  "metadata": { "source": "agent_checkout" }
}

The allowance is the whole of ACP’s approval record. The returned token “MUST ONLY be usable within the provided Allowance”, but the RFC does not say which number belongs in max_amount. Stripe’s shared payment token documentation says “The agent sets the maximum amount to match the total amount of the transaction”, so I put 28500 there. An agent could equally send 30000, the ceiling she stated. The field cannot say whether its amount is a quote or a limit.

In AP2 the agent presents the Payment Mandate to the credential provider, which must verify it, and check any open mandates’ constraints, before it returns a credential. Visa Intelligent Commerce is a network’s version of the same step: the released credential is a network token with a one-time cryptogram, issued against an “instruction” that carries a declineThreshold.

Step 4: completion and charge

At 10:06 the agent completes the session.

Agent platform to chair shop, 10:06
POST /checkout_sessions/cs_chair_01/complete HTTP/1.1
Host: chair-shop.example
Authorization: Bearer <platform token>
Content-Type: application/json
API-Version: 2026-04-17
Idempotency-Key: 0c9f6b7e-2a15-4e8c-b1d0-7f3a9e64c2b8

{
  "payment_data": {
    "handler_id": "card_tokenized",
    "instrument": { "type": "card", "credential": { "type": "spt", "token": "spt_chair_01" } }
  }
}

The request has no amount. In the schema only payment_data is required. The merchant charges whatever the session total is at that moment. With Stripe as PSP it creates a PaymentIntent for amount=28500 with the granted token, an amount the merchant alone supplies.

AP2 adds signed receipts at this step: a Checkout Receipt from the merchant and a Payment Receipt from the processor, each with a reference to one closed mandate, so mandate and receipt can be laid side by side in a dispute. The article on disputes over agent purchases takes that further.

The total moves after the shopper approved

Now the constructed failure. At 10:05, one minute after she confirmed, the chair shop’s carrier rating returns: the chair must go as bulky freight. Shipping becomes €66.00 and the total €315.00. No call from the agent caused this, so no response has told the agent. Figure 2 shows where the purchase goes, chosen by what was signed in step 2.

flowchart TD
  A["Total changes after approval"] --> B{"What was approved?"}
  B -->|"Exact checkout"| C["Hash of checkout no longer matches"]
  C --> D["Merchant rejects completion"]
  D --> E["Shopper is asked again"]
  B -->|"Range up to 300.00"| F{"New total within range?"}
  F -->|"Yes, 299.00"| G["Agent signs new closed mandates"]
  G --> H["Order placed, shopper not asked"]
  F -->|"No, 315.00"| I["Credential refused, error receipt"]
  I --> E
  B -->|"Only a token cap"| J["Depends on cap and timing"]
Figure 2 The same price change ends in a new approval, a silent completion or an ambiguous decline, depending on what the shopper signed.

Exact approval: the purchase stops

With UCP and the AP2 extension, the agent’s checkout mandate embeds the €285 checkout. On complete, the business must “confirm the embedded checkout terms match the current session state (id, totals, line items)”. They do not, and the extension returns mandate_scope_mismatch. In plain AP2 the same failure is a hash comparison against checkout_hash, answered with an error receipt.

No money has moved and the cause is named. The result would be identical at €285.01: an exact approval has no notion of “close enough”, so every late recalculation of shipping or tax costs one more trip to the shopper.

Bounded approval: the limit decides, without the shopper

With open mandates, the agent signs new closed mandates for the new checkout. At 31500 the closed Payment Mandate fails the range check against 30000, the credential provider issues no token, and the agent receives a Payment Receipt with status: Error. The flow notes describe bringing “the User back into the loop to approve the closed Mandates”.

Had the freight come back at €50.00, total €299.00, the closed mandate would pass and she would never be asked about the €14. That is also correct, for a different sentence: “buy this if it stays under €300”.

Two points in AP2’s bounded path that the text leaves loose

AP2 defines four error codes for a rejected mandate, and two could apply at €315. unresolved_constraint covers a verifier “unable to verify that the closed Mandate conforms” and may signal a fallback to a directly approved mandate. invalid_mandate covers a mandate that “fails to approve the requested action” and is terminal. A clean range violation reads to me like the second, yet the first is the one that routes back to the shopper. I would expect implementations to differ until the text is tightened.

The specification also says agents “MUST NOT present any subsequent open Payment or Checkout Mandates without receiving a rejection receipt from the previous one”. If the agent already obtained a credential for the €285 checkout, it needs a rejection for that attempt before trying again at €299. The merchant’s error receipt on the stale checkout hash is the obvious candidate; the text does not say which receipt releases the payment side.

A cap with no stated relation to the cart

ACP has neither a signed cart nor a constraint language, so the outcome depends on max_amount and on the order of events. Figure 3 follows the case as constructed: cap 28500, repricing at 10:05, completion at 10:06.

sequenceDiagram
  participant S as Shopper
  participant A as Agent platform
  participant M as Chair shop
  participant P as Merchant PSP
  M-->>A: session total 28500
  A->>S: show 285.00 EUR
  S-->>A: confirm at 10.04
  A->>P: delegate payment, max 28500
  P-->>A: token spt_chair_01
  Note over M: 10.05 shipping repriced, total 31500
  A->>M: POST complete, no amount
  M->>P: charge 31500 with token
  P-->>M: refused, over the allowance
  M-->>A: error payment_declined
Figure 3 With only a token cap, the price change is discovered by the payment provider, and the agent is told the payment was declined.

The completion request named no amount, so the merchant had nothing to compare and charged the session total. The PSP refused, as the allowance requires. The closest code in ACP’s error list is payment_declined, and the agent tells the shopper her card was declined. Her card was never the problem, and an agent that reacts by offering another card or another merchant is solving the wrong problem.

Two other orderings are possible. If the agent retrieves the session before completing, it sees 31500 and can stop; ACP’s price_change warning exists, but no normative text says when a merchant must send it. If the agent had cut the token at 30000 and the total had moved to €299, the charge would succeed: the bounded outcome without a bounded approval behind it, and nothing on record that she saw €285.

Visa Intelligent Commerce sits between the designs. The agent states an amount when it retrieves a credential, and the API reference defines THRESHOLD_EXCEEDED when it passes the declineThreshold, so the limit is checked before a credential exists, as in AP2’s bounded mode.

What these documents do not settle

Tolerance. No specification I read defines “this total, give or take 2% for tax rounding”. The choice is an exact object or a stated range, so a merchant whose totals settle late has to pick one, or finish its calculation before it asks.

The decline that is not a decline. In my reading of ACP’s error list, a cap violation and an issuer decline can reach the agent under the same code, and Stripe’s page does not say how a charge above the token’s limit is reported to the seller.

Pending outcomes and authentication. What an agent should do when it does not know whether the charge happened is covered in A timeout is not a decline. Whether a signed mandate counts as strong customer authentication is covered in SCA meets the shopping agent.

Unstable names. AP2 calls its limit payment.amount_range; Verifiable Intent calls it mandate.payment.amount_range. AP2 treats unknown constraints as failing, so until the FIDO working group converges the two, a mandate built for one should not be assumed to verify in the other.

Record which sentence was approved

The four steps hold together when the total stands still and separate when it moves, because only the approval step knows what the shopper meant. So the first design decision is not about protocols. For each kind of purchase, decide whether the shopper approves a cart or a range, and store that as data next to the order: the scope, the amount shown, the limit stated, the time. With AP2 the mandate is that record. With ACP nothing on the wire is, so the agent platform has to keep it.

In an ACP flow I would set max_amount to the total the shopper saw, not to her ceiling, and build any range behaviour in the platform with a fresh approval and a fresh token. I would retrieve the session immediately before complete and compare totals, since the completion request will not. As a merchant I would finish shipping and tax before reporting ready_for_payment, and never leave the PSP to discover the mismatch.

AP2 and Verifiable Intent are drafts in a standards body, ACP’s RFCs are marked draft, and Stripe’s token API is a preview. The field names will change. The question will not: was it the €285 or the €300 that she approved?

Sources

Work with me

Working on this problem? I’m glad to compare notes.

Tell me about the problem