1. Getting started
  2. Introduction

The Enterprise API is for anyone who issues fiscal documents on behalf of multiple companies from a single system. With an Enterprise account, you register each issuing company and issue invoices for all of them through the API, with a single key. With the Payload Inteligente (calculateTaxes: true), Treeunfe calculates the taxes from the company’s fiscal configuration.

​
What you can do with the API

  • Register, edit, and deactivate issuing companies.
  • Send the company a link to fill in its own fiscal configuration. If it prefers, the company can use the default rules of the Treeunfe tax engine.
  • Issue NF-e, with or without automatic tax calculation.
  • Cancel invoices and issue correction letters.
  • Maintain each company’s customers, products, carriers, and digital certificate.

​
How the API is organized

The API uses a single key, your Enterprise account’s. Each call says which issuing company it acts on:

LevelWhat it representsHeaderWhat it does
EnterpriseYour account, which groups the issuing companiesx-enterprise-keyAuthenticates every call, with the key’s permissions and environment
OrganizationEach issuing companyx-organization-idSays which company the call issues NF-e, registers events, or maintains records and the certificate for

Each organization has its own records and digital certificate. One organization’s invoices never mix with another’s.

Want to issue NF-e from Claude or another AI agent? See the Treeunfe MCP.

​
Base URL

https://api.treeunfe.com.br/api/v1

All requests and responses use JSON (Content-Type: application/json), except the certificate upload, which uses multipart/form-data.