Consultar valor mínimo e máximo refinanciável
curl --request GET \
--url https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"opcoes_por_prazo": [
{
"prazo": 6,
"valor_minimo_refinanciavel": 12480,
"valor_maximo_refinanciavel": 35720
}
]
}{
"tipo": "Partner.AccountIsIncompleted",
"titulo": "Bad Request",
"status": 400,
"detalhe": "Cadastro de conta não finalizado",
"erro": null
}Simulação
Faixa Refinanciável
Consulta o valor mínimo e máximo refinanciável pela placa informada
GET
/
v1
/
proposal
/
simulation
/
range
/
refinancing
Consultar valor mínimo e máximo refinanciável
curl --request GET \
--url https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v1/proposal/simulation/range/refinancing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"opcoes_por_prazo": [
{
"prazo": 6,
"valor_minimo_refinanciavel": 12480,
"valor_maximo_refinanciavel": 35720
}
]
}{
"tipo": "Partner.AccountIsIncompleted",
"titulo": "Bad Request",
"status": 400,
"detalhe": "Cadastro de conta não finalizado",
"erro": null
}Authorizations
Cabeçalho de autenticação Bearer no formato Bearer <token> onde <token> é seu TOKEN de autenticação
Query Parameters
Placa do veículo
Minimum string length:
7Example:
"ABC-1234 ou ABC1D23"
Response
Faixa de valor refinanciavel
Show child attributes
Show child attributes
⌘I