Conceito Fiscal

We use cookies and similar technologies, including Google Analytics and the Meta Pixel, to improve your experience, measure site traffic and understand signup campaigns. By clicking "Accept", you agree to this use.

Learn more about our privacy practices
Conceito FiscalConceito Fiscal

Authentication

Authenticate every request with an API key.

Keys have the format cf_test_ or cf_live_ followed by 40 lowercase hexadecimal characters.

Headers

HeaderUsage
X-API-KeyRequired for key authentication.
Content-Type: application/jsonJSON bodies.
Idempotency-KeySupported on issuance, cancellation, substitution and email requests; reusing a key with a different payload returns 409/422.

Certificate upload uses multipart/form-data. With curl -F, let curl generate the Content-Type with the boundary. Downloads return PDF or XML with no JSON envelope.

Environments

  • Companies, certificates and invoices are accessed in the key's persisted environment: test or live.
  • In live, issuance verifies the company, blocks and active certificate; credits and issuance limits also apply.
  • In test, issuance requires an existing company but skips the readiness and certificate checks of the live flow.
  • Webhook deliveries use the explicit ?environment=test|live filter; without it, they may return both of the account's environments, regardless of the key's environment.

Scopes

ScopeLegacy aliasWhat it allows
nfse:lerinvoices_viewRead invoices, PDF/XML, events, tax calculation and companies.
nfse:emitirinvoices_issueIssue, substitute and resend invoice emails.
nfse:cancelar—Cancel invoices.
clientes:ler—List and read saved customers.
clientes:escrever—Update and delete saved customers.
webhooks:gerenciar—Create, list, test, retry and delete webhooks.
full_accessinvoices_read_write (partial)Full access to API-key-enabled routes.

A key can combine multiple granular scopes (e.g. nfse:ler + nfse:emitir). Legacy scopes are translated automatically. Missing scopes return 403 {"error":"insufficient_scope","required":"<scope>"}.

Example

bash

export BASE_URL='https://api.SEU-DOMINIO/v1'
export CONCEITO_API_KEY='cf_test_your_key'

curl "$BASE_URL/companies" -H "X-API-Key: $CONCEITO_API_KEY"