Paginação de propostas
curl --request GET \
--url https://api.staging.credicarro.com.br/integration/v1/proposal \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.credicarro.com.br/integration/v1/proposal"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v1/proposal")
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{
"itens": [
{
"id_proposta": "bea8d060-f93d-48eb-b6c4-45f64483cdd9",
"numero": 171020250001,
"id_simulacao": "bea8d060-f93d-48eb-b6c4-45f64483cdd9",
"tipo": "Financing",
"status": "Approved",
"comprador": {
"cpf": "123.456.789-01"
},
"vendedor": {
"cpf": "123.456.789-01"
},
"data_criacao": "2025-10-17T19:05:08.984Z"
}
],
"pagina": {
"tem_proximo": true,
"tem_anterior": false,
"numero": 2,
"tamanho": 15,
"total": 45
}
}{
"tipo": "Partner.AccountIsIncompleted",
"titulo": "Bad Request",
"status": 400,
"detalhe": "Cadastro de conta não finalizado",
"erro": null
}Proposta
Paginar Propostas
Paginação de propostas
GET
/
v1
/
proposal
Paginação de propostas
curl --request GET \
--url https://api.staging.credicarro.com.br/integration/v1/proposal \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.staging.credicarro.com.br/integration/v1/proposal"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.credicarro.com.br/integration/v1/proposal")
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{
"itens": [
{
"id_proposta": "bea8d060-f93d-48eb-b6c4-45f64483cdd9",
"numero": 171020250001,
"id_simulacao": "bea8d060-f93d-48eb-b6c4-45f64483cdd9",
"tipo": "Financing",
"status": "Approved",
"comprador": {
"cpf": "123.456.789-01"
},
"vendedor": {
"cpf": "123.456.789-01"
},
"data_criacao": "2025-10-17T19:05:08.984Z"
}
],
"pagina": {
"tem_proximo": true,
"tem_anterior": false,
"numero": 2,
"tamanho": 15,
"total": 45
}
}{
"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
Página inicial (mínimo 1)
Example:
1
Quantidade de itens por página (1 a 100)
Example:
10
⌘I