> ## 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 through Lerian.

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](/en/diagrams/introduction).
</Note>

## Participants

***

* **Your institution.** The participant that runs the journey and books its effects.
* **Lerian.** Lerian SLC, Lerian SILOC and Lerian SPB. They exchange the messages with Núclea and STR, 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

***

<img src="https://mintcdn.com/lerian-49cb71fc/uMjNOPyy5mI7z1yU/images/en/d2/id-pay-the-net-debit-position.svg?fit=max&auto=format&n=uMjNOPyy5mI7z1yU&q=85&s=15a7bb10a1fc5bf250f2b7a7f87f11c6" alt="Pay the net debit position" width="1153" height="1542" data-path="images/en/d2/id-pay-the-net-debit-position.svg" />

## 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 | Lerian | Lerian API | Pending | Optional: dispute a line by 06:20 or 11:50. |
| 4 | Lerian | Núclea | `SLC0002` | Pending | Lerian sends the divergence to Núclea. |
| 5 | Núclea | Lerian | `SLC0001` | | Núclea sends the final position at 06:20 or 11:50. |
| 6 | Lerian | Your institution | Lerian API | Event `clearing.final_available` | Lerian publishes the final position. `GET /v1/clearing/positions` returns it. |
| 7 | Núclea | Lerian | `LDL0021` | | At 06:35 or 12:00, Núclea informs the amount and the deadline. |
| 8 | Lerian | Your institution | Lerian API | Event `clearing.deposit_required` | Lerian publishes the amount and the deadline. |
| 9 | Your institution | Lerian | Lerian API | Pending | Command the card cycle deposit (`CodProdt=SLC`) through Lerian, from 06:35 to 07:30 or from 12:00 to 12:50. SILOC does not accept partial deposits. |
| 10 | Lerian | STR (BACEN) | `LDL0022` | Pending | Lerian sends the deposit to STR. |
| 11 | STR (BACEN) | Lerian | `LDL0022R1` | Pending | STR returns the result of the entry. |
| 12 | Your institution | Lerian | Lerian API | [`POST /v1/funding/settlement-instructions/{instructionId}/ack`](/en/reference/rails/slc/record-funding-ack) | Record the deposit result, `SENT` or `FAILED`. `FAILED` keeps the instruction open and raises `funding.deposit_failed`. |
| 13 | Núclea | Lerian | `PAG0103` | | Núclea closes the deposit window. |
| 14 | Lerian | Your institution | Lerian API | Event `clearing.cycle_closed` | Lerian publishes the closed cycle. Credit and debit operations of the cycle move to `SETTLED`. |

Until the deposit through Lerian is available, your institution sends `LDL0022` on its own STR connection and records the result with [`POST /v1/funding/settlement-instructions/{instructionId}/ack`](/en/reference/rails/slc/record-funding-ack).

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](/en/diagrams/native-rails/recalculate-after-a-default).

## 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](/en/diagrams/native-rails/recalculate-after-a-default)
* [Receive card receivables at the domicile](/en/diagrams/native-rails/receive-receivables-at-domicile)
* [Lerian SLC](/en/rails/slc/what-is-lerian-slc)
* [Lerian SILOC](/en/rails/siloc/what-is-lerian-siloc)
* [Lerian SPB](/en/rails/spb/what-is-lerian-spb)


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