# Quote settling a position

`POST /forwards/positions/{boxId}/settle/check` · Lithos client API · Difficulty Forwards

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

What settling a position now pays each side and the builder. Any position can be settled by anyone once its window's last epoch is recorded. No body.

## Parameters

| Name | In | Type | Required | Description |

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

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

## Responses

### 200: Quote for the settlement

`DFSettleQuote`

- `boxId` (string, required)
- `refund` (boolean, required): Whether the window has left the accumulator, so each side gets its margin back.
- `records` (boolean, required): Whether the settlement also records the current epoch, which adds 5 LIT to the reward.
- `owedLong` (string, required)
- `owedShort` (string, required)
- `rewardLit` (string, required): LIT base units this wallet receives for building the settlement.
- `networkFee` (string, required)

### 404: No unspent position 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

### 422: The window's last epoch is not recorded yet, or no accumulator is deployed.

`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, or the accumulator could not be read. 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/positions/{boxId}/settle/check"
```

## Example response

```json
{
  "boxId": "string",
  "refund": true,
  "records": true,
  "owedLong": "string",
  "owedShort": "string",
  "rewardLit": "string",
  "networkFee": "string"
}
```
