[Draft] DECRED report files (new version)

The DECRED report covers transactions carried out with credit cards, including the identification of the users of the card services and the global amounts moved monthly.

The Receita Federal (RFB) uses the information in this report to cross-check taxpayers' reported taxes. If the value of sales reported by administrators is higher than the company's revenue reported in the income statement, the difference is taxed with fines and added interest.

The files for this job are saved in your designated cloud storage container in the /reports/decred/ subfolder. See Report file generation and path for more information.

  • Report frequency: Semiannual

Record types and occurrences

The DECRED file contains the records ordered as follows. The file must contain at least one record of any of the types R04, R05, R06, or R07 in ascending order of record type.

📘

Records R02 and R02 are outside of Pismo’s scope. The fields for these records are included, so as not to break the file structure, but they are left blank.

RecordNumber of occurrencesFollowed byRequired
Type R011Record type R02Y
Type R021Record type R03Y (but blank)
Type R031Record types R04, R05, R06, or R07Y (but blank)
Type R04Number of invoices that refer to individuals who made payments.Record type R04 and, after the last R04, record types R05, R06, R07, or Closing.N
Type R05Number of invoices that refer to legal entities that made payments.Record type R05 and, after the last R05, record types R06, R07, or Closing.N
Type R06Number of individuals to whom transfers were made.Record type R06 and, after the last R06, record types R07 or Closing.N
Type R07Number of legal entities to which transfers were made.Record type R07 and, after the last R07, the Closing type record.N
Closing1End of fileY

Field formats

The format of the fields must comply with the following standards:

FormatDescription
White space(s)Character or sequence of characters Hexadecimal 20, ASCII 32.
R$Numeric field with 17 positions, where the first 15 positions are the entire part with leading zeros; and the last 2 positions are the decimal part with trailing zeros.
R+Field type R$, which only accepts values ​​greater than zero.
XAlphanumeric field with size specified in the Description, aligned on the left with blanks on the right, without special characters. If empty, fill in with zeros.
NNumeric field with size specified in the Description, aligned to the right, with zeros to the left. If empty, fill with zeros.
DATENumeric field of type N used for dates in the format DDMMYYY.
DATE1S - Semester; and YYYY - Year.

Numeric field of type N used in the SAAAA format, where the Semester can take the values ​​"1", for the first semester, and "2" for the second semester, and the year can take the values ​​"2003", "2004", "2005"..., with the semesters prior to the first of 2003 or subsequent to the semester on which the declaration was generated being invalid.
CPFN-type numeric field with 11 positions. Values ​​filled exclusively with digits (0, 1, 2, 3, 4, 5, 6, 7, 8 and 9) will be considered valid. Any other character invalidates the field. The last two positions must contain a valid check digit, in accordance with the rules of the SRF's Individual Taxpayer Registry (CPF).
CNPJN-type numeric field with 14 positions. Values ​​filled exclusively with digits (0, 1, 2, 3, 4, 5, 6, 7, 8 and 9) will be considered valid. Any other character invalidates the field. The last two positions must contain a valid check digit, in accordance with the rules of the SRF's National Register of Legal Entities (CNPJ).
UFAcronym of the Federative Unit. It must contain one of the following expressions, in capital letters: AC, AL, AM, AP, BA, CE, DF, ES, GO, MA, MG, MS, MT, PA, PB, PE, PI, PR, RJ, RN , RO, RR, RS, SC, SE, SP and TO.
EOLHexadecimal character string 0D0A, record delimiter.

Archive record layouts

Record type R01 - Declarant data:

OrderFieldContentsStartEndSizeFormat
01SequentialSequence number in the file.

Constant "00000001".
188N
02Sequence number in the file.
Constant "00000001".
Record type.
Constant "R01"
9113X
03Declarant's CNPJRequired. Valid CNPJ of the Headquarters (with order number 0001).122514CNPJ
04Semester/calendar yearRequired. Semester and year in which payments and/or transfers occurred.26305DATE1
05Declaration typeRequired
"0" - Original Declaration.
"1"- Rectifying Declaration.
31311N
06Declarant typeRequired

1 - Legal entity issuing credit cards.

2 - Legal entity responsible for managing the network of establishments and capturing and transmitting credit card transactions.

3 - Legal Entity that falls into situations "1" and "2".
32321N
07UFState of the declarant's tax residence.3434twoUF
08Declarant nameRequired. Business name of the declarant. Minimum size of three positions and cannot contain only numbers.349460X
09File nameContant "DECRED"951006X
10ReservedMust be filled in with blanks.1011044White space(s)

Record type R02 - Legal representative data

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.
Constant "00000002".
188N
02TypeRecord type.
Constant "R02".
9113X
03Name of representativeRequired. Full name of the legal representative of the legal entity listed on the CNPJ. Minimum size of three positions and cannot contain numbers.127160X
04CPF - RepresentativeRequired. It must be the CPF of the declarant's legal representative before the CNPJ.728211CPF
05Telephone area code - RepresentativeRequired83864N
06Telephone - RepresentativeRequired. Contact telephone number.87959N
07Extension - RepresentativeZeros if absent.961005N
09ReservedMust must be filled in with blanks.1011041White space(s)

Record type R03 - Data of the person responsible for completing:

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.
Constant "00000003".
188N
02TypeRecord type.
Constant "R03".
9113X
03Name of the person responsibleRequired. Full name of the person responsible for filling out the declaration.

Minimum size of three positions and cannot contain numbers.
127160X
04CPF - ResponsibleRequired. It must be the CPF of the person responsible for filling out the declaration.728211CPF
05Telephone area code - ResponsibleRequired83864N
06Telephone - ResponsibleRequired. Contact telephone number.87959N
07Extension - ResponsibleZeros if absent.961005N
08ReservedMust be filled in with blanks.1011044White space(s)

Record type R04 - Payments made by individuals:

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.188N
02TypeRecord type.
Constant "R04".
9113X
03CPF of the holderRequired. CPF of the cardholder or CPF of a third party responsible for payment by contractual provision.122211CPF
04Payment monthRequired. Month in which the payment actually occurred.

The values ​​"01", "02", "03", "04", "05" and "06" are valid if the semester of record type R01 = 1.

The values ​​"07", "08", "09", "10", "11" and "12" are valid if the semester of registration type R01 = 2.
2324twoN
05Invoice identificationRequired. Number or code defined by the administrator that represents the invoice individually, referring to the payment made.258460X
06Amount paidRequired. Amount actually paid in the month, referring to the invoice described in the previous field.8510117R+
07ReservedMust be filled in with blanks.1021043White space(s)

📘

Type R04 records must be listed in ascending order of CPF, month of payment, and invoice identification.
There cannot be two or more records with the same CPF, same payment month, and same invoice identification.

Record type R05 - Payments Made by Legal Entities:

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.188N
02TypeRecord type.
Constant "R05".
9113X
03CNPJ of the holderRequired. CNPJ of the cardholder or CNPJ of a third party responsible for payment by contractual provision.122514CNPJ
04Payment monthRequired. Month in which the payment actually occurred.

The values ​​"01", "02", "03", "04", "05" and "06" will be valid if the Semester of Record Type R01 = 1.

The values ​​"07", "08", "09", "10", "11" and "12" will be valid if the Semester of Registration Type R01 = 2.
2627twoN
05Invoice identificationRequired. Number or code defined by the administrator that represents the invoice individually, referring to the payment made.288760X
06Amount paidRequired. Amount actually paid in the month referring to the invoice described in the previous field.8810417R+

📘

Type R05 records must be listed in ascending order of CNPJ, month of payment, and invoice Iidentification.
There cannot be two or more records with the same CNPJ, the same payment month, and the same iInvoice identification.

Registration type R06 - Transfers made to accredited individuals:

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.188N
02TypeRecord type.
Constant "R06".
9113X
03CPFRequired. CPF of the individual accredited with the administrator.122211CPF
04Month of TransferRequired. Month in which the transfer actually occurred.

The values ​​"01", "02", "03", "04", "05" and "06" are valid if the semester of record type R01 = 1.

The values ​​"07", "08", "09", "10", "11" and "12" are valid if the semester of registration type R01 = 2.
2324twoN
05Transfer valueRequired. Sum of the amounts actually transferred to the accredited person in the month.254117R+
06ReservedMust be filled in with blanks.4210463White space(s)

📘

Type R06 records must be listed in ascending order of CPF and month of transfer.
There cannot be two or more records with the same CPF and same month of transfer.

Registration type R07 - Transfers made to accredited legal entities:

OrderFieldContentStartEndSizeFormat
01SequentialSequence number in the file.188N
02TypeRecord type.
Constant "R07".
9113X
03CNPJRequired. CNPJ of the main establishment or branch accredited with the administrator.122514CNPJ
04Month of TransferRequired. Month in which the transfer actually occurred.

The values ​​"01", "02", "03", "04", "05" and "06" are valid if the semester of record type R01 = 1.

The values ​​"07", "08", "09", "10", "11" and "12" are valid if the semester of registration type R01 = 2.
2627twoN
05Transfer valueRequired. Sum of the amounts actually transferred to the accredited person in the month.284417R+
06ReservedMust be filled in with blanks.4510460White space(s)

📘

Type R07 records must be listed in ascending order of CNPJ and month of transfer.
There cannot be two or more records with the same CNPJ and same month of transfer.

Closing record:

OrderFieldContentStartEndSizeFormat
01Termination codeMust contain "T9".1twotwoX
02Number of recordsTotal number of records in the file, including the closing record.3108N
03Semester/calendar yearRequired. It must be identical to the semester/calendar year field of record type R01.11155DATE1
04ReservedMust be filled in with blanks.1610489White space(s)

Sample DECRED report file

The following example illustrates sample contents for a DECRED report file.

DATABASE.TXT

00000001R01431803550001121202301SPPEFISA SA  CREDITO FINANCIAMENTO E INVESTIMENTO             DECRED    
00000002R02                                                                                             
00000003R03                                                                                             
00000004R041531879500504410589162                                                   00000000030502000   
00000005R047267584632505457548954                                                   00000000036050000   
00000006R048248827070905469676800                                                   00000000100000000   
00000007R049569436603404410583349                                                   00000002033402000   
T90000000812023