Skip to main content

Fiscal documents

The fiscal documents (NF-e and NFS-e) received against the workspace's companies — through NFE.io, XML upload or SEFAZ. They are read-only: the product never issues notes, so there is no create and no cancellation. The list is sorted by most recent issue date.

CommandHTTPDescription
fiscal-documents listGET /v1/fiscal-documentsList fiscal documents
fiscal-documents getGET /v1/fiscal-documents/{id}Get a fiscal document by id

Filters include kind (service for NFS-e, product for NF-e), situation (authorized, cancelled, unknown), source (nfe_io, xml_upload, sefaz), access_key, number, issuer_document (issuer CNPJ/CPF, digits only) and ranges on issued_at, created_at and updated_at ([gte], [lte]…) — updated_at is the incremental-sync window. The XML is not served here: follow xml_download_url, which belongs to the Attachments resource and needs the finance/attachments scope. This resource's scope is finance/fiscal_documents with read access.

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List authorized service notes
kobana finance fiscal-documents list \
--params '{"kind": "service", "situation": "authorized"}' \
--fields "id,number,issued_at,issuer_name,issuer_document,total_amount"

# A supplier's notes issued in January
kobana finance fiscal-documents list \
--params '{"issuer_document": "12345678000190", "issued_at[gte]": "2026-01-01", "issued_at[lte]": "2026-01-31"}'

# Get a fiscal document by id
kobana finance fiscal-documents get \
--params '{"id": "FISCAL_DOCUMENT_ID"}' \
--fields "id,access_key,number,situation,total_amount,payable_count,xml_download_url"

Next steps​