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

# Collect trade bills and boletos

> How the payment of a boleto linked to a trade bill reaches your institution through the SILOC collection cycle and Lerian.

Receive the payment of trade bills and boletos given as collateral when the payer pays at another bank.

> [!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, 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.
* **Payer's bank.** The bank where the payer pays the boleto.

## Diagram

***

![Collect trade bills and boletos](https://mintcdn.com/lerian-49cb71fc/-JdEHn8RRUgJwJCQ/images/en/d2/id-collect-trade-bills-and-boletos.svg?fit=max\&auto=format\&n=-JdEHn8RRUgJwJCQ\&q=85\&s=f00e50b3688878f45eececbbf84f17a6)

## Steps

***

| # | From | To | Message | Lerian API | What happens |
| - | - | - | - | - | - |
| 1 | Your institution | Núclea | `DDA0101` | | Before maturity, register the boleto linked to the trade bill in the centralized base, outside Lerian. |
| 2 | Payer's bank | Núclea | Between other parties | | The payer pays the boleto at another bank, which writes it off in the centralized base. |
| 3 | Núclea | Your institution | `ROC` | | In the same-processing-date collection cycle, Núclea sends the last partial ROC at 15:00 and the final ROC by 15:05. Your institution receives it outside Lerian. |
| 4 | Núclea | Lerian | `LDL0021` | | From 15:21 to 15:23, Núclea informs creditors of the collection result for reconciliation. |
| 5 | Your institution | Lerian | Lerian API | [`GET /api/v1/siloc/settlement-instructions/{instructionId}`](https://docs.lerian.studio/en/reference/rails/siloc/get-settlement-instruction) | Read the expected credit in the settlement instruction. |
| 6 | Núclea | STR (BACEN) | `LDL0020` | | At 16:10 on the same processing date, Núclea orders the transfer to creditor reserve or settlement accounts. |
| 7 | STR (BACEN) | Lerian | `LDL0020R2` | | STR reports the credit in your institution's reserve account. Lerian SILOC moves the instruction to `SETTLED`. |
| 8 | Your institution | Lerian | Lerian API | [`GET /api/v1/siloc/cycles/{cycleId}`](https://docs.lerian.studio/en/reference/rails/siloc/get-cycle) | Read the cycle. Its `reconciliation` shows the settled instruction against the clearing result. |
| 9 | Your institution | Your institution | Internal step | | Write off the trade bill and amortize the loan only after confirmed settlement. |

If your institution's net position is a debit, the instruction is in `FUNDING_REQUIRED`. Fund it with `LDL0022` through [`POST /v1/str/operations/ldl-deposits`](https://docs.lerian.studio/en/reference/rails/spb/create-ldl-deposit): 07:00 to 08:00 in the first cycle, or 15:20 to 15:50 in the second cycle shown here. Do not apply the first-cycle window to this same-processing-date afternoon flow.

## How you know it finished

***

The settlement instruction in `SETTLED` with the `LDL0020R2` control number, and the cycle reconciliation matched against the clearing result.

## Related

***

* [Pay the net debit position](https://docs.lerian.studio/en/diagrams/native-rails/pay-the-net-debit-position.md)
* [Register receivables as collateral](https://docs.lerian.studio/en/diagrams/native-rails/register-receivables-collateral.md)
* [Lerian SILOC](https://docs.lerian.studio/en/rails/siloc/what-is-lerian-siloc.md)
* [Lerian SPB](https://docs.lerian.studio/en/rails/spb/what-is-lerian-spb.md)


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