TF Fiscal

Other fiscal documents

SPED Filing

1 endpoints

POST/api/sped/efd

Generate SPED EFD

Generates the SPED EFD ICMS/IPI (Digital Tax Bookkeeping) file for the given period, from the company's self-issued invoices (NF-e model 55) in the production environment — outbound and inbound (e.g., returns, tpNF=0), including canceled ones (record C100 with COD_SIT=02, per the Guia Prático). Using the status and tipo parameters, you choose what goes into the file: issued/canceled/all and inbound/outbound/all. It builds blocks 0/B/C/D/E/G/H/K/1/9, the ICMS assessment (E110/E116 — debits from outbound transactions × credits from inbound transactions), the participants and the accountant (record 0100, filled automatically from the company's accountant registration, when present). The file is generated in ISO-8859-1, uploaded to storage, and the response returns the download link in arquivo_url.

Required headers

HeaderTypeDescription
tokenstringCompany token
signstringMD5 signature
timestampstringUnix timestamp in seconds

Body — parameters

FieldTypeDescription
start_date *stringStart of the period, in dd/MM/yyyy or dd/MM/yyyy HH:mm:ss format. Without the time, it assumes 00:00:00. São Paulo time zone.
end_date *stringEnd of the period (same format). The end is exclusive — for a full month, use the 1st day of the following month (e.g., 01/07/2026).
statusstringOptional. Status of the invoices included: "todas" (default), "emitidas" (authorized only) or "canceladas".
tipostringOptional. Operation type: "todas" (default), "saida" or "entrada" (accented spelling also accepted). Inbound = self-issued invoice with tpNF=0, such as returns. When a filter (status or tipo) is applied, the file is a partial cut for review — the official monthly EFD must contain all invoices.
limitnumberOptional. Limits the number of invoices processed — for quick testing only.
cod_verstringOptional. Overrides the layout version (COD_VER). By default, according to the period.
perfilstringOptional. Overrides the presentation profile (A/B/C).
ativstringOptional. Overrides the activity indicator (0/1).

* Required field.