Skip to main content

Attachments, fiscal documents, schemas and workspaces

Files attached to records, received fiscal documents, finance_schemas_get — the catalogue of the fields each tool returns, i.e. what to ask for in fields — and finance_workspaces_list, the workspaces the other tools' workspace_id comes from.

Families on this page​

FamilyToolsreadwritedestructive
attachments — Attachments7322
fiscal_documents — Received fiscal documents2200
schemas — Field catalogue1100
workspaces — Workspaces1100

attachments​

ToolKindPermissionEndpointWhat it does
finance_attachments_listreadattachments.listGET /v1/attachmentsList attachments (metadata only).
finance_attachments_getreadattachments.listGET /v1/attachments/{attachment_id}Fetch one attachment's metadata, including download_url.
finance_attachments_downloadreadattachments.downloadGET /v1/attachments/{attachment_id}/downloadLocate an attachment's bytes.
finance_attachments_uploadwriteattachments.createPOST /v1/attachmentsUpload a file (pdf, png, jpg, xml, ofx, csv, xlsx; max 10 MB) as an attachment.
finance_attachments_deletedestructiveattachments.deleteDELETE /v1/attachments/{attachment_id}Delete an attachment (file and metadata).
finance_attachments_linkwriteattachments.updatePOST /v1/attachments/{attachment_id}/linksAttach the file to a payable, receivable or transaction: type names the kind of record and id its id.
finance_attachments_unlinkdestructiveattachments.updateDELETE /v1/attachments/{attachment_id}/linksDetach the file from a payable, receivable or transaction (type + id of the record).

fiscal_documents​

ToolKindPermissionEndpointWhat it does
finance_fiscal_documents_listreadfiscal-documents.listGET /v1/fiscal-documentsList received fiscal documents (NF-e / NFS-e issued to the workspace's companies).
finance_fiscal_documents_getreadfiscal-documents.showGET /v1/fiscal-documents/{id}Fetch one received fiscal document.

schemas​

ToolKindPermissionEndpointWhat it does
finance_schemas_getread— (none)— (local)Describe a schema of the Finance API contract: the fields a tool returns (PayableDetailV1, FinancialTransactionV1…) or accepts.

workspaces​

ToolKindPermissionEndpointWhat it does
finance_workspaces_listread— (none)— (local)List the workspaces of this organization you can act on.

The fields of each resource are in the API reference and in finance_schemas_get.

A tool you cannot run is not listed by tools/list at all. If one from this page is missing, see Authentication.