Download a return file
Downloads the CNAB 240 Lerian return file.
Providers: Lerian (PCR).
How it works
- Records have 240 positions, in uppercase ASCII without accents. Each ends in CRLF.
- The file has a file header (G015 = 2), one collection batch (G028 = T, service 01, layout 060) with a T/U segment pair per movement, and the batch and file trailers.
- Every download of the same return has the same NSA and the same content.
- After the stored file is purged (
filePurgedtrue), the file is rebuilt from the movement journal. It is identical to the original, except the payer of titles that no longer exist. - This is the only CNAB answer with personal data: payer type, tax id and name in 23.3T to 25.3T, read from the boleto at generation. A rejection with no boleto has zeros and blanks there.
GET
Download a return file
Headers
Midaz organization the CNAB agreement, remittance or return belongs to. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025. A resource of another organization is answered 404, exactly as one that does not exist.
Path Parameters
Response
OK. The return file.
The return file, ASCII, CRLF line endings, every record 240 positions.

