# Quote cancelling an offer

`POST /forwards/offers/{boxId}/cancel/check` · Lithos client API · Difficulty Forwards

Source: https://lithosprotocol.org/docs/api/check-df-cancel

What cancelling one of this wallet's offers returns. No body.

## Parameters

| Name | In | Type | Required | Description |

|---|---|---|---|---|

| `boxId` | path | string | yes | Offer box id, as listed by `GET /forwards/offers` or `GET /forwards/positions`. |

## Responses

### 200: Quote for the cancel

`DFCancelQuote`

- `boxId` (string, required)
- `returnedLit` (string, required)
- `returnedNanoErgs` (string, required)
- `networkFee` (string, required)
- `feeFromOffer` (boolean, required): Whether the fee comes out of the offer's own ERG rather than the wallet.

### 404: No unspent offer made by this wallet has that id.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### 503: Node unavailable. Retry.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### default: Error

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X POST "http://localhost:9000/forwards/offers/{boxId}/cancel/check"
```

## Example response

```json
{
  "boxId": "string",
  "returnedLit": "string",
  "returnedNanoErgs": "string",
  "networkFee": "string",
  "feeFromOffer": true
}
```
