# Disputes and refunds

Follow a dispute from the receipt to a settled refund on stablecoin and card rails, including what happens when an unknown merchant never answers.

<ShortProductTruth>A dispute starts from a receipt, with the evidence attached automatically. The merchant accepts or contests. A refund settles on the same rail with its own receipt and a ledger reversal, and gives the budget back.</ShortProductTruth>

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

Owners and finance, when a paid resource is wrong, duplicated or never arrived. Merchants, who answer disputes and send refunds.

## Open [#open]

From a confirmed payment's receipt, an owner, an admin, a finance lead or the team's approver picks a reason:

| Reason | For |
| --- | --- |
| Not delivered | The merchant's response failed or never came. Preselected when delivery failed. |
| Wrong amount | The price did not match what was offered. |
| Duplicate | The same thing was paid twice. |
| Unauthorized | The purchase should not have happened. |

Abazi attaches the evidence for you:

- the signed receipt with its hash, signature and key id;
- the payment's state timeline;
- what the merchant answered: status code, content type, a hash of the body, delivery status and error;
- the approval record with the hash of the signed closed mandate, if there was an approval;
- the purchase fingerprint and the settlement reference.

The merchant is notified, a `dispute.opened` event is sent, and the buyer gets a public status link.

<Screenshot id="console-disputes" />

## Respond and refund [#respond-and-refund]

A verified merchant answers in its console: accept and refund, or contest with text and files. A merchant can also refund without a dispute.

| Rail | How the money goes back |
| --- | --- |
| x402 USDC and direct USDT | The merchant's wallet sends the amount back to the wallet that paid. |
| Virtual card | A return on the agent's virtual card; the card issuer's event settles the refund. |

When the refund settles:

- a refund receipt is issued, linked to the original receipt;
- the ledger posts the exact reversal of the payment's entries;
- committed budget goes down at organization, team and agent level;
- `refund.settled` is sent, and `payment.refunded` when the full amount is back.

A partial refund keeps the payment `confirmed`. The full amount moves it to `refunded`.

## Boundary [#boundary]

- **Unknown merchants cannot be reached,** so a dispute against an UNKNOWN merchant that does not answer within 48 hours is accepted automatically.
- **Guarantee.** When a dispute is accepted and no merchant refund arrives within the window, the claim is booked against the Guarantee pool as a ledger entry. A pool entry is not a transfer to the buyer. See [Guarantee](/docs/products/guarantee).
- **Only confirmed payments** can be refunded, and never more than what is left after earlier refunds.
- **Delivery is not payment.** A payment can be confirmed while delivery failed. Disputes are how the buyer gets money back in that case.

## Example [#example]

A duplicate purchase, partly refunded, then disputed:

<Steps>
  <Step>An agent pays a verified merchant twice for the same item on Solana.</Step>
  <Step>The merchant notices and refunds part of the second payment on its own. A refund receipt links to the payment's receipt.</Step>
  <Step>The owner opens a "duplicate" dispute from the receipt. The evidence is attached.</Step>
  <Step>The merchant accepts and refunds the rest. The payment becomes `refunded`, the dispute `refunded`, the ledger nets the payment to zero and the agent's budget is free again.</Step>
</Steps>

## Failure cases [#failure-cases]

| Case | Result |
| --- | --- |
| The merchant's wallet cannot fund the refund | The refund fails with the reason. Inside a dispute, the error is saved with the evidence, and the Guarantee path can take over after the window. |
| The payment is not confirmed | Refused: only confirmed payments can be refunded. |
| The refund amount is more than what remains | Refused. |
| The merchant contests | The dispute stays open as contested until it is refunded or closed. |

<StateMachine name="dispute" />

<StateMachine name="refund" />

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

- The refund receipt passes the same four checks as any receipt. See [Receipts and proof](/docs/concepts/receipts-and-proof).
- The ledger shows the reversal entries next to the original payment.

## Next steps [#next-steps]

<Cards>
  <Card title="Disputes" href="/docs/products/disputes" description="See disputes as a product, buyer side and merchant side." />
  <Card title="Ledger" href="/docs/products/ledger" description="See how reversals keep the books balanced." />
  <Card title="Merchant trust tiers" href="/docs/concepts/merchant-trust-tiers" description="Learn why unknown merchants are treated differently in a dispute." />
</Cards>

