Skip to main content

POST Simular Oferta

Resumo

Retorna as opções disponíveis de quantidade de parcelas e valor das respectivas parcelas, com base no valor solicitado.


Endpoint
/Proposta/simulacao-valor/:propostaId
Authorization
Token eyJ...
Headers Request
accept application/json
Content-Type application/json

Exemplo de Requisição e Resposta


Exemplo de Request
curl
curl --location 'https://app-crefaz-api-external-stag.azurewebsites.net/api/Proposta/simulacao-valor/:propostaId' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
  "produtoId": ,
  "convenioId": ,
  "tabelaJurosId": 2,
  "valor": ,
  "tipoCalculo": 0,
  "vencimento": "2023-03-20",
  "renda": ,
  "recalculo": null
}'
Body da Requisição
body
{
  "produtoId": 6,
  "convenioId": 1,
  "tabelaJurosId": 303,
  "valor": {{crefazon_valor}},
  "tipoCalculo": {{crefazon_tipo_calculo}},
  "vencimento": "null",
  "renda": 2000,
  "recalculo": ,
  "contrato": {{crefazon_contrato}}
}
Exemplo de Response
json
{
  "success": true,
  "data": {
    "produtoId": 6,
    "tipoCalculo": 0,
    "tabelaJurosId": 2,
    "valorLimite": 1200,
    "prazoValor": [
      {
        "prazo": 18,
        "valor": 184
      },
      {
        "prazo": 16,
        "valor": 188.94
      },
      {
        "prazo": 15,
        "valor": 192.09
      }
    ]
  },
  "errors": null
}
Headers de Response (5)
Type Value
Content-Type

application/json; charset=utf-8

Date Fri, 04 Oct 2024 18:03:20 GMT
Server Kestrel
Transfer-Encoding chunked
Request-Context appId=cid-v1:d0033e30-cc70-4961-9727-b7389fb39348