curl --request POST \
--url https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"renavam": "12345678900",
"chassi": "9BWZZZ377VT004251",
"placa": "ABC1D23",
"cor": "PRATA"
}
'import requests
url = "https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail"
payload = {
"renavam": "12345678900",
"chassi": "9BWZZZ377VT004251",
"placa": "ABC1D23",
"cor": "PRATA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
renavam: '12345678900',
chassi: '9BWZZZ377VT004251',
placa: 'ABC1D23',
cor: 'PRATA'
})
};
fetch('https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail', 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/v2/proposal/{propostaId}/vehicle-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'renavam' => '12345678900',
'chassi' => '9BWZZZ377VT004251',
'placa' => 'ABC1D23',
'cor' => 'PRATA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail"
payload := strings.NewReader("{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}"
response = http.request(request)
puts response.read_bodyNo Content{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}Incluir dados do veículo
Inclui ou atualiza placa, Renavam, chassi e cor do veículo de uma proposta. Aceito somente
enquanto a etapa DADOS_VEICULO (8) estiver ativa: na loja, no financiamento; no comprador, no refinanciamento.
curl --request POST \
--url https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"renavam": "12345678900",
"chassi": "9BWZZZ377VT004251",
"placa": "ABC1D23",
"cor": "PRATA"
}
'import requests
url = "https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail"
payload = {
"renavam": "12345678900",
"chassi": "9BWZZZ377VT004251",
"placa": "ABC1D23",
"cor": "PRATA"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
renavam: '12345678900',
chassi: '9BWZZZ377VT004251',
placa: 'ABC1D23',
cor: 'PRATA'
})
};
fetch('https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail', 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/v2/proposal/{propostaId}/vehicle-detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'renavam' => '12345678900',
'chassi' => '9BWZZZ377VT004251',
'placa' => 'ABC1D23',
'cor' => 'PRATA'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail"
payload := strings.NewReader("{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v2/proposal/{propostaId}/vehicle-detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"renavam\": \"12345678900\",\n \"chassi\": \"9BWZZZ377VT004251\",\n \"placa\": \"ABC1D23\",\n \"cor\": \"PRATA\"\n}"
response = http.request(request)
puts response.read_bodyNo Content{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}{
"tipo": "Validation.Cpf.Invalid",
"titulo": "Requisição inválida",
"status": 400,
"detalhe": "O CPF informado em 'cpf' é inválido.",
"campo": "cpf",
"erros": [
{
"codigo": "Validation.InvalidFormat",
"mensagem": "O valor informado para 'valorVeiculo' não é um número válido.",
"campo": "cpf"
}
]
}DADOS_VEICULO estiver ativa — na loja, no financiamento, e no comprador, no refinanciamento. Fora dela, retorna 422 com Proposal.InvalidStatus.
Exemplo:
{
"renavam": "12345678900",
"chassi": "9BWZZZ377VT004251",
"placa": "ABC1D23",
"cor": "PRATA"
}
ABC-1234, ABC1234 ou ABC1D23. Cor sem números, com até 30 caracteres.204 No Content, sem corpo.Authorizations
Cabeçalho de autenticação Bearer no formato Bearer <token> onde <token> é seu TOKEN de autenticação
Path Parameters
Identificador único da proposta (UUID) retornado na criação da proposta
"bea8d060-f93d-48eb-b6c4-45f64483cdd9"
Body
Renavam do veículo, com até 11 dígitos e dígito verificador válido.
"12345678900"
Chassi do veículo, com 17 caracteres, sem as letras I, O e Q.
"9BWZZZ377VT004251"
Placa do veículo (ABC-1234, ABC1234 ou ABC1D23).
"ABC1D23"
Cor do veículo, sem números, com até 30 caracteres.
"PRATA"
Response
Dados do veículo registrados. A resposta não tem corpo.
Resposta sem corpo