---
title: "SPC Quod PJ"
description: "API SPC Quod PJ - Decisão rápida e segura para análise de empresas A API SPC Quod PJ permite consultar, em segundos, restrições e informações cadastrais de pessoas jurídicas diretamente nos seus sistemas, garantindo decisões de crédito mais rápidas e seguras. Com integração simples via REST, você automatiza análises, reduz riscos e ganha produtividade na avaliação de clientes corporativos. O retorno da API traz dados estruturados de restrição PJ, prontos para alimentar fluxos de cadastro, concessão de crédito, score interno, monitoramento de carteira e prevenção a fraudes. Ideal para CRMs, ERPs, plataformas financeiras, fintechs e qualquer solução que precise validar empresas em tempo real com dados confiáveis da base SPC Quod."
lang: en
canonical: https://doc.apibrasil.io/apis/creditos/27028722-8073-3d16-8b5a-2f7dcf9055fb
markdown: https://doc.apibrasil.io/apis/creditos/27028722-8073-3d16-8b5a-2f7dcf9055fb.md
source: apibrasil-documentation
---

# SPC Quod PJ

> API SPC Quod PJ - Decisão rápida e segura para análise de empresas  
> A API SPC Quod PJ permite consultar, em segundos, restrições e informações cadastrais de pessoas jurídicas diretamente nos seus sistemas, garantindo decisões de crédito mais rápidas e seguras. Com integração simples via REST, você automatiza análises, reduz riscos e ganha produtividade na avaliação de clientes corporativos. O retorno da API traz dados estruturados de restrição PJ, prontos para alimentar fluxos de cadastro, concessão de crédito, score interno, monitoramento de carteira e prevenção a fraudes. Ideal para CRMs, ERPs, plataformas financeiras, fintechs e qualquer solução que precise validar empresas em tempo real com dados confiáveis da base SPC Quod.

- **Category:** Company Lookup (CNPJ)
- **Billing:** per query, with the Bearer Token only
- **Price:** R$6.50 per query
- **Limit:** 990,000 per month
- **Registration:** requires a CNPJ
- **Version:** v2
- **Published by:** APIBrasil
- **OpenAPI specification:** https://doc.apibrasil.io/apis/creditos/27028722-8073-3d16-8b5a-2f7dcf9055fb/openapi.json

## How to call

**Base address:** `https://gateway.apibrasil.io/api/v2`

Authentication: the `Authorization: Bearer <token>` header. Nothing else.

With `homolog: true` in the body, the gateway answers from a fixed base, with the real shape of the response, and does not charge. The CPF 00000000000 belongs to that base and to nobody: use it in tests, never in production.

## Endpoints (1 endpoint)

### 1. POST /quod/cnpj/credits

API SPC Quod PJ - Decisão de crédito empresarial mais rápida e segura

A API SPC Quod PJ permite consultar restrições de CNPJ com agilidade, precisão e alta disponibilidade, ideal para acelerar a análise de crédito empresarial no seu sistema. Com integração rápida via método POST no endpoint quod/cnpj/credits, você envia os dados da empresa e recebe em segundos um retorno estruturado sobre restrições e comportamento de crédito. Isso reduz risco de inadimplência, melhora a qualidade das suas aprovações e automatiza regras de negócio em tempo real. Perfeita para fluxos de onboarding, análise de crédito, revisão de limites e monitoramento de carteira, essa API se adapta facilmente à sua arquitetura e potencializa a tomada de decisão em toda a jornada do cliente PJ.

- **Method:** `POST`
- **Address:** `https://gateway.apibrasil.io/api/v2/quod/cnpj/credits`
- **Route version:** v2

**Headers**

| Header | Value |
| --- | --- |
| `Content-Type` | `application/json` |
| `Authorization` | `Bearer $APIBRASIL_TOKEN` |

**Request body**

```json
{
  "cnpj": "44.959.669/0001-80",
  "tipo": "quod-restricao-pj",
  "homolog": false
}
```

**In cURL**

```bash
curl -X POST "https://gateway.apibrasil.io/api/v2/quod/cnpj/credits" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $APIBRASIL_TOKEN" \
  -d '{"cnpj":"44.959.669/0001-80","tipo":"quod-restricao-pj","homolog":false}'
```

This endpoint accepts `homolog: true` in the body: the response comes back with valid data, `api_limit_for` equal to `homolog` and no charge.

**Sample response, from the catalog**

```json
{
  "user": {
    "first_name": "[omitido]",
    "email": "[omitido]",
    "cellphone": "[omitido]",
    "notification": "yes"
  },
  "balance": "112,160",
  "balance_before": "118,660",
  "tax": "6,500",
  "status_code": 200,
  "error": false,
  "message": "Dados validos! Voce foi tarifado em R$ 6,50.",
  "valor_consulta": 6.5,
  "api_limit_for": "credit",
  "homolog": false,
  "data": {
    "dados_receita_federal": {
      "atividade_economica_principal": "6209100-SUPORTE T�CNICO, MANUTEN��O E OUTROS SERVI�OS EM TECNOLOGIA DA INFORMA��O",
      "data_atualizacao": "",
      "data_nascimento_fundacao": "21/01/2022",
      "email": "[omitido]",
      "natureza_juridica": "2062-SOCIEDADE EMPRES�RIA LIMITADA",
      "nome": "",
      "nome_mae": "",
      "razao_social": "APIBRASIL SITES E SOFTWARES LTDA",
      "sexo": "",
      "situacao_receita": "ATIVA",
      "status_retorno": {
        "codigo": "1",
        "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
      },
      "tipo_pessoa": "JURIDICA"
    },
    "faturamento_presumido": {
      "dados_cadastro_positivo": "",
      "data_referencia": "16/02/2026",
      "faixa": "",
      "faturamento_anual": "PEQUENA EMPRESA: ATE R$4,8 MILHOES",
      "mensagem": "",
      "status_retorno": {
        "codigo": "1",
        "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
      },
      "valor_presumido": "NAO DIVULGADO"
    },
    "informacoes_alertas_restricoes": {
      "ocorrencias": [
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "ATIVA",
          "titulo": "STATUS RECEITA FEDERAL"
        },
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "10000.0",
          "titulo": "CAPITAL SOCIAL"
        },
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "PEQUENA: DE 10 A 49",
          "titulo": "QUADRO FUNCIONARIOS"
        },
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "APROVADO",
          "titulo": "CONCESSAO DE CREDITO"
        },
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "25%",
          "titulo": "PROBABILIDADE INADIMPLENCIA"
        },
        {
          "codigo_tipo_informacao": "1",
          "descricao_tipo_informacao": "INFORMACAO",
          "observacoes": "75%",
          "titulo": "CAPACIDADE PAGTO"
        }
      ],
      "quantidade_ocorrencia": "6",
      "status_retorno": {
        "codigo": "1",
        "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
      }
    },
    "pdf": "http://spc-restricoes.apidocumentos.com.br/pdf/d5957fc8-cf6c-4167-8fd4-0e1c727643d4",
    "pend_financeiras": {
      "data_maior": "",
      "data_primeiro": "",
      "periodo_final": "",
      "periodo_inicial": "",
      "provedores": [
        {
          "provedor": "BASE I"
        }
      ],
      "quantidade_ocorrencia": "0",
      "status_retorno": {
        "codigo": "1",
        "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
      },
      "total_credores": "",
      "ultimo_vencimento": "",
      "valor_maior": "",
      "valor_primeiro": "",
      "valor_total": "0"
    },
    "scores": {
      "ocorrencias": [
        {
          "classif_abc": "NULO",
          "classif_nro": "NULO",
          "descr_plano": "NULO",
          "descr_score": "SCORE POSITIVO",
          "execucao": "NULO",
          "informante": "BASE I",
          "layout": "SCSIMPLE2020",
          "modelo_score": "",
          "probabilidade_inadimplencia": "25",
          "risco": "A CHANCE DE UMA EMPRESA, COM SCORE ENTRE 501 E 600, PAGAR SEUS COMPROMISSOS FINANCEIROS EM 12 MESES E DE 75,00%",
          "score": "552",
          "texto": "A CHANCE DE UMA EMPRESA, COM SCORE ENTRE 501 E 600, PAGAR SEUS COMPROMISSOS FINANCEIROS EM 12 MESES E DE 75,00%",
          "tipo_score": "SCORE POSITIVO"
        }
      ],
      "quantidade_ocorrencias": "1",
      "status_retorno": {
        "codigo": "1",
        "descricao": "CONSULTA CONCLUIDA COM SUCESSO"
      }
    }
  }
}
```

In the sample responses, the fields of the account that generated the sample (`user.first_name`, `user.email`, `user.cellphone`) come out as `[omitido]`. The rest is what the catalog publishes.

## Pitfalls: what an integration gets wrong without warning

Established from the responses the catalog itself publishes. In every one of them the code works on the happy path and fails silently everywhere else:

1. **The error arrives in the BODY, with HTTP 200.**
   The response carries a boolean `error` field and a `message`. Checking only `response.ok` or the HTTP status lets a failure through as a success. ALWAYS check `error === false` before reading `data`.

2. **`balance`, `tax` and `extra_charges.total` are STRINGS in Brazilian format — and the format varies between APIs.**
   Values seen in the catalog: `"154,380"`, `"497,84"`, `"0,000"` and `"0.19"`. Comma in some, dot in another; three decimal places in some, two in another. In JavaScript, `parseFloat("154,380")` returns `154` and drops the cents with no error at all, and `Number("154,380")` returns `NaN`. Write a converter that handles both separators, and never use these fields in a financial decision without converting them.

3. **Every call costs money.**
   Blind retries multiply the bill. Never automatically repeat a 4xx: a bad parameter repeated is still bad, and still charged. Retry only timeouts and 5xx, with exponential backoff and a small attempt ceiling.

4. **HTTP 402 means insufficient balance, and retrying does not fix it.**
   It is the one status that needs a human — a top-up. Treat it as a terminal error with its own message, and do not lump it in with generic 4xx.

5. **`extra_charges` bills on top of the lookup price.**
   When the body asks for add-on services, the response lists each one with its price plus a `total` that is NOT included in the base amount. If you show cost to an end user, add both.

## See also

- OpenAPI specification: https://doc.apibrasil.io/apis/creditos/27028722-8073-3d16-8b5a-2f7dcf9055fb/openapi.json
- API catalog: [API catalog](https://doc.apibrasil.io/apis.md)
- Official SDKs: [Official SDKs](https://doc.apibrasil.io/sdks.md)
- Documentation index: https://doc.apibrasil.io/llms.txt
- HTML version of this page: https://doc.apibrasil.io/apis/creditos/27028722-8073-3d16-8b5a-2f7dcf9055fb
