# Approvals

What happens between REQUIRE APPROVAL and payment, what an approver signs with a passkey, who may approve, and why an approval can never lift a limit.

<ShortProductTruth>**Turn autonomy up. Never turn limits off.** An approval is a passkey signature over one exact purchase. It clears the "ask a person" steps of the policy for that purchase, and nothing else: hard caps, budgets and every other deny rule still apply.</ShortProductTruth>

## Who needs it [#who-needs-it]

Owners and approvers, who decide on purchases above a threshold, often from a phone. Agent developers, whose agents must wait correctly instead of retrying.

## Thresholds and limits [#thresholds-and-limits]

The owner moves two kinds of number, and they behave differently:

| Kind | Examples | What an approval does |
| --- | --- | --- |
| Threshold | Auto-approve limit, unknown-merchant limit, Shield review rules | Clears it for this one purchase. Raising a threshold in the mandate gives the agent more autonomy. |
| Limit | Per-purchase hard cap, organization, team and agent budgets, allowed rails and networks, paused payments | Nothing. No approval, and nothing the agent says, can lift a limit. |

In policy terms: an approval skips steps 5 to 7 only. See [Mandates and policy](/docs/concepts/mandates-and-policy).

## What happens when a purchase needs a person [#what-happens-when-a-purchase-needs-a-person]

When the policy returns REQUIRE APPROVAL, nothing is reserved yet. The intent waits in `awaiting_approval`, and Abazi:

1. Creates an approval bound to the purchase **fingerprint** (a hash of rail, merchant, payee, asset, network, amount, URL and request body), with the reason code and an expiry of <Limit name="approvalTtl" /> unless the organization set its own.
2. Creates a one-time link token. Only its hash is stored.
3. Notifies everyone who may decide: in the Console, and by a phone message with the one-time link for approvers who linked their phone.
4. Tells the agent to wait and check `get_purchase_status`, not to retry with a new idempotency key.

The approver opens the request in the Console or from the link, and sees the merchant and its trust tier, the amount and network, the service, the agent, the reason it needs a person, and the budget left after this purchase.

<Screenshot id="console-approvals" />

## What the approver signs [#what-the-approver-signs]

Abazi builds a closed mandate in AP2 v0.2 format for this purchase: the approval and intent, the fingerprint, amount, asset, network, merchant and payout address, the expiry and the version of the mandate it falls under (for a plan, also the plan terms). It is serialized as canonical JSON (RFC 8785). The passkey challenge carries the SHA-256 hash of those bytes, so the passkey signs exactly this purchase. The closed mandate and the signature are stored with the approval, and attached as evidence to any later dispute.

Passkeys here require user verification on the device, such as a fingerprint, a face or a PIN.

## After the approval [#after-the-approval]

1. **Quote again.** For x402, Abazi asks the merchant for its 402 again. If the price, payee or anything else in the fingerprint changed, the approval is marked invalidated and the purchase is denied with <ReasonCode code="APPROVAL_INVALIDATED" />.
2. **Decide again.** The policy runs again with the approval attached. Steps 5 to 7 pass as approved; every deny step still runs. The trace gets an extra line, "Re-check after approval".
3. **Reserve.** Only now is the budget reserved, and the payment continues as in [How a payment works](/docs/start/how-a-payment-works).

## Boundary [#boundary]

- **Bound to one purchase.** An approval covers one fingerprint. A changed price or payee voids it, at the re-quote or at the signer's own check.
- **Own team only.** An approver decides only for agents of their own team. Owners decide everything; admins and finance only with a grant. Approvals for an agent without a team go to owners and grantees.
- **First decision wins.** The approval is locked while it is decided. A second approver sees who already decided and when; the link page shows the final state without buttons.
- **Standing rules.** An organization can set a rule for one merchant: block it, or allow it up to an amount. An allow rule clears the same three steps an approval does, and nothing more.
- **Plans always ask.** An installment plan or subscription always needs a person, who approves the full terms once.

## Example [#example]

In the example mandate, the auto-approve limit is <Limit name="autoThreshold" /> and its hard cap <Limit name="hardCap" />.

One purchase above the auto-approve limit, approved on a phone:

<Steps>
  <Step>A research agent asks for a verified merchant's service priced above the auto-approve limit. Policy returns REQUIRE APPROVAL <ReasonCode code="ABOVE_AUTO_THRESHOLD" />.</Step>
  <Step>The team's approver gets a message with the link, opens it on a phone, sees the amount, the merchant and its tier, and confirms with a passkey.</Step>
  <Step>The merchant's quote is unchanged, the policy now allows, the budget is reserved and the signer pays.</Step>
</Steps>

The same request priced above the hard cap is denied with <ReasonCode code="HARD_CAP_EXCEEDED" /> and never reaches an approver.

## Failure cases [#failure-cases]

| Ending | Reason code | Money |
| --- | --- | --- |
| The approver rejects | <ReasonCode code="APPROVAL_REJECTED" /> | Nothing reserved |
| Nobody decides before the expiry | <ReasonCode code="APPROVAL_EXPIRED" /> | Nothing reserved |
| The quote changed after the request | <ReasonCode code="APPROVAL_INVALIDATED" /> | Nothing signed |
| A deny step hits on the re-check (for example the budget was used meanwhile) | That deny code, such as <ReasonCode code="BUDGET_EXCEEDED" /> | Nothing reserved |

<StateMachine name="approval" />

## How to verify [#how-to-verify]

- The payment's detail page shows the original trace, the approval with the approver and time, and the "Re-check after approval" line.
- The receipt names the approval and the approver, and is checked like any other. See [Receipts and proof](/docs/concepts/receipts-and-proof).

## Next steps [#next-steps]

<Cards>
  <Card title="Approve on a phone" href="/docs/guides/approve-on-a-phone" description="Follow one approval from the message to the passkey prompt." />
  <Card title="Mandates and policy" href="/docs/concepts/mandates-and-policy" description="See which steps an approval clears and which it never can." />
  <Card title="Reason codes" href="/docs/api/errors-and-reason-codes" description="Look up every approval and denial code and what to do next." />
</Cards>

