Brazil

Brazil-specific extraction features: QR-code decoding for SEFAZ workflows, fiscal document classification, and CNPJ/CPF tax-ID processing.

Taggun’s core receipt and invoice extraction is available for documents from Brazil. Which optional fields and country-specific results are returned depends on the endpoint, request parameters, account settings, and submitted document. Country-specific results may be omitted or returned without a usable value. For currency, date format, language, and tax-system context, see Supported Countries & Languages.

Supported Document Types

Taggun has enhanced support for the document types commonly used in Brazil:

  1. NF-e (NFE) — electronic fiscal invoice for goods or product transactions. NFS-e is the distinct services document and is not a documented tipNota value.
  2. NFC-e (NFCE) — electronic consumer fiscal receipt, often including a QR code.
  3. SAT (SAT) — fiscal coupon produced through São Paulo's SAT system.

QR Code Extraction for SEFAZ Workflows

  • Attempts to detect and decode visible, supported QR codes; success depends on visibility, image quality, and format.
  • Returns decoded SEFAZ (Secretaria da Fazenda) URLs or other QR content in entities.qrCodeData.data.
  • Your integration is responsible for following the URL and making any tax-authority, authenticity, or compliance decision.

For the general QR feature, see QR Code Extraction.

Document Classification

  • Automatic detection and classification of SAT, NFE, or NFCE.
  • Returns the detected fiscal document class for use in your workflow. Classification is not a tax-authority verification or compliance decision; your integration owns those checks.
  • The field can be empty when a class cannot be identified.

Tax ID Processing

  • CNPJ normalisation and validation (format: 12.345.678/0001-95) for issuing organisations.
  • CPF extraction (format: 123.456.789-09) for recipient tax IDs.

Additional Extractions

  • Chave de Acesso: the 44-digit unique access key for electronic invoice validation.
  • Line items and detailed transaction data.

Response Fields

The following properties can be enabled for the verbose endpoints:

These optional properties and envelopes may be omitted, null, empty, or present without a populated data value. Guard both the object and data before use.

Field NameTypeAccess PathDescription
Merchant CNPJstring | nullmerchantTaxId.dataThe detected CNPJ of the merchant issuing the receipt or invoice, when available.
Document Typestring | nullentities.brazilReceiptDetails.tipNota.dataThe detected fiscal document class: SAT, NFE, or NFCE, when available.
Issuerstring | nullentities.brazilReceiptDetails.issuedOrganization.dataThe issuer identifier on the fiscal document, when available.
Recipientstring | nullentities.brazilReceiptDetails.recipient.dataThe recipient identifier on the fiscal document, when available.
Chave de Acessostring | nullentities.brazilReceiptDetails.chaveAcesso.dataThe 44-digit access key of the electronic invoice, when present.
QR Codestring | nullentities.qrCodeData.dataDecoded content from a visible supported QR code, when available. This is a top-level field, not under brazilReceiptDetails. See QR Code Extraction.

Availability

📘

Availability

Enable Regional → Brazil Receipt Details for the dedicated fiscal envelope and Regional → Merchant Tax ID for merchantTaxId when those controls are available. QR Code Extraction is a separate Startup+ account capability, not a normal Feature Settings registry control. Contact [email protected] if a needed capability is unavailable. See Plans & Feature Access.

Need something not covered here? Contact [email protected] — see Contacting Support.


Did this page help you?