# SUFRAMA registration lookup in the API

> Look up the SUFRAMA (Manaus Free Trade Zone) registrations of a CNPJ or CPF via the API, with status, approved project and the fields to estimate incentives.

> **Tip:** Concepts on this page: [SUFRAMA and Free Trade Zone incentives](https://cnpja.com/en-us/docs/data/suframa), [Estimate incentives](https://cnpja.com/en-us/docs/data/suframa#incentives), [Data freshness](https://cnpja.com/en-us/docs/data/freshness) and [Certificates](https://cnpja.com/en-us/docs/data/certificates).

The API queries the registry of [SUFRAMA](https://cnpja.com/en-us/docs/glossary#suframa), the Superintendência da Zona Franca de Manaus, and returns the registrations of a CNPJ, in [Lookup CNPJ](https://cnpja.com/en-us/docs/api/reference#tag/establishments/GET/v2/establishments/%7btaxId%7d), or of a CPF, in [Lookup CPF](https://cnpja.com/en-us/docs/api/reference#tag/individuals/GET/v2/individuals/%7btaxId%7d), with number, status, approved project, address, contacts and economic activities. This data always requires an [API key](https://cnpja.com/en-us/docs/api/first-request). The registration belongs to the establishment, so look up the CNPJ of the unit located in the region, as explained in [Registration per establishment](https://cnpja.com/en-us/docs/data/suframa#registration-per-establishment). The API does not return the tax incentives of each registration, but the fields behind the estimate are in [Tax incentives](#tax-incentives).

## Request

SUFRAMA registrations appear in two operations, always requested in `expand`:

| Operation | Response content | `expand` |
|---|---|---|
| [Lookup CNPJ](https://cnpja.com/en-us/docs/api/reference#tag/establishments/GET/v2/establishments/%7btaxId%7d) | CNPJ registration data, as in [CNPJ lookup](https://cnpja.com/en-us/docs/api/cnpj-lookup), plus the `suframa` field | Optional: include `suframa` |
| [Lookup CPF](https://cnpja.com/en-us/docs/api/reference#tag/individuals/GET/v2/individuals/%7btaxId%7d) | `taxId`, `legalName`, `updatedAt` and the requested resources | Required: `suframa`, `stateRegistry` or both |

| Parameter | Values | Effect |
|---|---|---|
| `expand` | `suframa`, alone or with other resources, as in `stateRegistry,suframa` | Includes `suframa` in the response |
| `maxAge` | A duration, such as `1d` or `30d`. Defaults to `45d` | Maximum age accepted for all data in the request |
| `suframa.maxAge` | A duration, such as `1d` or `30d` | [Max age](https://cnpja.com/en-us/docs/glossary#idade-máxima--maximum-data-age) accepted for the SUFRAMA registrations only, in place of `maxAge` |

`suframa.maxAge` is only accepted with `suframa` in `expand`. Without it, the request is rejected with `400` `REQUEST_VALIDATION_FAILED`, and `errors` holds an item with the `DEPENDENCIES` code. The `expand` rules are in [Response expansion](https://cnpja.com/en-us/docs/api/reference#description/response-expansion).

Requests without an API key do not accept `expand`, so SUFRAMA registrations are not available through [Public access](https://cnpja.com/en-us/docs/api/public-access). [Lookup company](https://cnpja.com/en-us/docs/api/reference#tag/companies/GET/v2/companies/%7bid%7d) and [Search CNPJ](https://cnpja.com/en-us/docs/api/reference#tag/establishments/GET/v2/establishments) do not return `suframa`.

### Lookup CNPJ

In Lookup CNPJ, request `expand=suframa`:

```http
GET /v2/establishments/37335118000180?expand=suframa HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY
```

- A CNPJ with no SUFRAMA registration returns `suframa` with an empty `registrations`.
- `suframa` can be requested with other resources, as in `expand=stateRegistry,suframa`, which also returns the [state registrations](https://cnpja.com/en-us/docs/api/state-registrations).

### Lookup CPF

For the SUFRAMA registrations of an [individual](https://cnpja.com/en-us/docs/glossary#indivíduo--individual), a natural person with a SUFRAMA registration or a [state registration](https://cnpja.com/en-us/docs/glossary#inscrição-estadual--state-registration), use Lookup CPF with `expand=suframa`:

```http
GET /v2/individuals/CPF_NUMBER?expand=suframa HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY
```

- Send `suframa`, or `stateRegistry,suframa` to also get the state registrations, which require the states in `stateRegistry.states`, as described in [State registrations in the API](https://cnpja.com/en-us/docs/api/state-registrations).
- `suframa` has the same format as for a CNPJ. `legalName` comes from the [CCC](https://cnpja.com/en-us/docs/glossary#ccc) or SUFRAMA, whichever was updated most recently.
- `maxAge` and `suframa.maxAge` work as for a CNPJ.
- Receita Federal CPF data is not part of the API, and the [masked CPF](https://cnpja.com/en-us/docs/glossary#cpf-mascarado--masked-cpf) of partners does not work with this operation, as explained in [Individuals with a registration](https://cnpja.com/en-us/docs/data/state-registrations#individuals).

> **Important:** `404` `INDIVIDUAL_NOT_FOUND` means no registration was found for the CPF in the queried sources. With `expand=suframa`, only the SUFRAMA registry is queried, so this `404` does not mean the CPF has no state registration. A CPF known through a state registration but with no SUFRAMA registration returns `200` with an empty `registrations`. On the first lookup of a CPF there is no cached data to fall back on, and a SUFRAMA failure also results in `404`: on an unexpected `404`, repeat the request later.

## Response fields

Illustrative example, trimmed to the `suframa` field of an establishment registered in Manaus:

```json
{
  "suframa": {
    "updatedAt": "2026-01-27T03:00:00.000Z",
    "registrations": [
      {
        "updatedAt": "2026-01-27T03:00:00.000Z",
        "number": "200000000",
        "registrationDate": "2020-06-05",
        "status": { "code": "ACTIVE", "label": "Ativa" },
        "hasApprovedProject": false,
        "approvalDate": null,
        "address": {
          "street": "Avenida Djalma Batista",
          "number": "1000",
          "details": null,
          "district": "Chapada",
          "city": "Manaus",
          "state": "AM",
          "postalCode": "69050010",
          "municipality": "1302603",
          "country": { "code": "BR", "label": "Brasil" }
        },
        "phones": [],
        "emails": [],
        "primaryActivity": {
          "code": "4649408",
          "label": "Comércio atacadista de produtos de higiene, limpeza e conservação domiciliar"
        },
        "secondaryActivities": []
      }
    ]
  }
}
```

`suframa` has two fields:

| Field | Content |
|---|---|
| `updatedAt` | Last update of the registrations via SUFRAMA |
| `registrations` | List of SUFRAMA registrations, empty when there are none |

Each item of `registrations` holds:

| Field | Content |
|---|---|
| `updatedAt` | Last update of the registration via SUFRAMA |
| `number` | SUFRAMA registration number |
| `registrationDate` | Registration date, in `YYYY-MM-DD` format |
| `status` | Registration status, with `code` and `label`, described in [Codes and values](#codes-and-values) |
| `hasApprovedProject` | `true` when there is a project approved by SUFRAMA |
| `approvalDate` | Project approval date, or `null` |
| `address` | Registration address: `street`, `number`, `details`, `district`, `city`, `state`, `postalCode`, `municipality` (municipality [IBGE code](https://cnpja.com/en-us/docs/glossary#código-ibge--ibge-code)) and `country` |
| `phones` | Phones, in the same format as Lookup CNPJ |
| `emails` | Emails, in the same format as Lookup CNPJ |
| `primaryActivity` | Primary economic activity, with the [CNAE](https://cnpja.com/en-us/docs/glossary#cnae) code and description |
| `secondaryActivities` | Secondary economic activities, in the same format |

- Address, contacts and activities come from the SUFRAMA registry and may differ from the CNPJ registration at the Receita Federal.
- `registrations` is a list and may have more than one item. Assess each registration by its status, without assuming the first one is the current one.

## Tax incentives

The API does not return the tax incentives of the registrations, which SUFRAMA no longer publishes in its registry. The estimate described in [Estimate incentives](https://cnpja.com/en-us/docs/data/suframa#incentives) uses three fields: `registrationDate`, to pick the most recent registration in `suframa.registrations`; `status.code`, since `INACTIVE` rules out incentives; and the municipality's IBGE code, in `address.municipality` of Lookup CNPJ or, in Lookup CPF, in the `address.municipality` of the selected registration itself.

## Codes and values

| `status.code` | Status |
|---|---|
| `ACTIVE` | Active |
| `INACTIVE` | Inactive |
| `BLOCKED` | Blocked |
| `CANCELLED` | Cancelled |

- Base your logic on `code`. The `label` is for display only and changes with the language, as explained in [Response format](https://cnpja.com/en-us/docs/api/responses).
- The codes of `phones[].type` and `emails[].type` are the same as in [CNPJ lookup](https://cnpja.com/en-us/docs/api/cnpj-lookup).

## Sources and updates

Registrations come only from live queries at the [SUFRAMA registry](https://www4.suframa.gov.br/cadsuf/#/menu-externo), as explained in [Sources and freshness](https://cnpja.com/en-us/docs/data/suframa#sources-and-freshness). In Lookup CPF, `legalName` comes from the [CCC](https://dfe-portal.svrs.rs.gov.br/Nfe/Ccc) or SUFRAMA, whichever of the two sources was queried most recently.

Cached registrations are compared with `suframa.maxAge` or, without it, with `maxAge`, which defaults to `45d`. Within the limit, they come from cache; if they are older, or if the CNPJ or CPF was never queried at SUFRAMA, they are queried live during the request. `suframa.updatedAt` shows the last live query at SUFRAMA, and `registrations[].updatedAt` that of each registration.

The `suframa.maxAge` limit applies to the registrations only. To confirm a customer's registration right before invoicing, keep the default for the registration data and shorten the limit for the registrations:

```http
GET /v2/establishments/37335118000180?expand=suframa&suframa.maxAge=1d HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY
```

The registration data follows the default `maxAge` of `45d`, and the SUFRAMA registrations are queried live if they are more than 1 day old. The `maxAge` rules are in [Max age and partial success](https://cnpja.com/en-us/docs/api/max-age).

### Partial success

Each live query has up to 30 seconds. If the SUFRAMA query fails or exceeds that time, the request goes on and the response comes with status `206`, a [partial success](https://cnpja.com/en-us/docs/glossary#sucesso-parcial--partial-success):

- `suframa` holds the registrations already in cached data, which may be older than the limit you asked for, or comes back empty if they were never queried.
- The failed query is not charged, under the [metering rules](https://cnpja.com/en-us/legal/metering#not-charged). The other resources in the request are returned as usual.
- The response does not say which resource failed. Compare `suframa.updatedAt` with the limit you asked for; without `updatedAt`, the registrations were never queried.
- In Lookup CPF, a CPF not yet known has no cached data to fall back on, so a SUFRAMA failure results in `404` instead of `206`.

> **Important:** treat `206` as success, but do not use stale registrations for decisions that need recent data, such as an incentivized sale. Repeat the request later to refresh them. See [Max age and partial success](https://cnpja.com/en-us/docs/api/max-age).

## Certificate

The SUFRAMA registration certificate (`SUFRAMA_REGISTRATION`) carries the registration as a PDF, as explained in [What a certificate is](https://cnpja.com/en-us/docs/data/certificates#what-it-is). It can be issued for a CNPJ, in [Issue CNPJ dossier](https://cnpja.com/en-us/docs/api/reference#tag/establishments/GET/v2/establishments/%7btaxId%7d/dossier), and for a CPF, in [Issue CPF dossier](https://cnpja.com/en-us/docs/api/reference#tag/individuals/GET/v2/individuals/%7btaxId%7d/dossier), alone or with other certificates.

```http
GET /v2/establishments/37335118000180/dossier?certificates=SUFRAMA_REGISTRATION HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY
```

- The certificate comes from live queries at the SUFRAMA registry and follows the dossier's `maxAge`.
- The certificate is left out of the PDF when the CNPJ or CPF has no SUFRAMA registration.
- In a `206`, the certificate comes in its cached version, or is left out of the PDF when there is none.

The other certificates and the dossier rules are in [Certificates in the API](https://cnpja.com/en-us/docs/api/certificates).

## Billing

In Lookup CNPJ, `suframa` is charged separately from the registration data and, in both operations, counts as a live or cached query depending on its age, even when there is no registration. The consumption of each operation is in the metering rules: [Lookup CNPJ](https://cnpja.com/en-us/legal/metering#api-cnpj), [Lookup CPF](https://cnpja.com/en-us/legal/metering#api) and [Issue certificates](https://cnpja.com/en-us/legal/metering#api-certificates).

## Frequent errors

| Status | Code | Cause | Action |
|---|---|---|---|
| `400` | `REQUEST_VALIDATION_FAILED` | `suframa.maxAge` without `suframa` in `expand`, or with a value outside the duration format | Include `suframa` in `expand` and send a duration, such as `1d` |
| `400` | `REQUEST_VALIDATION_FAILED` | In Lookup CPF, `expand` missing, or a CPF outside the 11-digit format or with invalid check digits | Send `expand` and the 11 digits of the CPF, without punctuation |
| `401` | `API_KEY_MISSING` | Request without an API key, including Lookup CNPJ with `expand`, which public access does not accept | Send the API key. Public requests do not accept parameters, as explained in [Public access](https://cnpja.com/en-us/docs/api/public-access) |
| `404` | `ESTABLISHMENT_NOT_FOUND` | The CNPJ is not in the Receita Federal registry | Check the CNPJ you sent |
| `404` | `INDIVIDUAL_NOT_FOUND` | No registration was found for the CPF in the queried sources, or SUFRAMA failed on the CPF's first lookup | Include `stateRegistry` in `expand` with the relevant states, if state registrations matter, or repeat the request later |

Other errors are in [Limits and errors](https://cnpja.com/en-us/docs/api/limits-and-errors).

## Use cases

- **Incentivized sales to the region:** as support for the check before invoicing, look up the customer's CNPJ with `expand=suframa` and a short `suframa.maxAge`, check that the registration is active (`ACTIVE`) and get from `number` the registration that goes on the invoice.
- **Incentive estimate:** apply the criteria in [Estimate incentives](https://cnpja.com/en-us/docs/data/suframa#incentives) to the registration to estimate the customer's incentives, and confirm the result in SUFRAMA's official spreadsheet before invoicing.
- **Customer onboarding:** when onboarding a customer from the Western Amazon or Amapá, check the registration they provide against `number` and store its status.
- **Portfolio review:** look up registered customers periodically, with the default `maxAge`, to detect inactive, blocked or cancelled registrations before the next sale.
- **Record of the query:** keep the `SUFRAMA_REGISTRATION` PDF with the customer record or the invoice.
- **Natural persons:** look up the registrations of a CPF registered with SUFRAMA in Lookup CPF.

## In the app

On the platform, registrations appear in the **SUFRAMA** section of the [company record](https://cnpja.com/en-us/docs/companies/record#suframa) and can be included in spreadsheet exports with the **SUFRAMA registrations** resource, as explained in [Resources and detail levels](https://cnpja.com/en-us/docs/lists/export#resources). Lookups by CPF are only available in the API.

## Notes

- To find establishments in the region, filter by state or municipality in [CNPJ search](https://cnpja.com/en-us/docs/api/cnpj-search) and look up each CNPJ with `expand=suframa`. The search does not filter by SUFRAMA registration.
- The API does not return the tax incentives of each registration, which SUFRAMA no longer publishes in its registry. The criteria to estimate them and the official spreadsheet are in [Estimate incentives](https://cnpja.com/en-us/docs/data/suframa#incentives).
- SUFRAMA registration, state registration and tax regime are distinct data: see [State registrations in the API](https://cnpja.com/en-us/docs/api/state-registrations) and [Tax regime](https://cnpja.com/en-us/docs/api/tax-regime).
- All parameters are in [Lookup CNPJ](https://cnpja.com/en-us/docs/api/reference#tag/establishments/GET/v2/establishments/%7btaxId%7d) and [Lookup CPF](https://cnpja.com/en-us/docs/api/reference#tag/individuals/GET/v2/individuals/%7btaxId%7d).
