> ## 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 net positions

> List the net debits a participant can still pay and the net credits it can still claim.

`GET /core/participants/{participant}/positions`

After a settlement cycle is netted, each participant has one net position per cycle and asset: a net debit to pay or a net credit to claim. This endpoint lists the positions that are still open, soonest payment deadline first.

## Authorization

**Authorization** `string` *required*

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

## Path parameters

**participant** `string` *required*

The participant's address.

## Responses

**participant** `string` *required*

**positions** `object[]` *required*

**positions\[].cycle\_id** `string` *required*

On-chain cycle ID.

**positions\[].cycle\_id\_text** `string` *required*

Core's text ID for the cycle. The [clearing action](https://docs.4mica.io/api-reference/operator/clearing-action.md) endpoints and the facilitator's `cycleId` field take this form.

**positions\[].asset\_address** `string` *required*

**positions\[].role** `string` *required*

`NET_DEBTOR` or `NET_CREDITOR`.

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

What a net debtor owes or a net creditor is owed, in base units as a decimal string.

**positions\[].gross\_outgoing** `string` *required*

Sum of the guarantees the participant issued in the cycle, before netting.

**positions\[].gross\_incoming** `string` *required*

Sum of the guarantees issued to the participant in the cycle, before netting.

**positions\[].payment\_submission\_deadline** `number` *required*

Unix seconds. The `ClearingHouse` refuses a net debtor's payment after it.

**positions\[].payment\_finality\_deadline** `number` *required*

Unix seconds. After it, core takes an unpaid net debit from the debtor's collateral. A net credit can be claimed once every debtor in the cycle has paid, and otherwise once that collateral has been taken.

**positions\[].commit\_confirmed** `boolean` *required*

Whether core has seen the cycle's commit finalized on-chain. Until then a payment can revert and both deadlines are core's estimate.

```bash cURL theme={null}
curl "https://base.sepolia.api.4mica.io/core/participants/0x1111111111111111111111111111111111111111/positions" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

```javascript title="Fetch" theme={null}
const response = await fetch("https://base.sepolia.api.4mica.io/core/participants/0x1111111111111111111111111111111111111111/positions", {
  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/participants/0x1111111111111111111111111111111111111111/positions"
print(requests.get(url, headers={"Authorization": f"Bearer {os.environ['ACCESS_TOKEN']}"}).json())
```

```json 200 OK theme={null}
{
  "participant": "0x1111111111111111111111111111111111111111",
  "positions": [
    {
      "cycle_id": "0x4444444444444444444444444444444444444444444444444444444444444444",
      "cycle_id_text": "0xba50cd2a20f6da35d788639e581bca8d0b5d4d5f:1796256000",
      "asset_address": "0xba50Cd2A20f6DA35D788639E581bca8d0B5d4D5f",
      "role": "NET_DEBTOR",
      "amount": "370000",
      "gross_outgoing": "400000",
      "gross_incoming": "30000",
      "payment_submission_deadline": 1796350500,
      "payment_finality_deadline": 1796357700,
      "commit_confirmed": true
    }
  ]
}
```

```json 401 Unauthorized theme={null}
{ "error": "missing scope" }
```

## Status codes

| Code | Description |
| - | - |
| `200` | The open positions. The list is empty when there are none. |
| `400` | The address is malformed. |
| `401` | The bearer token is missing or invalid, lacks `payment:read`, or belongs to another wallet. |
| `500` | Core could not load the positions. |

To settle a position, pay or claim it on the `ClearingHouse` with the SDK, or let the facilitator pay the gas: [sponsor a net debit payment](https://docs.4mica.io/api-reference/facilitator/clearing-pay.md), [sponsor a net credit claim](https://docs.4mica.io/api-reference/facilitator/clearing-claim.md).


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