CNAB 500 layout — settlement
Layout of the settlement remittance file in CNAB 500. It accepts only two occurrences, both paid by the drawee: settlement (77) and partial payment (14). For a rebate, repurchase by the assignor or extension, use the CNAB 444 or the CSV.
Where this file is used
In the flow described in Settlement by file.
Step by step
- Start the header with
01REMESSA01and fill in the file date (95–100). - For each settlement, fill in the participant control number, the amount paid, the occurrence, the document number, the maturity and the species.
- Start the trailer with
9followed by 6 spaces. - Check that every line, including the header and the trailer, has 500 characters.
Filling rules
| Rule | Detail |
|---|---|
| Length | Every line has 500 characters, not counting the line break |
| Header and trailer | The header starts with 01REMESSA01 and the trailer with 9 followed by 6 spaces |
| Line break | CRLF or LF, with no blank line after the trailer |
| Encoding | UTF-8 or Latin-1 (Windows-1252) |
| Amounts | 2 implied decimal places: 0000104590 = 1,045.90 |
| Fields not listed | Free. Use spaces |
Header
| Position | Len. | Field | Req. | Accepted content |
|---|---|---|---|---|
| 001–011 | 11 | Prefix | Yes | 01REMESSA01 |
| 012–094 | 83 | Service, originator and bank | No | Free. E.g.: COBRANCA + spaces |
| 095–100 | 6 | File date | Yes | Valid DDMMAA (day, month, 2-digit year) |
| 101–494 | 394 | Free | No | Spaces |
| 495–500 | 6 | Record sequence number | Yes | E.g.: 000001 |
Detail
| Position | Len. | Field | Req. | Accepted content |
|---|---|---|---|---|
| 001 | 1 | Record identification | Yes | 1 |
| 038–062 | 25 | Participant control number | Yes | Identifier of the asset (credit rights) or of the installment (CCB, commercial paper and contracts), the same as in the assignment. Cannot be blank |
| 083–092 | 10 | Amount paid | Yes | Digits only, 2 implied decimal places |
| 109–110 | 2 | Occurrence | Yes | 77 settlement or 14 partial payment |
| 111–120 | 10 | Document number | Yes | Contract number (CCB, commercial paper and contracts). Cannot be blank, not even for credit rights |
| 121–126 | 6 | Maturity | Yes | Valid DDMMAA. It does not change the settlement date |
| 148–149 | 2 | Species | Yes | See Species |
| 495–500 | 6 | Record sequence number | Yes | Digits only |
Trailer
| Position | Len. | Field | Req. | Accepted content |
|---|---|---|---|---|
| 001–007 | 7 | Prefix | Yes | 9 + 6 spaces |
| 008–495 | 488 | Free | No | Spaces |
| 496–500 | 5 | End of the sequence number | Yes | Cannot be blank |
Occurrences and identification
| Occurrence | Credit operations, commercial paper and contracts | Credit rights |
|---|---|---|
77 | Settlement of the installment | Settlement of the asset |
14 | Partial payment of the installment | Partial payment of the asset |
- CCB, commercial paper and contracts: the asset is found by the document number (111–120, the contract number) and the installment by the control number (038–062).
- Credit rights: the asset is found only by the control number (038–062). The document number is required in the file, but is not used.
Species
| Species | Asset type |
|---|---|
01 | Duplicata mercantil |
14 | Duplicata de serviços |
53 | CT-e |
51, 52, 87 | Check |
02, 06 | Promissory note |
63 | Discounted contract |
65 | Credit card bill |
67 | Closed-loop card receivable |
41, 70, 71, 72, 74, 90 to 95 | CCB |
79, 82 | Commercial paper |
60, 61 | Installment contract |
62 | Debt acknowledgment |
Do not use 99 nor the species 03, 04, 05, 10, 11, 13, 21 and 64: they do not correspond to a portfolio asset type.
Example
Settlement of the installment CCB-7781-P03 of the contract CCB7781 (77), partial payment of the installment CCB-7781-P04 (14) and settlement of the duplicata DM-000123 (77), identified only by the control number.
baixa_500.rem
01REMESSA01COBRANCA 00000000000000000000FIDC EXEMPLO 000QI DTVM 021226 MX 000001
1 CCB-7781-P03 0000104590 77CCB7781 101226 41 000002
1 CCB-7781-P04 0000050000 14CCB7781 101126 41 000003
1 DM-000123 0000250000 77DM000123 151226 01 000004
9 000005
Errors
These reject the whole file. The positions in the report start at 0.
| Message | How to fix |
|---|---|
| Invalid line length. Expected: 500, current length: N | Pad the line, including the header and the trailer, up to 500 positions |
| Invalid date format. Expected: 'DDMMAA' | Fix the file date in the header |
| The participant 'control number field' cannot be empty | Fill in 038–062 |
| This field only accepts numbers | Amount paid (083–092) with digits only |
| This field accepts these values: ['77', '14'] | Use 77 or 14 |
| Invalid document number | Fill in 111–120 |
| Invalid date format, expected (DDMMAA) | Fix the maturity (121–126) |
| This field accepts these values: [...] | Use a species from the table |
| This field cannot be empty. | Fill in the trailer sequence number |