Other fiscal documents
SPED Filing
1 endpoints
/api/sped/efdGenerate 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
| Header | Type | Description |
|---|---|---|
| token | string | Company token |
| sign | string | MD5 signature |
| timestamp | string | Unix timestamp in seconds |
Body — parameters
| Field | Type | Description |
|---|---|---|
| start_date * | string | Start 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 * | string | End 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). |
| status | string | Optional. Status of the invoices included: "todas" (default), "emitidas" (authorized only) or "canceladas". |
| tipo | string | Optional. 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. |
| limit | number | Optional. Limits the number of invoices processed — for quick testing only. |
| cod_ver | string | Optional. Overrides the layout version (COD_VER). By default, according to the period. |
| perfil | string | Optional. Overrides the presentation profile (A/B/C). |
| ativ | string | Optional. Overrides the activity indicator (0/1). |
* Required field.