Skip to main content

Asset Settlement

This section documents the APIs that enable the Asset Settlement process for Investment Funds administered by QI DTVM. Through these APIs, you can record installment payments, amortizations, repurchases, and other settlement events for the assets in the fund's portfolio.

Context

The asset settlement described in this section applies exclusively to credit rights (CCBs, duplicatas, contracts, etc.) already included in the fund's portfolio. Treasury Bills, Debentures, and other fixed-income assets do not apply to this flow.

Prerequisites
  • To access these services, contact integracao.dtvm@qitech.com.br to enable the Sandbox and Production environments.
  • You will need the fund_class_key (fund key), which is part of the base URL of every endpoint in this API:
/settlement/fund_class/{fund_class_key}

How to submit the settlements​

PathHow it worksWhere
Through the API, settlement by settlementPayment batch creation, one request per settlement, and closing the batch. This is the flow detailed in this sectionIntegration API
By fileA single file with every settlement: CNAB 444 or CSVManager/consultant portal
Settlement by file

If you already receive the CNAB return file from the collecting bank, you can submit it directly. See Settlement by File and the CNAB 444 Layout — Settlement.

Settlement flow​

The diagram below shows the main path, the branches and the resulting status of each step. Hover a node to see the endpoint and click to open its documentation.

Full flow

For every status transition, the webhook payloads and the exception paths, see the Asset Settlement Flow.

Step by step​

1. Payment Batch Creation​

Create a payment batch with a unique identifier (external_id). The batch is the container for all settlements that will be processed together.

Access payment batch creation documentation

To check a batch that has already been created, use the batch retrieval.

2. Settlement Insertion​

Add settlements to the created batch. Each settlement must be inserted individually, specifying the asset type, amount, settlement type, and required identifiers.

Access settlement insertion documentation

There is no endpoint to remove an individual settlement. If a settlement was inserted by mistake, discard the batch at closure and create a new one. To check a settlement that has already been inserted, use the settlement retrieval.

3. Batch Closure​

After inserting all settlements, close the batch to start internal processing. Cash reconciliation and the asset portfolio update are performed automatically. Alternatively, the same endpoint allows you to discard the entire batch — in that case no settlement is processed.

Access batch closure documentation

4. Tracking via Webhooks​

Track progress through webhooks:

Automatic processing

Cash reconciliation and the asset portfolio update are performed automatically by the API after batch closure.