Agentic commerce puts an AI system at the far end of the merchant's checkout endpoint, where the agent retries on timeout and may spawn helpers that retry independently under a credential the buyer scoped in advance.
ChatGPT shopping merchants encountered this shift firsthand in early 2025. Geoffrey Fowler reported in the egg purchase incident that an OpenAI Operator agent used a stored card to buy a dozen eggs on Instacart for about $32 without a confirmation step. Instacart received a paid order with no cryptographic record of the buyer's authorization. Had the buyer disputed the charge, the merchant would have had nothing beyond a stored-card transaction to defend the sale.
Without a signed mandate, the merchant has no proof of what the buyer authorized, and AI agents moving money breaks single-click, single-rail assumptions.
Merchants inherit new obligations at five layers: authentication, mandate evidence, idempotency, reconciliation, and reversal handling for refunds and chargebacks. Settlement stays with the merchant and its payment service provider (PSP), and each requirement lands in the core ledger.
Agentic commerce for merchants (the model agentic checkout merchants must now support) is a checkout where an AI agent acts under a buyer-delegated credential. Three inputs define the shape of that checkout: the AI-surface flow, the credential formats offered by ACP and AP2, and the signed mandate that proves scope.
The agent sends the merchant an order and a constrained payment token, and the merchant decides whether to accept the order. In the documented OpenAI Agentic Commerce Protocol (ACP) checkout flow, the buyer confirms in the AI-surface flow, and the merchant runs its own payment and fraud signals before accepting or declining.
The credential can take different forms:
Across these credential formats, the mandate or token defines what the agent can do, including which merchant, the amount, and the time window.
The merchant can verify that scope before accepting the order. A signed mandate turns "the agent bought this" into "the buyer authorized the agent to buy this, up to this ceiling, before this expiry," which is the evidence a merchant needs when a dispute arrives months later.
Agent authentication changes merchant checkout at four points. These are verifying agent signatures at the edge, carrying the verified agent_id onto every ledger posting, preventing misclassifying legitimate agents as bots, and closing the browser-impersonation risk exposed by Amazon v. Perplexity.
Verify agent signatures at the Content Delivery Network (CDN) or API gateway before the request reaches application code.
For Trusted Agent Protocol deployments using HTTP Message Signatures, reconstruct the signature base from the request's covered components and verify it against the agent's public key, fetched from the registry using the keyid parameter.
Bind the verification algorithm to that key, and reject any signature whose algorithm doesn't match it. Reject requests with invalid time bounds or nonces to reduce replay risk.
Carry the verified agent_id from the edge check onto every ledger posting the order produces.
Once CDN-layer verification establishes agent authenticity before the request reaches application code, the verified identity travels as agent_id on capture, refund, and chargeback postings.
Stop tuning fraud rules to human latency and mouse movement.
Human-latency rules misclassify legitimate agents as malicious bots and cost the merchant the sale. False-decline costs compound with volume.
Unsigned agents that present as browsers give merchants no verifiable identity to log or dispute against.
When a request arrives with a Chrome User-Agent string but is actually an AI agent, the merchant cannot tell the two apart, cannot attribute the order to a specific agent operator, and cannot produce evidence of who acted on the buyer's behalf if the transaction is later challenged.
In 2025, Amazon v. Perplexity AI (originally No. 3:25-cv-09514, N.D. Cal.) surfaced the reverse failure mode of a trusted-agent protocol. Amazon alleged that Perplexity's Comet agent accessed user accounts while presenting itself as Google Chrome.
In August 2026, the Ninth Circuit vacated the district court's preliminary injunction (No. 26-1444), holding that the user, not Perplexity, is the party accessing Amazon under the CFAA. This leaves merchants and platforms to solve the identity-disclosure question contractually or technically rather than by statute.
Merchants should store AP2 SD-JWTs with disclosures, record the ACP allowance object at capture time, write the mandate hash and allowance ceiling as immutable posting metadata, and treat mandate evidence as proof of authorization rather than a liability shield.
A dispute a year from now depends on reproducing what the buyer authorized on the day of the transaction.
Retain AP2 mandate Selective Disclosure JSON Web Tokens (SD-JWTs) with their disclosures in compact serialization, which stores each token as a portable string.
Compact serialization lets the merchant recompute sd_hash, checkout_hash, and the Receipt reference on demand.
Read the ACP allowance object at capture and record max_amount, currency, expires_at, checkout_session_id, and merchant_id.
The allowance reference shows reason: "one_time", so treat any second capture against the same session as outside the token's scope.
Store the mandate hash and allowance ceiling as immutable posting metadata on the core ledger.
A mandate hash and allowance ceiling written as metadata on an immutable posting are queryable a year later. At the same time, the same fields in a PSP dashboard or application log table are harder to retain.
Formance is an open-source, programmable core ledger that unifies fiat and digital assets with regulatory-grade traceability. It provides a system of record for what the agent was allowed to do, and its immutability means nobody can edit the mandate record after a dispute arises.
AP2 mandate evidence proves what the buyer authorized. It does not settle who owes what when the transaction goes wrong.
Published acceptance guidance says detailed specifications will evolve as agent-payment concepts mature. Questions remain over whether a wrong-item agent purchase is unauthorized, who validates the agent's authority, and where liability sits when an agent exceeds scope.
Storing the mandate hash and allowance ceiling now gives the merchant a defensible answer when dispute rules land.
Agent-initiated orders become idempotent through three things: deterministic key derivation on the ACP Idempotency-Key header, enforcement in the service that controls the ledger write path, and a capture pattern that returns the same transaction on every retry.
Define the idempotency-key semantics the ACP specification leaves to the merchant.
Some ACP implementations require an Idempotency-Key header on POST requests, but the merchant still defines uniqueness scope, retention, behavior on payload conflicts, and who owns key generation.
Two idempotency rules cover most cases:
Without these two rules, retries from a parent agent and its helpers collide or double-execute against the merchant endpoint. The ledger ends up with duplicate captures instead of one canonical transaction the merchant can reconcile against.
Enforce idempotency inside the service that owns the ledger write path. A middleware cache sits too far from the transaction to guarantee that every retry resolves against the system of record.
Idempotency keys checked before the posting is committed mean every retry resolves against the ledger. The ledger metadata alone does not provide native idempotency, so application logic must block re-execution before the posting commits.
Without deterministic idempotency, a timeout becomes a duplicate authorization and then a double capture.
Under weak isolation, two agents using the same budget can read the same balance, both commit, and then the budget goes past its spending limits.
The capture pattern closes the loop, ensuring every retry against the same idempotency key resolves to the same ledger transaction, regardless of how many parent or helper agents submit the request.
To illustrate, a procurement agent buys $127,500.00 of equipment under a signed Checkout Mandate.
The participating accounts are the card PSP boundary at @counterparties:paymentServiceProviders:cardPsp, the merchant's card receivable at @platform:receivables:card, and the PSP fee expense at @platform:expenses:pspFees.
The PSP boundary may run negative because the boundary balance records the real USD introduced through the reconcilable payment boundary.
The capture moves $127,500.00 from the card PSP boundary to the card receivable, then the $3,187.50 PSP fee moves from the card receivable to the PSP fee expense.
The capture and PSP fee are separate postings within one atomic transaction, and settlement lands later as a separate posting.
The ledger assigns a transaction ID when the post commits. In Numscript, Formance's transaction language, the transaction is recorded as 4127.
// AGENT_CARD_CAPTURE
// Event: capture a $127,500.00 agent order and record the illustrative PSP fee
// Idempotency-Key: cs_8f2a91:capture
send [USD/2 12750000] (
source = @counterparties:paymentServiceProviders:cardPsp allowing unbounded overdraft
destination = @platform:receivables:card
)
send [USD/2 318750] (
source = @platform:receivables:card
destination = @platform:expenses:pspFees
)
set_tx_meta("event_type", "agent_card_capture")
set_tx_meta("checkout_session_id", "cs_8f2a91")
set_tx_meta("idempotency_key", "cs_8f2a91:capture")
set_tx_meta("agent_id", "agent_procure_0417")
set_tx_meta("checkout_hash", "sha256:9c1e...b7")
set_tx_meta("allowance_max_amount", "12750000")
The first post returns transaction 4127, and the write-path service persists the outcome under the key.
Thirty seconds later, a helper agent, unaware that the parent succeeded, submits the same script under the same key. The service returns transaction 4127 without posting the transaction a second time.
Transaction 4127 remains the only transaction on the ledger. It holds the $127,500.00 capture and the $3,187.50 fee, with a net card receivable of $124,312.50, so tomorrow's reconciliation has nothing to unwind.
Reconciliation changes for agent-driven volume through three shifts: per-rail receivable accounts, bi-temporal cut-offs, and preserved join chains across checkout session, payment reference, and fulfillment reference.
Split receivables into per-rail accounts so each capture lands in a bucket that maps to one provider statement.
AP2 supports multiple rails, so agent-driven volume can arrive through card, bank transfer, and digital-asset systems from the same platform within the same hour.
Card and bank-transfer captures enter @platform:receivables:card and @platform:receivables:bankTransfer, and stablecoin captures enter @platform:receivables:blockchain.
Every rail's capture uses the same posting shape, and the account path alone tells reconciliation which provider statement to compare against.
Use bi-temporal cut-offs so postings reconcile in the period the posting belongs to and not the period the posting was written.
Settlement timing varies by provider and rail. A cut-off set by machine time ("everything posted before midnight") turns timing differences into data drifts where the ledger shows a receivable the provider has not yet reported.
Bi-temporal cut-offs record two times: when the posting was written and when the posting became effective. A card capture posted at 23:58 and settled on the next cycle reconciles in the correct period.
Preserve the join chain between checkout_session_id, the payment reference the provider returns, and the fulfillment reference from the merchant's order system.
Breaking the checkout-payment-fulfillment chain turns a disputed agent order into three unlinked rows across three systems.
Store the payment reference as posting metadata on capture, and the fulfillment reference as posting metadata on settlement. A single ledger query joins all three IDs.
In agentic commerce, refunds and chargebacks post through two reversal patterns: merchant-initiated refunds with session-scoped idempotency keys, and issuer-initiated chargebacks with case-scoped keys plus a separate dispute-fee posting.
Both reversal types carry the original evidence chain and use the same account paths as capture, which keeps rail-level reconciliation intact.
A refund moves funds from the merchant's card receivable back to the card PSP boundary. PSP fee treatment (refunded, retained, or partially retained) follows the PSP contract instead of a scheme rule.
Derive the idempotency key as checkout_session_id:refund so the refund key cannot collide with the original capture key, and copy cart_mandate_hash and agent_id onto the refund posting so the reversal joins the same evidence chain.
A chargeback is issuer-initiated. A chargeback reverses the receivable, adds a separate dispute-fee posting to @platform:expenses:disputeFees, and records the scheme reason code and case identifier as metadata.
Chargeback reversals should not reuse the capture or refund idempotency key. Derive chargeback keys from the case identifier (for example, case_9f21c4:chargeback) so a subsequent representment win posts as a distinct reversal against the same case.
Merchants accepting agentic commerce postings need six fields because they turn an agent-driven transaction into a defensible record when a dispute lands.
Each field is validated at a defined point in the flow:
The egg on Instacart cost $32, and no one disputed it. The next agent order might be $32,000, and the dispute might land eighteen months later.
Merchants that carry these six fields on every posting have a defensible record when it does.
Those building for agentic commerce can clone the Formance Ledger on GitHub, run it locally, and post an agent-initiated capture with mandate metadata following the Numscript guide.