> For the complete documentation index, see [llms.txt](https://docs.scorepositivo.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scorepositivo.com.br/pessoa-juridica/relatorios-para-cnpj/variaveis-de-credito.md).

# Variáveis de Credito

<table><thead><tr><th width="237">Código (report_id)</th><th>Observação </th></tr></thead><tbody><tr><td>cnpj-credit-vars-10v</td><td>Até 10 variáveis.</td></tr><tr><td>cnpj-credit-vars-20v</td><td>Até 20 variáveis.</td></tr><tr><td>cnpj-credit-vars-30v</td><td>Até 30 variáveis.</td></tr><tr><td>cnpj-credit-vars-40v</td><td>Até 40 variáveis.</td></tr></tbody></table>

### Parâmetros de requisição:

<table><thead><tr><th width="235">Campo</th><th width="549">Descrição</th></tr></thead><tbody><tr><td>report_id</td><td><mark style="color:red;">Obrigatório</mark><br>*Código Conforme tabela acima </td></tr><tr><td>document</td><td><mark style="color:red;">Obrigatório</mark><br>CNPJ </td></tr><tr><td>variables</td><td><p><mark style="color:red;">Obrigatório</mark><br>Lista de variáveis.  <br>Baixar Planilha de variáveis:<br></p><div data-gb-custom-block data-tag="file" data-src="/files/a23R5xpqPXA4DHZAtZj2"></div></td></tr></tbody></table>

### Exemplo de requisição:

```bash
curl 
--location
--request POST 'https://core.scorepositivo.com.br/api/report' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {bearer_token}' \
--data-raw '{
    "report_id":"cnpj-credit-vars-10v",
    "document":"NUMERO_CNPJ",
    "variables":["bk_200_001_qtd_emissoes_ult12m","bk_200_002_total_vlr_a_vencer","bk_200_002_total_vlr_vencido"] 
   
}'
```

### Exemplo de retorno:

```json
{
   "id":"786b625d-25a1-4357-b350-f4cabd4cb0f9",
   "created_at":"2025-06-23T10:34:00-03:00",
   "report_id":"cnpj-credit-vars-30v",
   "document":"NUMERO_CNPJ",
   "status":"SUCCESS",
   "code":0,
   "report":{
      "name": "Descrição do nome da empresa",
      "variables":[
         {
             "variable": "bk_200_001_qtd_emissoes_ult12m",
             "type": "range",
             "code": 1,
             "reason": "CNPJ encontrado mas sem informações suficientes.",
             "from": null,
             "to": null,
             "percentual": null
         },
         {
             "variable": "bk_200_002_total_vlr_a_vencer",
             "type": "range",
             "code": 10,
             "reason": "De R$ 75.000 à R$ 100.000",
             "from": 75000,
             "to": 100000,
             "percentual": null
         },
        {
            "variable": "bk_200_002_total_vlr_vencido",
            "type": "range",
            "code": 21,
            "reason": "Sem informações suficientes do CNPJ consultado.",
            "from": null,
            "to": null,
            "percentual": null
        }
      ]
   }
}
```
