Skip to main content

Settlement by File

The settlement (write-off) of assets already held in the fund's portfolio can be done in two ways: sending a file with all the settlements of the day, through the manager/consultant portal, or inserting settlement by settlement through the API. Both produce the same payment batch and go through the same reconciliation.

Sending by fileInsertion through the API
How it worksOne file with all the settlementsOne request per settlement
FormatsCNAB 444 and CSVJSON
Available inManager and consultant portalAsset Settlement API
Suitable forDaily routine of high-volume settlements, from the bank return fileOne-off settlements and real-time integrations
Settlement by file is a screen flow

Today, sending a settlement file is available in the portal. Through the integration API, the settlement is done through the payment batch + settlements flow, without a file.

Accepted formats​

FormatExtensionSuitable forTemplate
CNAB 444 — duplicatas and CT-e.rem · .txtThose who already receive a CNAB return file from the collecting bank. Layout in CNAB 444 Layout — SettlementExample
CNAB 444 — CCB and credit operations.rem · .txtThe same layout, with the asset identified by the contract numberExample
CSV.csvA simple spreadsheet, with one line per settlement, for any asset type. Layout in the Settlement CSV sectionExample

Step by step through the screen​

  1. Go to Assets › Settlements and click New batch by file.
  2. Provide a description to identify the batch.
  3. Select the fund account that will receive the credit of the settlements.
  4. Drag the file (.rem, .txt or .csv) and confirm.

The portal creates the payment batch, sends the file and triggers the validation. The screen then shows the batch with the progress — total settlements, processed and failed.

What happens after sending​

Batch stageWhat it means
Awaiting fileBatch created, file not sent yet
Validation in progressFile received, being checked line by line
Creating the batchFile valid, payment batch being created
Inserting the settlementsEach line is becoming a settlement
CompletedAll the settlements processed
Completed with failuresBatch processed, but with settlements that failed individually
RefusedFile refused in the validation — nothing was processed
Validation is all or nothing

One invalid line refuses the whole file. The portal reports the line number and the description of the error. Fix it and send a new batch, with a new identifier.

After the batch is closed and the payment confirmed, each settlement is reconciled individually in the fund's portfolio — the same behavior described in the Settlement flow. A settlement can fail on its own (for example, an asset not found in the portfolio) without bringing down the others.

Settlement CSV​

A file with a header on the first line, separated by ; or ,. Limit of 850,000 lines.

exemplo_baixa_liquidacoes.csv
asset_type;total_value;settlement_type;external_id;installment_number;collection_origin_type
duplicata_mercantil;1510.00;asset_settlement;CTRL000001;;borrower
duplicata_mercantil;500.00;asset_amortization;CTRL000002;;borrower
ccb;350.75;installment_settlement;CONTRATO-0001;3;borrower

Columns​

ColumnRequiredDescription
asset_typerequiredAsset type. See accepted values
total_valuerequiredValue of the settlement. Accepts . or , as the decimal separator
settlement_typerequiredSettlement type. See settlement types
installment_numberrequired (column)Installment number. Fill it in for assets with installments (CCB); leave it empty for duplicatas; for contracts, use installment_number or installment_external_id
external_id or contract_numberrequiredIdentifier of the asset. Use external_id for duplicatas/contracts (the same control number sent in the assignment) and contract_number for CCBs
collection_origin_typeoptionalWho paid: borrower (drawee), assignor (assignor) or collection_agent (collection agent)
remaining_face_valueoptionalRemaining balance of the face value. Accepted only with settlement_type: installment_amortization
new_maturity_dateconditionalNew maturity date, in the YYYY-MM-DD format. Required in asset_extension and rejected in the other types
installment_external_idoptionalFor contracts, an alternative to installment_number
The identification column defines the whole batch

The same file uses external_id or contract_number — not both. If neither column exists, the file is refused.

Settlement types​

ValueMeaning
asset_settlementFull settlement of the asset
asset_amortizationPartial payment of the asset
installment_settlementFull settlement of an installment
installment_amortizationPartial payment of an installment
installment_partial_refund / asset_partial_refundPartial refund
installment_refund / asset_refundFull refund
fine_payment / installment_fine_paymentFine payment
glossGloss
canceledCancellation
rco_revenueRCO revenue
asset_extensionMaturity extension (credit rights only; requires the external_id column and new_maturity_date)

Accepted asset types​

ccb · cce · structured_ccb · structured_cce · structured_nce · structured_cci · duplicata_mercantil · duplicata_servicos · discounted_contract · cte · commercial_paper · check · promissory_note · debt_acknowledgment · financing_contract · contract

📄 Download the example CSV

Most common errors​

ErrorCause
missing_fields: [...]A required column is missing from the CSV header
invalid asset_type: ...Asset type outside the accepted list
invalid settlement_type: ...Settlement type outside the accepted list
invalid total_value: ...Value with an unexpected character or empty
invalid external_id / contract_numberBlank identifier
remaining_face_value is only allowed for settlement_type installment_amortizationRemaining balance provided with the wrong type
unmapped cnab layoutCNAB file with lines outside 444 or 500 positions