# x402 payment schemes: exact, upto, batch-settlement

> What the four x402 payment schemes do, when money moves in each, which SDKs support them, and how to pick one for a fixed, metered or high-volume API.

Published 2026-11-08. Source: https://toolvet.app/blog/x402-payment-schemes-exact-upto-batch-settlement

**Short answer:** x402 has four payment schemes, named by the `scheme` field of each entry in a challenge's `accepts` array. `exact` moves a fixed amount once; it is the scheme the SDK examples, the catalogs and ToolVet's checks are built around. `upto` lets the client sign for a ceiling and the server charge, once, for what was actually used. `batch-settlement` takes a signed commitment per request and moves the money later, in batches, through a payment channel or a billing account. `auth-capture` holds funds and later captures, voids or refunds them. They also differ in *when* settlement happens: the default `authorization` flow verifies first and charges after your handler succeeds, `upfront` charges first, `escrow` settles twice. As of 8 November 2026 the reference SDKs (TypeScript and Go at 2.30.0, Python at 2.27.0) implement `exact` on fourteen network families, `upto` and `batch-settlement` on EVM and Solana, and `auth-capture` on EVM only.

Some background: the [x402 v2 specification](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md) separates transport (HTTP, MCP, A2A), scheme (how value moves) and network (where it moves). Every scheme uses the same `PaymentRequirements`, `PaymentPayload` and `SettlementResponse` types; what changes is the logic a facilitator runs and the meaning of `amount`. ToolVet reads the challenge of every listed x402 endpoint without paying, records scheme, network, asset, pay-to address and amount, and scores the listing ([how we check and score](https://toolvet.app/methodology)). The amount it shows for an `upto` option is the ceiling, not what a call will cost, which is one reason to know which scheme you are looking at. [What to check in a challenge](https://toolvet.app/blog/x402-payment-challenge-checks) covers the fields around `scheme`; this post is about the field itself.

## The four schemes side by side

| | `exact` | `upto` | `batch-settlement` | `auth-capture` |
|---|---|---|---|---|
| Amount | Fixed, known before the call | Client signs a maximum, server settles the actual amount | Client commits to a per-request maximum, server charges up to it | Client authorizes a maximum, server captures up to it |
| When value moves | Per request, on-chain | Per request, on-chain | Later, in batches or on a billing cycle | Hold first, capture later |
| Reversible | No | No (settles once, possibly for 0) | Unclaimed channel balance can be refunded | `void`, `refund`, client `reclaim` |
| Default flow | `authorization` (`upfront` optional) | `authorization` on EVM, `escrow` on Solana | `authorization` | `escrow` (`authorization` optional) |
| Networks in the SDKs | EVM, Solana, TON, Algorand, Stellar, Aptos, Casper, Hedera, Keeta, Concordium, NEAR, XRPL, Cardano, Canton | EVM (Permit2), Solana | EVM, Solana; a Cloudflare binding is specified | EVM |

The network row is from the [SDK feature table](https://github.com/x402-foundation/x402/blob/main/docs/sdk-features.md) as of 8 November 2026, covering the TypeScript, Go and Python SDKs. Only EVM and Solana are in all three. The [specs folder](https://github.com/x402-foundation/x402/tree/main/specs/schemes) has bindings no reference SDK implements yet: `exact` on Lightning, Starknet and Sui among others, and `upto` on XRPL.

## `exact`: the default

The [`exact` spec](https://github.com/x402-foundation/x402/blob/main/specs/schemes/exact/scheme_exact.md) says the resource server "must know in advance the exact amount of funds they need to be transferred". The client signs an authorization for precisely `amount` of `asset` to `payTo`, the facilitator verifies it, the handler runs, the facilitator settles, and settlement "MUST produce exactly one identifiable transfer of `amount` of `asset` to `payTo`". On EVM the usual transfer method is EIP-3009 `transferWithAuthorization`, with Permit2 for tokens that lack it.

`exact` is the only scheme with an `upfront` option: a route may set `extra.paymentFlow: "upfront"` so payment settles *before* the handler runs, for handlers that outlast the authorization's validity window, and `upfront` is mandatory for bindings where the client submits the payment itself and presents a proof. The spec is blunt about the cost: "Under `upfront` the payment commits first, so a handler failure leaves the client charged with nothing delivered; this specification defines no refund." Clients "SHOULD choose" `authorization` "when a resource offers both".

If your price is fixed, use `exact`. The catalogs, the facilitators and [ToolVet's checks](https://toolvet.app/methodology) are built around it, and the median listed price in the eight largest categories was $0.01 per call in our [November data post](https://toolvet.app/blog/how-many-x402-apis-november-2026).

## `upto`: sign a ceiling, settle the meter

The [`upto` spec](https://github.com/x402-foundation/x402/blob/main/specs/schemes/upto/scheme_upto.md) "authorizes a transfer of up to a **maximum amount**", with the charge "determined at settlement time based on resource consumption during the request"; its examples are LLM tokens, bandwidth and compute. Five properties are mandatory on every network: single-use authorization, explicit `validAfter` and `deadline`, cryptographic binding of the recipient, a settled amount that is `<=` the maximum and "MAY be `0`", and a phase-dependent `amount`: at verification `PaymentRequirements.amount` is the maximum, at settlement it is the actual charge the resource server passes to the facilitator.

On EVM, per the [EVM binding](https://github.com/x402-foundation/x402/blob/main/specs/schemes/upto/scheme_upto_evm.md), `upto` uses Permit2 only, because EIP-3009 "requires exact amounts at signature time". The client signs `permitWitnessTransferFrom` for the ceiling, the witness binds `payTo` and the facilitator's own address (announced in `/supported`), and the facilitator calls the scheme's own `x402UptoPermit2Proxy` contract with the actual amount. Permit2 needs a one-time on-chain approval, and a client without one gets `412 Precondition Failed` with error code `PERMIT2_ALLOWANCE_REQUIRED` unless the server offers a gas-sponsoring extension. The spec's worked example has a buyer signing for 20,000 atomic units and the server settling 1,858, and it warns facilitator authors to re-verify the signature against `permitted.amount`, the ceiling, "NOT `paymentRequirements.amount`", or every partial settlement fails.

On Solana a signed transfer commits to an exact amount, so the [SVM binding](https://github.com/x402-foundation/x402/blob/main/specs/schemes/upto/scheme_upto_svm.md) uses the payment-channels program instead: the client escrows the ceiling in a channel, the server settles the actual amount with a signed voucher, and the flow is `escrow`; per the [docs](https://github.com/x402-foundation/x402/blob/main/docs/schemes/upto.mdx), even a zero-amount close "still lands a transaction to release the escrowed deposit and channel rent".

Server code is small: in the TypeScript Express middleware the route's `price` is the maximum and the handler calls `setSettlementOverrides(res, { amount: String(actualUsage) })`, in atomic units, as a percentage such as `"50%"` or as a dollar string such as `"$0.05"`. The TypeScript `upto` scheme shipped in `@x402/evm` 2.9.0 on 2 April 2026, per the [changelog](https://github.com/x402-foundation/x402/blob/main/typescript/packages/mechanisms/evm/CHANGELOG.md) and the [npm release dates](https://www.npmjs.com/package/@x402/evm). Do not use `upto` for streaming: the spec lists "multi-settlement / streaming", recurring payments and open-ended allowances as out of scope.

## `batch-settlement`: commit now, settle later

The [`batch-settlement` spec](https://github.com/x402-foundation/x402/blob/main/specs/schemes/batch-settlement/scheme_batch_settlement.md) is for cases where "gas fees exceed the value of individual requests, block confirmation time is incompatible with HTTP response latency, request volume requires batched settlement, or settlement happens through infrastructure that operates asynchronously from HTTP". The client attaches a signed commitment, the server verifies it and serves the resource immediately, and value moves later. The settlement result carries "a non-empty commitment identifier" rather than a transaction hash. The client commits to the per-request maximum and the server may charge less.

Two trust models are defined. *Capital-backed*: the [EVM binding](https://github.com/x402-foundation/x402/blob/main/specs/schemes/batch-settlement/scheme_batch_settlement_evm.md) uses "stateless unidirectional payment channels". The client deposits once into an on-chain channel, signs a cumulative voucher per request, and the server claims vouchers "periodically in batches" and sweeps the claimed funds to its receiver in one transfer; a `withdrawDelay` of 15 minutes to 30 days gives the client a timed way out for unclaimed balance. *Credit-backed*: the [`cloudflare:402` binding](https://github.com/x402-foundation/x402/blob/main/specs/schemes/batch-settlement/scheme_batch_settlement_cloudflare.md) replaces the deposit with an identity. Requests are signed with HTTP Message Signatures (RFC 9421), and "the network (Cloudflare) acts as Merchant of Record, handling batched settlement and billing the identity associated with the signature agent". No wallet is involved.

The cost is operational: someone runs the claim schedule and the channel store, the server by default or the facilitator with `extra.voucherManager: "facilitator"`.

## `auth-capture`: hold, capture, refund

The [`auth-capture` spec](https://github.com/x402-foundation/x402/blob/main/specs/schemes/auth-capture/scheme_auth_capture.md) is for payments "whose final amount is not known when the client authorizes, or which may later need to be undone". Where `exact` "offers no way to give it back", `auth-capture` defines a lifecycle: `authorize` reserves funds, `capture` pays held funds out (repeatable up to the hold), `void` releases the rest, `refund` returns captured funds, and `reclaim` lets the client recover its own hold after `extra.captureDeadline` passes. The default flow is `escrow`, settle before the handler and again after; the alternative `authorization` flow has a single `charge` after the handler and `refund` later. Later operations are additional `/settle` calls with a `payload.type` such as `"capture"`, so no new facilitator endpoint is needed.

By its version table it is the most recently drafted of the four: version 1.0 is dated 13 May 2026 and version 1.1, which added the flows and operator types, 18 August 2026. The feature table lists an EVM binding in TypeScript and Go only, and no Python support yet.

## Which flow runs when

The v2 spec's [payment flow table](https://github.com/x402-foundation/x402/blob/main/specs/x402-specification-v2.md) decides what happens when your handler throws:

| Flow | Order | If the handler fails |
|---|---|---|
| `authorization` | verify → resource → settle → respond | Client is not charged |
| `upfront` | settle → resource → respond | Client is charged; the spec defines no refund |
| `escrow` | settle → resource → settle → respond | Depends on the second settle (`upto` on Solana settles 0, `auth-capture` can `void`) |

The one invariant: "at least one check — a verify or settle before the resource — MUST run before the resource executes." Whenever the flow is not `authorization`, `accepts[].extra.paymentFlow` must be present in the challenge; a client "MUST NOT construct a payment for a `paymentFlow` they do not recognize" and should skip that entry. Since `@x402/evm` 2.23.0 (18 August 2026), `exact`, `upto` and `batch-settlement` on EVM can also return `settlement_pending` with a transaction hash when a broadcast transaction's receipt cannot be confirmed in time; [x402 settlement failed or pending](https://toolvet.app/blog/x402-settlement-failed-or-pending) covers what to do then.

## How to choose

If you sell: `exact` unless you have a reason not to. Move to `upto` when a single call's cost varies by more than your margin absorbs. Move to `batch-settlement` when the same clients call you thousands of times and the facilitator fee per settlement, which decides whether a one-cent API makes money ([facilitators compared](https://toolvet.app/blog/x402-facilitators-compared)), eats the price. Reach for `auth-capture` when refunds are part of the product. Whatever you pick, confirm your facilitator's `/supported` endpoint lists the scheme and network pair: since `@x402/core` 2.25.0 the TypeScript server exits at startup on "a permanent capability or route-configuration error" from the facilitator sync. ToolVet checks the public facilitators' `/supported` endpoints every five minutes ([facilitator status](https://toolvet.app/status/facilitators)).

If you build an agent: register the schemes you can pay with and skip `accepts` entries whose scheme you lack, as the SDK clients do. Read `extra.paymentFlow` and prefer `authorization`. For `upto`, the ceiling is what you are authorizing, so set your [spend cap](https://toolvet.app/blog/x402-sdk-vulnerabilities-spending-limits) to it. The free [x402 checker](https://toolvet.app/check) and the `preflight_check` tool on the [ToolVet MCP server](https://toolvet.app/agents) decode a challenge and show every `accepts` entry with its scheme before you sign anything.

## Frequently asked questions

### What is the difference between exact and upto in x402?

`exact` transfers a fixed amount the server knows before the call. `upto` has the client sign for a maximum and the server charge the actual amount used, anywhere from the maximum down to zero. Both charge once per authorization. On EVM `upto` requires Permit2 and a one-time Permit2 approval; on Solana it uses a payment channel in the `escrow` flow.

### Which x402 scheme should a metered API use?

`upto` if one request has a variable cost you can meter while it runs, such as tokens generated or bytes transferred. `batch-settlement` if the cost is small and the volume high enough that per-request settlement fees are the problem. Neither supports streaming payments against one authorization.

### Does my facilitator support upto or batch-settlement?

Each facilitator lists the scheme and network pairs it settles at its `/supported` endpoint; check it before choosing. As of 8 November 2026 the reference SDKs implement `upto` and `batch-settlement` on EVM and Solana and `auth-capture` on EVM.

### What does paymentFlow mean in an x402 challenge?

It says when settlement happens relative to the request handler. `authorization`, the default, verifies before and settles after, so a failed handler leaves the client uncharged. `upfront` settles first and the spec defines no refund. `escrow` settles a deposit or ceiling before and the final charge after. The field must appear in `accepts[].extra` whenever the flow is not `authorization`, and clients should skip entries with a flow they do not recognize.

Everything above is from the x402 specifications, scheme documents, SDK feature table and package changelogs in the x402 repository as read on 8 November 2026, with release dates from the npm registry. [How we check and score](https://toolvet.app/methodology) explains how ToolVet reads payment challenges without paying them.
