# POST Consultar Valor Limite

#### **Introdução**

Retorna o valor limite que pode ser solicitado e o valor máximo das parcelas.

---

##### ***Rota***

```css
/Proposta/consulta-valor-limite/:propostaId
```

##### ***Authorization***

<table border="1" id="bkmrk-token-eyj..." style="border-collapse: collapse; width: 103.81%;"><colgroup><col style="width: 50.0477%;"></col><col style="width: 50.0477%;"></col></colgroup><tbody><tr><td>Token</td><td>eyJ...</td></tr></tbody></table>

##### ***Headers Request***

<table border="1" id="bkmrk-accept-application%2Fj" style="border-collapse: collapse; width: 105.119%; height: 59.2px;"><colgroup><col style="width: 49.9794%;"></col><col style="width: 49.9794%;"></col></colgroup><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Accept</td><td style="height: 29.6px;">application/json</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type</td><td style="height: 29.6px;">application/json</td></tr></tbody></table>

#### **Detalhes da API**

Campos obrigatórios e seus respectivos tipos

---

##### ***Campos***

<table border="1" id="bkmrk-campo-tipo-descri%C3%A7%C3%A3o" style="border-collapse: collapse; width: 100%; height: 242.537px;"><colgroup><col style="width: 21.2107%;"></col><col style="width: 15.4909%;"></col><col style="width: 31.6969%;"></col><col style="width: 31.6969%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Campo**</td><td style="height: 29.6px;">**Tipo**</td><td>**Obrigatório**</td><td style="height: 29.6px;">**Descrição**</td></tr></thead><tbody><tr style="height: 30.9125px;"><td style="height: 30.9125px;"><div><div>`produtoId`</div></div></td><td style="height: 30.9125px;">string | inteiro</td><td>Sim</td><td style="height: 30.9125px;">É obtido através da rota, <span style="color: rgb(35, 111, 161);">\[GET\] /Proposta/oferta-produto/:propostaId</span></td></tr><tr style="height: 34.4px;"><td style="height: 34.4px;"><div><div>`convenioId`</div></div></td><td style="height: 34.4px;">string | inteiro</td><td>Apenas para o ENERGIA</td><td style="height: 34.4px;">É obtido através da rota, <span style="color: rgb(35, 111, 161);">\[GET\] /Proposta/oferta-produto/:propostaId</span></td></tr><tr style="height: 35.4px;"><td style="height: 35.4px;"><div><div>`tabelaJurosId`</div></div></td><td style="height: 35.4px;">string | inteiro</td><td>Sim</td><td style="height: 35.4px;">É obtido através da rota, <span style="color: rgb(35, 111, 161);">\[GET\] /Proposta/oferta-produto/:propostaId</span></td></tr><tr style="height: 30.9125px;"><td style="height: 30.9125px;"><div><div>`vencimento`</div></div></td><td style="height: 30.9125px;">string | inteiro</td><td>Sim</td><td style="height: 30.9125px;">É obtido através da rota, <span style="color: rgb(35, 111, 161);">\[POST\] /Proposta/calculo-vencimento</span></td></tr><tr style="height: 50.4px;"><td style="height: 50.4px;"><div><div>`renda`</div></div></td><td style="height: 50.4px;">string | inteiro

</td><td>Sim

</td><td style="height: 50.4px;">É obtido através da rota, <span style="color: rgb(35, 111, 161);">\[GET\] /Proposta/oferta-produto/:propostaId. </span>No campo<span style="background-color: rgb(255, 255, 255);"> </span>valorRendaPresumida

</td></tr><tr style="height: 30.9125px;"><td style="height: 30.9125px;"><div><div>`recalculo`</div></div></td><td style="height: 30.9125px;">null</td><td>Não</td><td style="height: 30.9125px;">Este campo sempre precisa ser preenchido com *null*.</td></tr></tbody></table>

#### **Exemplo de Requisição e Resposta**

---

##### ***Exemplo de Request***

<details id="bkmrk-curl-curl---location"><summary>curl</summary>

```bash
curl --location 'https://app-crefaz-api-external-stag.azurewebsites.net/api/Proposta/consulta-valor-limite/:propostaId' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
  "produtoId": 6,
  "convenioId": 1,
  "tabelaJurosId": 2,
  "vencimento": "2024-12-31",
  "renda": 1412.00,
  "recalculo": null
}'
```

</details>##### ***Body da Requisição***

<details id="bkmrk-body-%7B-%22propostaid%22%3A"><summary>body</summary>

```json
{
  "produtoId": 6,
  "convenioId": 1,
  "tabelaJurosId": 2,
  "vencimento": "2024-12-31",
  "renda": 1412.00,
  "recalculo": null
}
```

</details>##### ***Exemplo de Response***

<details id="bkmrk-json-%7B-%22success%22%3A-tr"><summary>sucesso</summary>

```json
{
  "success": true,
  "data": {
    "valorLimiteSolicitado": 1200,
    "valorLimiteParcela": 214.26,
    "valorLimiteMinimoParcela": 50.00
  },
  "errors": null
}
```

</details><details id="bkmrk-erro-%7B-%22success%22%3A-fa"><summary>erro</summary>

```json
{
  "success": false,
  "data": null,
  "errors": [
    "Erro ao calcular limites, verifique valores enviados."
  ]
}
```

</details>##### ***<span class="Text__TextContainer-sc-1kqigik-0 dLPxIq" data-aether-id="aether-text" data-click="" data-testid="aether-text">Headers de Response (5)</span>***

<table border="1" id="bkmrk-type-value-content-t" style="border-collapse: collapse; width: 100%; height: 177.6px;"><colgroup><col style="width: 50%;"></col><col style="width: 50%;"></col></colgroup><thead><tr style="height: 29.6px;"><td style="height: 29.6px;">**Type**</td><td style="height: 29.6px;">**Value**</td></tr></thead><tbody><tr style="height: 29.6px;"><td style="height: 29.6px;">Content-Type</td><td style="height: 29.6px;">application/json; charset=utf-8

</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Date</td><td style="height: 29.6px;">Fri, 04 Oct 2024 18:03:20 GMT</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Server</td><td style="height: 29.6px;">Kestrel</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Transfer-Encoding</td><td style="height: 29.6px;">chunked</td></tr><tr style="height: 29.6px;"><td style="height: 29.6px;">Request-Context</td><td style="height: 29.6px;">appId=cid-v1:d0033e30-cc70-4961-9727-b7389fb39348</td></tr></tbody></table>