Pular para o conteúdo principal

Anexos, notas fiscais, schemas e espaços

Os arquivos anexados aos registros, as notas fiscais recebidas, finance_schemas_get, o catálogo dos campos que cada tool devolve — o que pedir em fields —, e finance_workspaces_list, os espaços de onde sai o workspace_id das outras tools.

Famílias nesta página​

FamíliaToolsreadwritedestructive
attachments — Anexos7322
fiscal_documents — Notas fiscais recebidas2200
schemas — Catálogo de campos1100
workspaces — Espaços1100

attachments​

ToolTipoPermissãoEndpointO que faz
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​

ToolTipoPermissãoEndpointO que faz
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​

ToolTipoPermissãoEndpointO que faz
finance_schemas_getread— (nenhuma)— (local)Describe a schema of the Finance API contract: the fields a tool returns (PayableDetailV1, FinancialTransactionV1…) or accepts.

workspaces​

ToolTipoPermissãoEndpointO que faz
finance_workspaces_listread— (nenhuma)— (local)List the workspaces of this organization you can act on.

Os campos de cada recurso estão na Referência da API e em finance_schemas_get.

Uma tool que você não pode rodar não aparece em tools/list. Se uma daqui não está lá, veja Autenticação.