# Brazilian NF-e/NFC-e Access Key Decoder

> Brazilian NF-e/NFC-e Access Key Decoder is a paid API for AI agents from brdata.thomenz.me, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Decodes a Brazilian electronic invoice (NF-e or NFC-e) 44-digit access key into its structured components: issuer CNPJ, state, emission date, invoice number, and model — offline and instantly.

## Facts

- Endpoint: GET https://brdata.thomenz.me/nfe/:chave
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazilian-nf-e-nfc-e-access-key-decoder-3f16683d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3OWmnlqBlT60t8IM9Z0zg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brazilian-nf-e-nfc-e-access-key-decoder-3f16683d
```

Example prompt: Can you decode this Brazilian NF-e access key for me and tell me the issuer CNPJ, state, emission date, and invoice number: 35250611444777000161550010000123451000000011?

## When to prefer this

Use this endpoint when you have a Brazilian electronic invoice access key (chave de acesso) and need to instantly extract structured metadata from it — issuer CNPJ, state, date, invoice number — without making a government API call or needing internet connectivity. Ideal for fiscal automation pipelines, invoice validation preprocessing, or auditing workflows that need deterministic, zero-latency parsing.

## Known failure modes

- Access key not exactly 44 digits after stripping punctuation — returns error
- Non-numeric characters in key after punctuation removal — returns parse error
- Invalid modality code embedded in key — may return unexpected model
- Key with correct length but logically invalid fields (e.g. impossible state code) — may still parse but return nonsensical values

## How this service works

Decode any Brazilian electronic invoice (NF-e/NFC-e) 44-digit access key: issuer CNPJ, state, emission date, invoice number, model. Offline, deterministic, instant.

## Output

Returns the parsed components of the NF-e/NFC-e 44-digit access key, including the issuer CNPJ, Brazilian state code, emission date, invoice number, and invoice model (NF-e or NFC-e) — all computed offline without any external lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "chave"
     ],
     "properties": {
      "chave": {
       "type": "string",
       "examples": [
        "35250611444777000161550010000123451000000011"
       ],
       "description": "NF-e/NFC-e access key. 44 digits, with or without punctuation."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brazilian-nf-e-nfc-e-access-key-decoder-3f16683d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brdata.thomenz.me](https://www.zero.xyz/host/brdata.thomenz.me/llms.txt)
