> ## Documentation Index
> Fetch the complete documentation index at: https://docs.4mica.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List guarantees

> List the guarantees a payer issued, or a recipient received, in a settlement cycle.

`GET /core/payers/{payer}/guarantees`

`GET /core/recipients/{recipient}/guarantees`

Both endpoints page through one cycle's guarantees and report where each one stands. Use the payer form to reconcile what you paid and the recipient form to reconcile what you are owed.

## Authorization

**Authorization** `string` *required*

`Bearer <access_token>`. The token needs the scope `payment:read` and must belong to the payer or recipient in the path, or have the `admin` or `facilitator` role.

## Path parameters

**payer** `string`

The payer's address, on the payer endpoint.

**recipient** `string`

The recipient's address, on the recipient endpoint.

## Query parameters

**cycle\_id** `string` *required*

On-chain cycle ID, 32 bytes as hex.

**limit** `number`

Page size. Defaults to 100. Values are clamped to the range 1 to 500.

**after** `string`

The previous page's `next_cursor`.

## Responses

**cycle\_id** `string` *required*

**cycle\_id\_text** `string` *required*

**asset\_address** `string` *required*

**payer** `string`

Payer endpoint only.

**recipient** `string`

Recipient endpoint only.

**guarantees** `object[]` *required*

In the order core stored them.

**guarantees\[].guarantee\_id** `string` *required*

**guarantees\[].recipient** `string`

Payer endpoint only.

**guarantees\[].payer** `string`

Recipient endpoint only.

**guarantees\[].req\_id** `string` *required*

Decimal string. Unique per payer within the cycle.

**guarantees\[].amount** `string` *required*

Base units as a decimal string.

**guarantees\[].timestamp** `number` *required*

The timestamp the payer signed, in Unix seconds.

**guarantees\[].status** `string` *required*

See the table below.

**next\_cursor** `string`

Pass it back as `after` for the next page. Omitted on the last page.

```bash cURL theme={null}
curl "https://base.sepolia.api.4mica.io/core/payers/0x1111111111111111111111111111111111111111/guarantees?cycle_id=0x4444444444444444444444444444444444444444444444444444444444444444&limit=100" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

```javascript title="Fetch" theme={null}
const response = await fetch("https://base.sepolia.api.4mica.io/core/payers/0x1111111111111111111111111111111111111111/guarantees?cycle_id=0x4444444444444444444444444444444444444444444444444444444444444444&limit=100", {
  headers: { Authorization: `Bearer ${process.env.ACCESS_TOKEN}` },
});
console.log(await response.json());
```

```python Python theme={null}
import os
import requests
url = "https://base.sepolia.api.4mica.io/core/payers/0x1111111111111111111111111111111111111111/guarantees?cycle_id=0x4444444444444444444444444444444444444444444444444444444444444444&limit=100"
print(requests.get(url, headers={"Authorization": f"Bearer {os.environ['ACCESS_TOKEN']}"}).json())
```

```json 200 OK theme={null}
{
  "cycle_id": "0x4444444444444444444444444444444444444444444444444444444444444444",
  "cycle_id_text": "0xba50cd2a20f6da35d788639e581bca8d0b5d4d5f:1796256000",
  "asset_address": "0xba50Cd2A20f6DA35D788639E581bca8d0B5d4D5f",
  "payer": "0x1111111111111111111111111111111111111111",
  "guarantees": [
    {
      "guarantee_id": "GuaranteeId",
      "recipient": "0x2222222222222222222222222222222222222222",
      "req_id": "11469784405064699240",
      "amount": "100000",
      "timestamp": 1796292000,
      "status": "FINALIZED_PAYABLE"
    }
  ]
}
```

```json 404 Not Found theme={null}
{ "error": "Settlement cycle 0x4444444444444444444444444444444444444444444444444444444444444444" }
```

## Guarantee status

| `status` | Meaning |
| - | - |
| `PENDING_VALIDATION` | A validated guarantee waiting on its validator. Not payable yet. |
| `FINALIZED_PAYABLE` | Payable. It counts in the payer's net position when the cycle is netted. |
| `DISPUTED` | The validator rejected it. It stays out of netting. |
| `CANCELLED` | Validation did not finish before the deadline. It stays out of netting. |
| `NETTED` | Counted in the payer's net position for the cycle. |
| `SETTLED` | The payer paid its net debit for the cycle, or had none. |
| `DEFAULT_REMUNERATED` | The payer did not pay, and its net debit was taken from its collateral. |
| `ISSUED` | Reserved. Core does not currently write it. |

## Status codes

| Code | Description |
| - | - |
| `200` | One page of guarantees. |
| `400` | An address, `cycle_id`, or `after` cursor is malformed; the body is `{ "error": "<message>" }`. A missing `cycle_id` or a non-numeric `limit` is also `400`, with a plain-text body from the request parser rather than JSON. |
| `401` | The bearer token is missing or invalid, lacks `payment:read`, or belongs to another wallet. |
| `404` | The cycle does not exist. |
| `500` | Core could not load the guarantees. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.