Payments - Introduction / Learning brief

Brazil's 240-character payment file

What this means in plain language

Two Brazilian banks follow the same national file layout and still disagree on how wide one Pix field is. A file that passes at one bank can fail at the other, and the standard cannot settle the argument.

Understand the full idea, step by step

Asha Traders submits a supplier-. (SYNTHETIC / TRAINING ONLY.) is a 240-position company-to-bank layout.

The applicable standard and supported bank profile determine encoding, service, version and field meanings. File acceptance is not proof every payment executed.

PLAIN WORDS · 1 in this section
encoding
writing a meaning down as set characters or codes

Evidence & review

REVIEWED 2026-10-10

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Brazilian corporate payment files in the CNAB240 layout, with Pix as the example route.

What this brief simplifies: One supplier file stands in for a whole market. No field position or width is printed, deliberately, because any table would be one bank's presented as everyone's. Rejection codes are not described. The reason offered for why the gap sits in the Pix fields is our own reasoning, not a sourced claim.

Sources for this brief — 4 sources
  1. Official requirement

    Layout Padrão CNAB240 ↗ — FEBRABAN (Federação Brasileira de Bancos) · Record types, batch structure and positional fields of CNAB240

    Defines the 240-position record layout Brazilian banks exchange with their corporate customers for payments and collections: the record types, the batch structure, and the character position and picture clause of every field. · Checked 2026-08-04

    Published openly as a versioned PDF, and this entry does not claim to have opened it: febraban.org.br could not be fetched, so verification relied on two independent web-search excerpts.

    The version and date carried here — V 10 11, 21/08/2023 — are read off the published file name rather than from the document itself. And search results list a second file carrying the same version string under a different date, so treat both as the publisher's naming and not as the layout's own declaration.

    FEBRABAN revises the layout, and a revision moves field positions, so the version in force between a bank and its customer is what governs. Individual banks publish their own manuals derived from it and are free to use the reserved areas, which is why two banks' CNAB240 files can differ while both conform.

  2. Market practice

    Manual CNAB240 Pagamentos V1.9 (16/04/2024) ↗ — Banco Inter · One bank manual: Segmento B Pix fields and forma de lançamento values

    A Brazilian bank's own manual derived from the FEBRABAN CNAB240 layout, carrying the Segmento B field table for Pix, the forma de iniciação code domain, and the forma de lançamento values 45 (Pix transfer) and 47 (Pix QR code). Cited for the Pix positions this site publishes. · Checked 2026-08-04

    A bank's manual, not the standard: FEBRABAN's Layout Padrão CNAB240 is the authority and is cited separately. This document was read in full from a public copy; the URL given is the publisher's own site rather than the copy, because the copy's location is not a stable citation. Where this manual and another bank's disagree — and on the Pix key field they do — this site publishes the disagreement rather than choosing between them.

  3. Market practice

    Pagamento a Fornecedores CNAB-240 (2024) ↗ — Sicredi · A second bank manual states a different Pix key width and code domain

    A second Brazilian bank's manual derived from the same FEBRABAN layout. Cited for exactly one thing: that it states a different width for the Pix key field and a different code domain for the key type than Banco Inter's manual does. That is what makes the divergence between bank manuals a documented fact rather than an assertion. · Checked 2026-08-04

    Seen through web-search result content only; the document itself was not opened. It is cited solely as the counterpart in a disagreement, never as the authority on any position. Search excerpts only, page not opened. The claim this entry supports is what the search content stated; nothing further is asserted.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HERECNAB240: versioned payment files and the bank interfaceSeparate the federation standard, the supported bank profile and the payment rail; validate the file and reconcile execution.Opens at L0 Explain simply · about 15 min

Related briefs

View Payments - Introduction archive

How to read a payment file you did not design

Maya opens a payment file with no labels, no commas and no field names, only 240 characters on every line. Four shapes cover nearly every payment format, and one shared skeleton makes an unfamiliar file easy to read.

READ BRIEF

Who bears the loss on an American payment

Three payments go wrong on the same Thursday: a card, a wire and a cheque. In the United States each rail sits under its own law. Each rule book asks a different question before it says who is out of pocket.

READ BRIEF