Brazil
Procuradoria-Geral da Fazenda Nacional (PGFN)

PGFN Debts Search

Search the active debts Brazilian companies owe the Union in the dívida ativa (Procuradoria-Geral da Fazenda Nacional): federal taxes, social security contributions and the FGTS, by company name, CNPJ or its 8-character root, regime, state, status, the company's role in the debt, whether it is in court, and an amount range. Largest amount first, pages of up to 50. Companies only. Served by Croma (as_of says how current the data is), refreshed with each quarterly release.

Dataset endpoint: answers from the whole source in milliseconds and carries as_of.

post/br/pgfn/debts-search/v1

Request

  • Base URL: https://api.croma.run
  • URL: https://api.croma.run/br/pgfn/debts-search/v1
  • Auth: HTTP bearer

Headers

Idempotency-Keystring
Example:0f8e9a42-6b7c-4d1e-9a3f-2c5d7e8f9a0b

Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.

Request body

querystring

Palabras a buscar en los nombres (opcional).

document_numberstring

CNPJ de la empresa deudora, con o sin puntuación, p. ej. 12.345.678/0001-90, o su raíz de 8 caracteres para todos sus establecimientos (opcional).

regime'' | 'nao_previdenciario' | 'previdenciario' | 'fgts'

Tipo de deuda: nao_previdenciario (tributos y demás), previdenciario (contribuciones a la seguridad social) o fgts (opcional).

statestring

Sigla del estado (UF) de la empresa deudora, p. ej. SP (opcional).

status_type'' | 'in_collection' | 'tax_benefit' | 'guaranteed' | 'suspended_by_court' | 'in_negotiation'

Situación: in_collection (en cobro), tax_benefit (beneficio fiscal), guaranteed (garantizada), suspended_by_court (suspendida por decisión judicial), in_negotiation (en negociación) (opcional).

debtor_type'' | 'principal' | 'co_responsible' | 'joint'

Papel de la empresa en la deuda: principal, co_responsible (corresponsable) o joint (solidaria) (opcional).

in_court'any' | 'yes' | 'no'

yes solo deudas en ejecución judicial, no solo las que no, any ambas.

amount_minnumber

Monto mínimo de la deuda en reales (opcional).

amount_maxnumber

Monto máximo de la deuda en reales; 0 sin límite (opcional).

pageinteger

1-based page number for paginated results.

per_pageinteger

Resultados por página (1-50).

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.