> ## 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](/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.
* **Payer's bank.** The bank where the payer pays the boleto.

## Diagram

***

<img src="https://mintcdn.com/lerian-49cb71fc/uMjNOPyy5mI7z1yU/images/en/d2/id-collect-trade-bills-and-boletos.svg?fit=max&auto=format&n=uMjNOPyy5mI7z1yU&q=85&s=009c9719185e161b54f18c4ed4666b5b" alt="Collect trade bills and boletos" width="1460" height="1206" data-path="images/en/d2/id-collect-trade-bills-and-boletos.svg" />

## Steps

***

| # | From | To | Message | Lerian API | What happens |
| - | - | - | - | - | - |
| 1 | Your institution | Lerian | Lerian API | Pending | Before maturity, ask Lerian to register the boleto linked to the trade bill. |
| 2 | Lerian | Núclea | `DDA0101` | Pending | Lerian registers the boleto in the centralized base. |
| 3 | Payer's bank | Núclea | Between other parties | | The payer pays the boleto at another bank, which writes it off in the centralized base. |
| 4 | Núclea | Lerian | `ROC` | Pending | From 15:00 to 15:05 on D0, Núclea sends the clearing result file. |
| 5 | Núclea | Lerian | `LDL0021` | | At 07:01 on D+1, Núclea informs the net amount to receive. |
| 6 | Lerian | Your institution | Lerian API | [`GET /api/v1/siloc/settlement-instructions/{instructionId}`](/en/reference/rails/siloc/get-settlement-instruction) | Lerian SILOC records the settlement instruction in `CREDIT_EXPECTED`. |
| 7 | Núclea | STR (BACEN) | `LDL0020` | | At 08:20 on D+1, Núclea orders the transfer to the creditors. |
| 8 | STR (BACEN) | Lerian | `LDL0020R2` | | STR reports the credit in your institution's reserve account. Lerian SILOC moves the instruction to `SETTLED`. |
| 9 | Lerian | Your institution | Lerian API | [`GET /api/v1/siloc/cycles/{cycleId}/reconciliation`](/en/reference/rails/siloc/get-cycle-reconciliation) | Read the reconciliation of the settled instruction against the clearing result. |
| 10 | Your institution | Your institution | Internal step | | Write off the trade bill and amortize the loan. |

If your institution's net position in the collection cycle is a debit, the instruction is in `FUNDING_REQUIRED` and you deposit with `LDL0022` from 07:00 to 08:00 through [`POST /v1/str/operations/ldl-deposits`](/en/reference/rails/spb/create-ldl-deposit).

## 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](/en/diagrams/native-rails/pay-the-net-debit-position)
* [Register receivables as collateral](/en/diagrams/native-rails/register-receivables-collateral)
* [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.