# Mispaid sells

What happens when a user pays a sell the wrong amount, too late, in parts or twice, and how the BTC comes back. It is for support teams and for apps that show a Bitcoin deposit address. Other failures: [When it fails](https://maxy.co/docs/when-it-fails).

## What can go wrong

A sell goes wrong when the payment is the wrong amount or too late. The contract proves only an output of exactly the amount in `sats`, inside the window.

| What happened | `state` | Result | Do |
| --- | --- | --- | --- |
| Exact, in time | `in_progress`, `completed` | Payout released | Nothing |
| Exact, one block after the deadline | `in_progress` | Still the user's | `GET /orders/{id}/claim` |
| Different amount | `awaiting_deposit`, `expired` | Returned under the mispaid-sell policy | Nothing: it is returned automatically |
| Later than that | `expired` | Returned under the mispaid-sell policy | Nothing: it is returned automatically |
| Never paid | `expired` | Nothing was sent | New order |

The solver sends the proof itself. If a paid order sits unproven, `GET /orders/{id}/claim` answers the proof as a transaction any wallet may send. The payout still goes only to the user. Prevent support cases: show the exact amount, ask for one payment, and show the time left from `expiresAt`.

## The mispaid-sell policy

Your Bitcoin is not lost. A payment the contract cannot match stays at the order's deposit address, which is held by the solver that locked your payout, and it is returned to you.

| What happened | What happens next |
| --- | --- |
| Paid the exact amount, one block late | The payout is still yours. `GET /orders/{id}/claim` builds the claim, and any wallet can send it |
| Paid a different amount | The full payment is returned, less only the Bitcoin network fee for the return |
| Paid more than one block late | The full payment is returned, less only the Bitcoin network fee for the return |
| Paid in more than one output or transaction | Every part is returned, less only the Bitcoin network fee for the return |
| Paid again after the order settled | The extra payment is returned, less only the Bitcoin network fee for the return |

- **No request needed.** Maxy's solver returns a mispaid payment automatically, once the order can no longer settle: to the payer address named in the quote, or, where none was named, to the address behind the payment's largest input. A payment that arrives after the order ended goes back after its first confirmation. The deposit address is watched for 30 days after the order ends.
- **Where it goes.** To a Bitcoin address you name. If you name none, to the address behind the payment's largest input. If you paid from an exchange, always name an address: the exchange's sending address may not credit you. On an order placed through the API, the payer address given as `fromAddress` on the quote is the address you named.
- **How to ask.** To have a return sent to a different address, write to your Maxy contact, the route for help with an order on [Working with Maxy](https://maxy.co/docs/working-with-maxy#get-help), with the txid and the proof below. An end user asks the app they used, which passes it on. Send the Bitcoin txid to your app's support or to Maxy. To name an address, show the payment is yours: sign a message with the Bitcoin address that paid, or with the EVM wallet that signed the sell order.
- **How long it takes.** A return is sent within 3 business days of a verified request.
- **What it costs.** Nothing beyond the network fee. Maxy charges no fee for a return.

Every solver that fills sells accepts this policy as a condition of taking part.

---
Source: https://maxy.co/docs/mispaid-sells (Maxy Docs › User flows and examples › Status tracking)
