See how an AI agent pays, one step at a time
Set the limits, the merchants and the assets an agent may use, then run five purchases. Each step lights up in the scene, with the data it carries. Some purchases pass the rules and some are declined, and you see why.
Simulation with synthetic data. No blockchain, no real money.
Not started. Run the 5 purchases, then step through them or let them play.
Step panel
Each step shows its data here
Press “Run the 5 purchases”. Every step then lights one part of the path between the bodies, and this panel shows what travels along it.
base64 of JSON
Read it as JSON
Paste the copied header into the decoder. Nothing is added to its address. Made-up values. An authorization is valid for 10 minutes.
Rules the institution sets
The customer institution sets the limits and approvals for agent-initiated payments itself, in the Corebanq Configurator.
Delegate tokens below the account or card, with caps, merchant and country limits, an expiry and instant revoke; a store of signed mandates, with references on every posting and hold; sub-ledgers for micro-payments with batch settlement; and real-time events for limit declines and budget thresholds. In Corebanq these primitives are rolling out, planned for January 2027.
Limits are in the token’s own units, with no conversion between USDC and EURC.
Allowed assets
Allowed merchants
Ledger
Approved payments and declined attempts, kept in this page’s memory only.
| Time (UTC) | Agent | Merchant | Asset | Amount | Result |
|---|---|---|---|---|---|
| No entries yet. | |||||
Checked in your browser. Nothing you type is sent, stored or put in the address bar.
How it works
An agent that pays over x402 meets a merchant that asks for money, checks the ask against the rules it was given, signs, and gets the resource. Simulation with synthetic data. No blockchain, no real money. The headers are shaped like x402 version 2, so you can read them in a decoder.
| Step | What happens | Where it is written |
|---|---|---|
| 1. Request | The agent asks a merchant for a paid resource. It has not paid yet. | x402 v2 specification |
| 2. 402 | The merchant answers 402 Payment Required. The PAYMENT-REQUIRED header, base64 of JSON, lists what it accepts: scheme, network, amount, asset, payTo and maxTimeoutSeconds. | x402 v2 HTTP transport; x402 v2 specification |
| 3. Rule check | Before the agent signs, the ask is held against the rules the institution set: the asset, the merchant, the limit per payment and the limit per day. This step is the playground's picture of those rules. It is not part of the x402 protocol. | The playground's own rules |
| 4. Signature | The agent signs an authorization with from, to, value, validAfter, validBefore and a nonce, and asks again with the PAYMENT-SIGNATURE header. | x402 exact scheme on EVM; x402 v2 HTTP transport |
| 5. Settlement | The merchant answers 200. The PAYMENT-RESPONSE header carries success, payer, transaction, network and amount. | x402 v2 HTTP transport; x402 v2 specification |
| 6. Ledger and flags | Each approved payment and each declined attempt is written to a ledger with its reason. Example monitoring rules then look at the attempt: velocity, a new merchant, an amount far above the agent's usual. | The playground's own rules |
The five purchases
The same agent, agent-demo-01, makes five purchases within one minute. They are scripted so that the default rules approve some and decline others. Change the rules and the outcome changes with them.
| # | Merchant | Amount | With the default rules | Example flag |
|---|---|---|---|---|
| 1 | Atlas Maps | 0.40 USDC | Approved | None |
| 2 | Borealis Data | 9.00 USDC | Declined: 9.00 USDC is above the per-payment limit of 5.00. | amount above usual |
| 3 | Ember Search | 0.30 USDC | Declined: Ember Search is not on the allowed merchants list. | new merchant |
| 4 | Cirrus Compute | 1.20 EURC | Declined: EURC is not an allowed asset. | None |
| 5 | Delta Weather | 0.25 USDC | Approved | velocity |
What the playground does not do
Simulation with synthetic data. No blockchain, no real money. Every address, signature and transaction hash is made up. Nothing is sent to a network, nothing is signed, and Finray holds no funds in it.
The flags are examples of the kind of rule XZiel runs. Their thresholds are made up: 5 attempts within 60 seconds, a merchant the agent has not paid before, an amount more than 10 times the agent's usual. Limits are counted in the token's own units, with no currency conversion.
The signature step is not a signature. The headers have the shape of the x402 version 2 objects, with made-up values, so the decoder can read them. Each authorization is valid for 10 minutes, as its maxTimeoutSeconds says.
Examples
Each button sets the rules above and clears the run. The outcome shown is what the five purchases do under those rules.
-
The default rules
The playground's defaults
- Rules
- Per payment 5.00, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.
Approved: purchase 1, purchase 5. Declined: purchase 2, purchase 3, purchase 4.
-
Allow EURC as well
Defaults, with EURC ticked
- Rules
- Per payment 5.00, per day 12.00. Assets: USDC, EURC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.
Approved: purchase 1, purchase 4, purchase 5. Declined: purchase 2, purchase 3.
-
Allow Ember Search
Defaults, with Ember Search ticked
- Rules
- Per payment 5.00, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate, Ember Search.
Approved: purchase 1, purchase 3, purchase 5. Declined: purchase 2, purchase 4.
-
A low daily limit
Defaults, with EURC ticked and a daily limit of 0.50
- Rules
- Per payment 5.00, per day 0.50. Assets: USDC, EURC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.
Approved: purchase 1. Declined: purchase 2, purchase 3, purchase 4, purchase 5.
-
A strict per-payment limit
Defaults, with a per-payment limit of 0.30
- Rules
- Per payment 0.30, per day 12.00. Assets: USDC. Merchants: Atlas Maps, Borealis Data, Cirrus Compute, Delta Weather, Fjord Translate.
Approved: purchase 5. Declined: purchase 1, purchase 2, purchase 3, purchase 4.
Sources
- x402 specification, version 2
- x402 version 2 HTTP transport: the PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE headers
- x402 exact scheme on EVM: the signed authorization
The rule check, the ledger and the three flags are the playground's own illustration of what an institution could set and see. They are not a statement of what any x402 server or any Finray product does today.
In the briefing we walk through your problem with the platform that handles it.
Book a Corebanq briefing