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

# Pay the net debit position

> How a settlement bank pays its net debit in the multilateral SLC cycle.

Pay, within the deposit window, the day's net debit into Núclea's settlement account.

> [!NOTE]
>
> This flow is a suggested reading of the Núclea and BACEN manuals. The manuals prevail over this page. Your institution, as the participant, validates the flow and implements it on the Lerian APIs. See [how to read the diagrams](https://docs.lerian.studio/en/diagrams/introduction.md).

## Participants

***

* **Your institution.** The participant that runs the journey and books its effects.
* **Lerian.** Lerian SLC and Lerian SILOC. They exchange the messages with Núclea and expose the API and the events your institution uses.
* **Núclea.** Runs the SLC and SILOC clearinghouses and their settlement windows.
* **STR (BACEN).** The BACEN reserve transfer system. It moves the money between reserve accounts.

## Diagram

***

![Pay the net debit position](https://mintcdn.com/lerian-49cb71fc/qgZtW0Vn3HlCLdfR/images/en/d2/id-pay-the-net-debit-position.svg?fit=max\&auto=format\&n=qgZtW0Vn3HlCLdfR\&q=85\&s=7e74097022d5f4d73b0be44be747d8c6)

## Steps

***

| # | From | To | Message | Lerian API | What happens |
| - | - | - | - | - | - |
| 1 | Núclea | Lerian | `SLC0001` | | Núclea sends the preview at 05:40 in the first cycle and 11:10 in the second. |
| 2 | Lerian | Your institution | Lerian API | Event `clearing.preview_available` | Lerian publishes the preview. `GET /v1/clearing/positions` returns it. |
| 3 | Your institution | Núclea | `SLC0002` | | Optional: dispute a line by 06:20 or 11:50. Send the divergence outside Lerian. |
| 4 | Núclea | Lerian | `SLC0001` | | Núclea sends the final position at 06:20 or 11:50. |
| 5 | Lerian | Your institution | Lerian API | Event `clearing.final_available` | Lerian publishes the final position. `GET /v1/clearing/positions` returns it. |
| 6 | Núclea | Lerian | `LDL0021` | | At 06:35 or 12:00, Núclea informs the amount and the deadline. |
| 7 | Lerian | Your institution | Lerian API | Event `clearing.deposit_required` | Lerian publishes the amount and the deadline. |
| 8 | Your institution | STR (BACEN) | `LDL0022` | | Send the card cycle deposit (`CodProdt=SLC`) on your institution's own STR connection, from 06:35 to 07:30 or from 12:00 to 12:50. SILOC does not accept partial deposits. |
| 9 | STR (BACEN) | Your institution | `LDL0022R1` | | STR returns the result of the entry. |
| 10 | Your institution | Lerian | Lerian API | [`POST /v1/funding/settlement-instructions/{instructionId}/ack`](https://docs.lerian.studio/en/reference/rails/slc/record-funding-ack) | Record the deposit result, `SENT` or `FAILED`. `FAILED` keeps the instruction open and raises `funding.deposit_failed`. |
| 11 | Núclea | Lerian | `PAG0103` | | Núclea closes the deposit window. |
| 12 | Lerian | Your institution | Lerian API | Event `clearing.cycle_closed` | Lerian publishes the closed cycle. |

A participant that does not deposit the full amount is excluded from the cycle, and Núclea recalculates everyone's balances. See [Recalculate after a default](https://docs.lerian.studio/en/diagrams/native-rails/recalculate-after-a-default.md).

## How you know it finished

***

`LDL0022R1` with the entry made, your deposit confirmation recorded, and `clearing.cycle_closed` with your institution still in the cycle.

## Related

***

* [Recalculate after a default](https://docs.lerian.studio/en/diagrams/native-rails/recalculate-after-a-default.md)
* [Receive card receivables at the domicile](https://docs.lerian.studio/en/diagrams/native-rails/receive-receivables-at-domicile.md)
* [Lerian SLC](https://docs.lerian.studio/en/rails/slc/what-is-lerian-slc.md)
* [Lerian SILOC](https://docs.lerian.studio/en/rails/siloc/what-is-lerian-siloc.md)


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