# What a box would match

`GET /sigmafi/zc/matches/{id}` · Lithos client API · SigmaFi ZC Standard

Source: https://lithosprotocol.org/docs/api/get-zc-matches

For an offer, what it would buy now in the zcs1 matching order. For an order or ask, the offers that would take it. Any box id in an offer's or ask's chain resolves to its current box.

## Parameters

| Name | In | Type | Required | Description |

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

| `id` | path | string | yes | A box id, bond asset, share token or receipt id.  |

| `ifRevision` | query | integer · int64 | no | Answer 304 when the snapshot revision still equals this.  |

## Responses

### 200: The matches

`ZcObject`

- `at` (ZcAt): The snapshot a read or quote was taken from.
  - `height` (integer)
  - `blockId` (string)
  - `indexedHeight` (integer)
  - `revision` (integer · int64): Changes whenever anything a read returns changes, the mempool included.
  - `cut` (boolean): True when the book is at its size cap and left boxes out.
  - `mempool` (boolean): Whether unconfirmed boxes are laid over the confirmed book.

### 304: Nothing changed since `ifRevision`.

### 400: A malformed field, or terms the contracts refuse.

`ApiError`

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

### 404: No such box or token, or not this wallet's.

`ApiError`

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

### 503: ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.

`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 GET "http://localhost:9000/sigmafi/zc/matches/{id}"
```

## Example response

```json
{
  "at": {
    "height": 0,
    "blockId": "string",
    "indexedHeight": 0,
    "revision": 0,
    "cut": true,
    "mempool": true
  }
}
```
