PUT Selecionar Oferta
Introdução
Seleciona a oferta de acordo com os parâmetros fornecidos.
Rota
/Proposta/oferta-produto/: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 --request PUT 'https://app-app2-crefaz-api-external-stag.azurewebsites.net/api/Proposta/oferta-produto/:propostaId' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJh...' \
--data '{
"id": ,1028682574,
"convenioId": ,2,
"tabelaJurosId": 2,
"produtoId": ,6,
"plano": ,16,
"prestacao": ,226.09,
"renda": ,1550.16,
"diaRecebimento": 5,
"tipoRenda": 0,
"vencimento": "2023-03-20"2025-01-06",
"valor": ,1200.00,
"tipoCalculo": 0,1,
"adicionais": [
{
"convenioDadosId": ,13,
"valor": ""2",
"convenioId": 2
},
{
"convenioDadosId": ,14,
"valor": ""01",
"convenioId": 2
}
],
"contratosRefin": []
}'
Body da Requisição
body
{
"id": ,1028682574,
"convenioId": ,2,
"tabelaJurosId": 2,
"produtoId": ,6,
"plano": ,16,
"prestacao": ,226.09,
"renda": ,1550.16,
"diaRecebimento": 5,
"tipoRenda": 0,
"vencimento": "2023-03-20"2025-01-06",
"valor": ,1200.00,
"tipoCalculo": 0,1,
"adicionais": [
{
"convenioDadosId": ,13,
"valor": ""2",
"convenioId": 2
},
{
"convenioDadosId": ,14,
"valor": ""01",
"convenioId": 2
}
],
"contratosRefin": []
}
Exemplo de Response
json
{
"success": true,
"data": {
"propostaId": 5176994,1028682574,
"aprovado": truetrue,
"novoLimite": {
"valorLimiteSolicitado": 1200.00,
"valorLimiteParcela": 227.94,
"valorLimiteMinimoParcela": 50.00
}
},
"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 |