# Disputes

How a buyer opens a dispute from a receipt with evidence attached, how the merchant accepts or contests it, and how refunds settle on stablecoin and card rails.

<ShortProductTruth>**A way back when a payment goes wrong.** A dispute starts from the receipt with the evidence already attached, the merchant accepts or contests it, and an accepted dispute becomes a refund with its own receipt.</ShortProductTruth>


## The problem it removes [#the-problem-it-removes]

Agents pay small amounts to merchants nobody has met, and some of those payments buy nothing. Without a dispute path the buyer has to chase each merchant by hand, with no shared record of what was paid and what arrived. Abazi Disputes gives both sides the same evidence and a fixed set of outcomes.

## Who uses it [#who-uses-it]

| Who | How |
| --- | --- |
| Owners and finance | Open a dispute from a receipt and follow it to a refund. |
| Merchants | Accept, which creates a refund, or contest with files. They can also refund without a dispute. |
| Auditors | Read the refund receipt, linked to the payment it reverses. |

## How it works [#how-it-works]

1. **Open.** The buyer picks a reason: not delivered, wrong amount, duplicate or unauthorized. When delivery failed, not delivered is preselected.
2. **Evidence.** Abazi attaches the signed receipt, the payment's state history, the merchant's response (status, content type and a hash of the body), the approval record if any, and the purchase fingerprint.
3. **Respond.** The merchant accepts or contests within a response window. A dispute against an UNKNOWN merchant that does not answer in time is accepted automatically. KNOWN and VERIFIED merchants keep the dispute open until they answer or Abazi's operations staff decide.
4. **Refund.** An accepted dispute becomes a refund on the rail the payment used.
5. **Settle.** On settlement the ledger posts a reversal, the budget is credited back at organization, team and agent level, and a refund receipt linked to the original is issued.

| Rail | How the refund moves |
| --- | --- |
| x402 stablecoin payments | A transfer from the merchant's payout address back to the account that paid. |
| Virtual cards | A return on the cleared card transaction. |

When an accepted dispute is still not refunded after the response window, [Abazi Guarantee](/docs/products/guarantee) records it as a claim against its protection pool.

## Screens [#screens]

<Screenshot id="console-disputes" />

## Boundaries [#boundaries]

| Case | What happens |
| --- | --- |
| The payment is not confirmed | It cannot be refunded. |
| A refund larger than what is left | Refused. The total refunded never exceeds the amount paid. |
| The merchant's wallet cannot send the refund | The refund is marked failed with the reason, and does not count against what is left to refund. |
| The reason is not one of the four | Refused. |

Disputes do not take part in payment decisions, so they produce no policy reason codes. An open or accepted dispute does keep a merchant from reaching the KNOWN tier. See [Merchant trust tiers](/docs/concepts/merchant-trust-tiers).

## API [#api]

The Disputes and refunds operations in the API reference, each with its parameters, responses and code samples:

<ApiOperationList ids={['listDisputes', 'createDispute', 'getDispute', 'createDisputeMessage', 'acceptDispute', 'contestDispute', 'uploadDisputeFile', 'withdrawDispute']} />

## Next steps [#next-steps]

<Cards>
  <Card title="Disputes and refunds" href="/docs/concepts/disputes-and-refunds" description="Read the dispute and refund states and the response windows." />
  <Card title="Proof" href="/docs/products/proof" description="See how a refund receipt links to the payment it reverses." />
  <Card title="Guarantee" href="/docs/products/guarantee" description="See how a purchase from an unknown merchant is protected and how a claim is filed." />
</Cards>

