# Cancel an offer

> The seller only, at any time, also while paused. Every coin left goes back to the seller with the deposit. No fee.


`POST https://payday.direct/api/otc/cancel`

The seller only, at any time, also while paused. Every coin left goes back to the seller with the deposit. No fee.

## Body

- `wallet` (string, required): The wallet that signs and pays
- `listing` (string, required)

```json
{
  "wallet": "SellerWa11et1111111111111111111111111111111",
  "listing": "L1st1ngAddre55111111111111111111111111111111"
}
```

## Responses

- 200: OK
- 400: Refused; nothing to sign
- 429: Over the limit. Retry-After says when to try again.

```json
{
  "ok": true,
  "tx": "BASE64_UNSIGNED_V0",
  "units": 31022,
  "networkFeeLamports": 6600
}
```

## Example

```bash
curl -X POST "https://payday.direct/api/otc/cancel" \
  -H "Content-Type: application/json" \
  -d '{"wallet":"SellerWa11et1111111111111111111111111111111","listing":"L1st1ngAddre55111111111111111111111111111111"}'
```