Introdução
Essa documentação prove as informações necessárias para trabalhar com a nossa API.
Autenticação
Para autenticar as requisições, inclua no header Authorization o "Bearer {SEU TOKEN}".
Todos os endpoints que requerem autenticação estão marcados com requer autenticação na documentação.
Para obter um token use o endpoint /login e utilize o atributo access_token.
Login
Login com e-mail e senha
Descontinuado
Descontinuado: O app passou a usar o login central. Integrações devem continuar usando este endpoint até a liberação do substituto.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "faria.erik@example.org",
"password": "Senha@123"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/login',
[
'headers' => [
'Content-Type' => 'application/json',
],
'json' => [
'email' => 'faria.erik@example.org',
'password' => 'Senha@123',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/login'
payload = {
"email": "faria.erik@example.org",
"password": "Senha@123"
}
headers = {
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validar o reCAPTCHA do formulário de login
requer autenticação Descontinuado
Descontinuado: O formulário de login passou a ser o do login central, que tem a própria proteção contra robôs.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/login/validate-captcha"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"token": "b0f641d7fce481a2da116da924959da92befd71a330fd6d1effa493a2ddcec50"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/login/validate-captcha',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'token' => 'b0f641d7fce481a2da116da924959da92befd71a330fd6d1effa493a2ddcec50',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/login/validate-captcha'
payload = {
"token": "b0f641d7fce481a2da116da924959da92befd71a330fd6d1effa493a2ddcec50"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Encerrar a sessão, revogando o token atual
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/logout"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/logout',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/logout'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reenviar o e-mail de verificação
requer autenticação Descontinuado
Descontinuado: O login central reenvia a verificação de e-mail na própria tela de login.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/resend-verification-email"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "bittencourt.tomas@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/users/resend-verification-email',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'email' => 'bittencourt.tomas@example.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/resend-verification-email'
payload = {
"email": "bittencourt.tomas@example.net"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Autenticação em duas etapas
Habilitar a autenticação em duas etapas
requer autenticação Descontinuado
Descontinuado: A autenticação em duas etapas passou a ser configurada no login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/two-factor/enable"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/two-factor/enable',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/two-factor/enable'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Desabilitar a autenticação em duas etapas
requer autenticação Descontinuado
Descontinuado: A autenticação em duas etapas passou a ser configurada no login central.
Exige um código atual do aplicativo autenticador (code) ou um código de recuperação (recovery_code).
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/two-factor/disable"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "meu-codigo",
"recovery_code": "995431"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/two-factor/disable',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'code' => 'meu-codigo',
'recovery_code' => '995431',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/two-factor/disable'
payload = {
"code": "meu-codigo",
"recovery_code": "995431"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Confirmar a ativação da autenticação em duas etapas
requer autenticação Descontinuado
Descontinuado: A autenticação em duas etapas passou a ser configurada no login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/two-factor/confirm"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "meu-codigo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/two-factor/confirm',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'code' => 'meu-codigo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/two-factor/confirm'
payload = {
"code": "meu-codigo"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Concluir o login enviando o código de duas etapas
requer autenticação Descontinuado
Descontinuado: O código de duas etapas passou a ser pedido pelo login central. Continua funcionando enquanto existir o POST /login.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/two-factor/login"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"challenge_token": "64d5e6b442b9dabfdd1637f3f33797deb047c27219fd476ffa72f43cfa4b80ec",
"code": "meu-codigo",
"recovery_code": "845689"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/two-factor/login',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'challenge_token' => '64d5e6b442b9dabfdd1637f3f33797deb047c27219fd476ffa72f43cfa4b80ec',
'code' => 'meu-codigo',
'recovery_code' => '845689',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/two-factor/login'
payload = {
"challenge_token": "64d5e6b442b9dabfdd1637f3f33797deb047c27219fd476ffa72f43cfa4b80ec",
"code": "meu-codigo",
"recovery_code": "845689"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Backoffice
Visualizar um cliente pelo email da conta
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/customers"
);
const params = {
"account_email": "jeanne12@example.org",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"account_email": "sergio.ramos@example.net"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/gestor/customers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'account_email' => 'jeanne12@example.org',
],
'json' => [
'account_email' => 'sergio.ramos@example.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/customers'
payload = {
"account_email": "sergio.ramos@example.net"
}
params = {
'account_email': 'jeanne12@example.org',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Ellen Marta Prado Neto",
"corporate_name": "Vasques e Barros e Filhos",
"entity_type": "PF",
"phone": "4543366212",
"document_number": "54013541505",
"address_zip_code": "41833404",
"address_public_place": "Avenida Lívia Santiago",
"address_number": "95100",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "Ruth do Norte",
"address_uf": "RS",
"backoffice_email": "aparecida.benez@example.org",
"sync_with_backoffice": true,
"postpaid": true,
"explorer_item_file_upload_enabled": true,
"ai_enrich_data_enabled": true,
"group_mandatory_on_purchase": true,
"demands_approval_purchases_over_value": 1.5,
"created_from_passport": true,
"generate_services_summary": true,
"show_shipping_info_on_orders": 1,
"credit_bonus_disabled": 1,
"control_downloaded_orders_by": "user",
"plan": "exemplo",
"plan_max_users": 1,
"plan_analytics_enabled_until": "2026-12-03",
"plan_free_emoluments_orders_included": 1,
"plan_free_dossiers_orders_included": 1,
"plan_ai_extractions_included": 1,
"plan_ai_tokens_included": 1,
"plan_paid_until": "2026-12-03",
"plan_changed_at": "2026-12-03",
"created_at": "2026-12-03T17:57:30.116492Z",
"updated_at": "2026-12-03T17:57:30.116630Z",
"api_access_enabled": true,
"api_rate_limit_per_minute": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar uma notificação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/notifications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notification_type": "purchase-finished",
"account_email": "bianca.valentin@example.com",
"user_email": "padilha.cesar@example.com",
"postpaid": true,
"purchase_backoffice_id": 288,
"order_backoffice_id": 999,
"text": "Ea a numquam voluptatem necessitatibus.",
"link": "http:\/\/www.delgado.com\/maiores-ea-velit-alias-nisi.html"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/gestor/notifications',
[
'headers' => [
'Content-Type' => 'application/json',
],
'json' => [
'notification_type' => 'purchase-finished',
'account_email' => 'bianca.valentin@example.com',
'user_email' => 'padilha.cesar@example.com',
'postpaid' => true,
'purchase_backoffice_id' => 288,
'order_backoffice_id' => 999,
'text' => 'Ea a numquam voluptatem necessitatibus.',
'link' => 'http://www.delgado.com/maiores-ea-velit-alias-nisi.html',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/notifications'
payload = {
"notification_type": "purchase-finished",
"account_email": "bianca.valentin@example.com",
"user_email": "padilha.cesar@example.com",
"postpaid": true,
"purchase_backoffice_id": 288,
"order_backoffice_id": 999,
"text": "Ea a numquam voluptatem necessitatibus.",
"link": "http:\/\/www.delgado.com\/maiores-ea-velit-alias-nisi.html"
}
headers = {
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Força a renovação de uma ou mais orders, identificadas por backofficeOrders separados por vírgula
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/orders/1/retry-renew"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/gestor/orders/1/retry-renew',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/orders/1/retry-renew'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Campos personalizados
Listar todos os campos personalizados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers/custom-fields"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/customers/custom-fields',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers/custom-fields'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um campo personalizado
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers/custom-fields"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "meu-codigo",
"label": "Meu label",
"type": "string",
"required": true,
"select_options": [
{
"value": "exemplo",
"label": "Meu label"
}
],
"service_id": 455,
"order": 0
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/customers/custom-fields',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'code' => 'meu-codigo',
'label' => 'Meu label',
'type' => 'string',
'required' => true,
'select_options' => [
['value' => 'exemplo', 'label' => 'Meu label'],
],
'service_id' => 455,
'order' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers/custom-fields'
payload = {
"code": "meu-codigo",
"label": "Meu label",
"type": "string",
"required": true,
"select_options": [
{
"value": "exemplo",
"label": "Meu label"
}
],
"service_id": 455,
"order": 0
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 858,
"user_id": 639,
"service_id": 179,
"code": "meu-codigo",
"label": "Meu label",
"type": "exemplo",
"required": true,
"select_options": [],
"created_at": "2026-12-03T17:57:29.702968Z",
"updated_at": "2026-12-03T17:57:29.703225Z",
"order": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Editar um campo personalizado
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers/custom-fields/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "meu-codigo",
"label": "Meu label",
"type": "string",
"required": true,
"select_options": [
{
"value": "exemplo",
"label": "Meu label"
}
],
"service_id": 688,
"order": 0
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/customers/custom-fields/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'code' => 'meu-codigo',
'label' => 'Meu label',
'type' => 'string',
'required' => true,
'select_options' => [
['value' => 'exemplo', 'label' => 'Meu label'],
],
'service_id' => 688,
'order' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers/custom-fields/10'
payload = {
"code": "meu-codigo",
"label": "Meu label",
"type": "string",
"required": true,
"select_options": [
{
"value": "exemplo",
"label": "Meu label"
}
],
"service_id": 688,
"order": 0
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 367,
"user_id": 696,
"service_id": 200,
"code": "meu-codigo",
"label": "Meu label",
"type": "exemplo",
"required": true,
"select_options": [],
"created_at": "2026-12-03T17:57:29.738772Z",
"updated_at": "2026-12-03T17:57:29.738909Z",
"order": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um ou múltiplos campos personalizados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers/custom-fields/ab"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/customers/custom-fields/ab',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers/custom-fields/ab'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Carteira (Pré pago)
Deposita créditos na carteira de um cliente pré pago
requer autenticação Disponível apenas para clientes pré pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/wallets/deposits"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"payment_method": "credit-card",
"amount": 1.5,
"credit_card_document_number": "14325410562",
"credit_card_holder_name": "Dr. Mayara de Oliveira",
"credit_card_number": "4137007926229249",
"credit_card_cvv": 798,
"credit_card_due_date": "08\/28",
"send_email_after_approved": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/wallets/deposits',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'payment_method' => 'credit-card',
'amount' => 1.5,
'credit_card_document_number' => '14325410562',
'credit_card_holder_name' => 'Dr. Mayara de Oliveira',
'credit_card_number' => '4137007926229249',
'credit_card_cvv' => 798,
'credit_card_due_date' => '08/28',
'send_email_after_approved' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/wallets/deposits'
payload = {
"payment_method": "credit-card",
"amount": 1.5,
"credit_card_document_number": "14325410562",
"credit_card_holder_name": "Dr. Mayara de Oliveira",
"credit_card_number": "4137007926229249",
"credit_card_cvv": 798,
"credit_card_due_date": "08\/28",
"send_email_after_approved": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 109,
"user_id": 848,
"order_id": 75,
"operation": "C",
"approved_at": "2026-12-03T17:57:32.086923Z",
"amount": 1.5,
"payment_method": "credit-card",
"backoffice_id": 6156432,
"bank_slip_url": "http://santos.net.br/explicabo-vel-nobis-beatae-molestias-rerum-in",
"bank_slip_barcode": "exemplo",
"bonus_amount": 1.5,
"send_email_after_approved": true,
"purchase_id": 842,
"type": "refund",
"backoffice_reason": "Dolore officiis corporis et qui voluptate dolore rem aut.",
"pix_qr_code": "cq-1158",
"pix_hash": "exemplo",
"created_at": "2026-12-03T17:57:32.087930Z",
"updated_at": "2026-12-03T17:57:32.088033Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcula o valor do bônus para um determinado valor de compra de créditos
requer autenticação Disponível apenas para clientes pré pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/wallets/deposits/bonus-for-value/100.59"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/wallets/deposits/bonus-for-value/100.59',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/wallets/deposits/bonus-for-value/100.59'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Chaves de API
Listar as chaves de API
requer autenticação
Quem gerencia os usuários da empresa vê as chaves de todos os usuários; os demais, só as próprias.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/api-keys"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/api-keys',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/api-keys'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar uma chave de API
requer autenticação
O valor da chave (token) só é devolvido nesta resposta. A chave vale até o fim do dia de expires_at, que pode ser de amanhã até 12 meses a partir de hoje.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/api-keys"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"custom_identifier": "ERP",
"expires_at": "2027-03-03"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/api-keys',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'custom_identifier' => 'ERP',
'expires_at' => '2027-03-03',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/api-keys'
payload = {
"custom_identifier": "ERP",
"expires_at": "2027-03-03"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revogar uma chave de API
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/api-keys/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/api-keys/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/api-keys/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cliente
Visualizar o cliente logado
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/customers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Srta. Mel Bittencourt",
"corporate_name": "Soares e Santiago",
"entity_type": "PF",
"phone": "4536198005",
"document_number": "37938010391",
"address_zip_code": "61127669",
"address_public_place": "Rua Galvão",
"address_number": "33932",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "Galhardo do Sul",
"address_uf": "RS",
"backoffice_email": "vortiz@example.net",
"sync_with_backoffice": true,
"postpaid": true,
"explorer_item_file_upload_enabled": true,
"ai_enrich_data_enabled": true,
"group_mandatory_on_purchase": true,
"demands_approval_purchases_over_value": 1.5,
"created_from_passport": true,
"generate_services_summary": true,
"show_shipping_info_on_orders": 1,
"credit_bonus_disabled": 1,
"control_downloaded_orders_by": "user",
"plan": "exemplo",
"plan_max_users": 1,
"plan_analytics_enabled_until": "2026-12-03",
"plan_free_emoluments_orders_included": 1,
"plan_free_dossiers_orders_included": 1,
"plan_ai_extractions_included": 1,
"plan_ai_tokens_included": 1,
"plan_paid_until": "2026-12-03",
"plan_changed_at": "2026-12-03",
"created_at": "2026-12-03T17:57:29.633876Z",
"updated_at": "2026-12-03T17:57:29.633998Z",
"api_access_enabled": true,
"api_rate_limit_per_minute": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar as estatísticas de uso do plano do cliente logado no mês atual
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers/plan/stats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/customers/plan/stats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers/plan/stats'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualiza os dados do cadastro do cliente
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customers"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "79908767508",
"address_zip_code": "44368897",
"address_public_place": "R. Ítalo Feliciano",
"address_number": "4",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "Vila Jefferson",
"address_uf": "PI",
"group_mandatory_on_purchase": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/customers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'phone' => '79908767508',
'address_zip_code' => '44368897',
'address_public_place' => 'R. Ítalo Feliciano',
'address_number' => '4',
'address_complement' => 'Apto 12',
'address_neighborhood' => 'Centro',
'address_city' => 'Vila Jefferson',
'address_uf' => 'PI',
'group_mandatory_on_purchase' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customers'
payload = {
"phone": "79908767508",
"address_zip_code": "44368897",
"address_public_place": "R. Ítalo Feliciano",
"address_number": "4",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "Vila Jefferson",
"address_uf": "PI",
"group_mandatory_on_purchase": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Sra. Karina de Aguiar",
"corporate_name": "Cortês S.A.",
"entity_type": "PF",
"phone": "9740678730",
"document_number": "90010245642",
"address_zip_code": "71872171",
"address_public_place": "R. Natal Rocha",
"address_number": "5",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "São Gisela do Sul",
"address_uf": "PA",
"backoffice_email": "lozano.richard@example.org",
"sync_with_backoffice": true,
"postpaid": true,
"explorer_item_file_upload_enabled": true,
"ai_enrich_data_enabled": true,
"group_mandatory_on_purchase": true,
"demands_approval_purchases_over_value": 1.5,
"created_from_passport": true,
"generate_services_summary": true,
"show_shipping_info_on_orders": 1,
"credit_bonus_disabled": 1,
"control_downloaded_orders_by": "user",
"plan": "exemplo",
"plan_max_users": 1,
"plan_analytics_enabled_until": "2026-12-03",
"plan_free_emoluments_orders_included": 1,
"plan_free_dossiers_orders_included": 1,
"plan_ai_extractions_included": 1,
"plan_ai_tokens_included": 1,
"plan_paid_until": "2026-12-03",
"plan_changed_at": "2026-12-03",
"created_at": "2026-12-03T17:57:29.668655Z",
"updated_at": "2026-12-03T17:57:29.668775Z",
"api_access_enabled": true,
"api_rate_limit_per_minute": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Compras
Listar as compras que falharam ao serem criadas
requer autenticação
Retorna as compras do usuário logado que o backoffice não conseguiu criar e que ainda não foram descartadas, com os dados enviados e o erro de cada item, para restaurar o carrinho.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/failed"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases/failed',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/failed'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ver uma compra que falhou ao ser criada
requer autenticação
Retorna os dados enviados na criação da compra e o erro de cada item, para restaurar o carrinho.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/failed/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases/failed/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/failed/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 304,
"user_id": 42,
"purchase_id": 221,
"backoffice_hash": "exemplo",
"status": "pending",
"payload": [],
"errors": [],
"dismissed_at": "2026-12-03T17:57:30.793985Z",
"created_at": "2026-12-03T17:57:30.794218Z",
"updated_at": "2026-12-03T17:57:30.794331Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Descartar uma compra que falhou ao ser criada
requer autenticação
Usado depois que o carrinho foi restaurado ou quando o usuário não quer mais a compra.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/failed/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/purchases/failed/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/failed/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria uma compra
requer autenticação
Repetir a requisição com o mesmo idempotency_key devolve a compra já criada, sem criar outra.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Vitor Horácio Amaral",
"shipping_address_zip_code": "64493125",
"shipping_address_number": "7389",
"shipping_address_neighborhood": "Centro",
"shipping_address_public_place": "Avenida Tâmara",
"shipping_address_city": "Marés do Norte",
"shipping_address_uf": "BA",
"shipping_address_complement": "Apto 12",
"credits_amount_to_use": 1.5,
"post_payment_method": "credit-card",
"groups_ids": [
215,
284
],
"orders": [
{
"name": "Daniella Sales Fontes",
"service_id": 333,
"service_code": "pd-6007",
"auto_purchase_certificate_from_result_negative": true,
"auto_purchase_certificate_from_result_positive": true,
"detailed_service_data": [],
"custom_fields": []
}
],
"idempotency_key": "0d36e779-0bfd-361c-8f03-b60eadd2436d"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/purchases',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Vitor Horácio Amaral',
'shipping_address_zip_code' => '64493125',
'shipping_address_number' => '7389',
'shipping_address_neighborhood' => 'Centro',
'shipping_address_public_place' => 'Avenida Tâmara',
'shipping_address_city' => 'Marés do Norte',
'shipping_address_uf' => 'BA',
'shipping_address_complement' => 'Apto 12',
'credits_amount_to_use' => 1.5,
'post_payment_method' => 'credit-card',
'groups_ids' => [215, 284],
'orders' => [
[
'name' => 'Daniella Sales Fontes',
'service_id' => 333,
'service_code' => 'pd-6007',
'auto_purchase_certificate_from_result_negative' => true,
'auto_purchase_certificate_from_result_positive' => true,
'detailed_service_data' => [],
'custom_fields' => [],
],
],
'idempotency_key' => '0d36e779-0bfd-361c-8f03-b60eadd2436d',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases'
payload = {
"name": "Vitor Horácio Amaral",
"shipping_address_zip_code": "64493125",
"shipping_address_number": "7389",
"shipping_address_neighborhood": "Centro",
"shipping_address_public_place": "Avenida Tâmara",
"shipping_address_city": "Marés do Norte",
"shipping_address_uf": "BA",
"shipping_address_complement": "Apto 12",
"credits_amount_to_use": 1.5,
"post_payment_method": "credit-card",
"groups_ids": [
215,
284
],
"orders": [
{
"name": "Daniella Sales Fontes",
"service_id": 333,
"service_code": "pd-6007",
"auto_purchase_certificate_from_result_negative": true,
"auto_purchase_certificate_from_result_positive": true,
"detailed_service_data": [],
"custom_fields": []
}
],
"idempotency_key": "0d36e779-0bfd-361c-8f03-b60eadd2436d"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"backoffice_code": "1420267333304",
"user_id": 9,
"customer_id": 33,
"module_id": 24,
"placed_at": "2026-12-03T17:57:30.837694Z",
"name": "Sra. Mayara Madeira Neto",
"total_cost": 31.27,
"total_estimated_cost_postpaid_customer": 1.5,
"type": "Mixed",
"shipping_address_zip_code": "91086364",
"shipping_address_neighborhood": "Centro",
"shipping_address_public_place": "Av. Mauro",
"shipping_address_number": "9",
"shipping_address_city": "Porto Franco do Sul",
"shipping_address_uf": "AP",
"shipping_address_complement": "Apto 12",
"shipping_address_is_international": true,
"shipping_address_country": "exemplo",
"imported_at": "2026-12-03T17:57:30.839477Z",
"recurrence_id": 231,
"automatic_generated_from_id": 154,
"created_at": "2026-12-03T17:57:30.839672Z",
"updated_at": "2026-12-03T17:57:30.839739Z",
"quoted_cost_postpaid_customer": "423.71",
"quoted_rejected_reason": "Debitis eveniet iure praesentium quis aut et.",
"quote_appraiser_id": 437,
"status": "creating",
"idempotency_key": "b6087839-f13f-3dca-9c0f-f0c063b4dd9a",
"backoffice_hash": "exemplo",
"created_using_spreadsheet": 1,
"finished_at": "2026-12-03T17:57:30.840418Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria um novo item dentro de uma compra existente
requer autenticação
Disponível apenas para clientes pós pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/orders"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups_ids": [
493,
37
],
"orders": [
{
"name": "Srta. Mila Pereira Barreto Neto",
"service_id": 235,
"service_code": "kl-1076",
"auto_purchase_certificate_from_result_negative": true,
"auto_purchase_certificate_from_result_positive": true,
"detailed_service_data": [],
"custom_fields": []
}
],
"idempotency_key": "bcceaa49-0e9b-3fd9-a028-8ae00353517a"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/purchases/10/orders',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups_ids' => [493, 37],
'orders' => [
[
'name' => 'Srta. Mila Pereira Barreto Neto',
'service_id' => 235,
'service_code' => 'kl-1076',
'auto_purchase_certificate_from_result_negative' => true,
'auto_purchase_certificate_from_result_positive' => true,
'detailed_service_data' => [],
'custom_fields' => [],
],
],
'idempotency_key' => 'bcceaa49-0e9b-3fd9-a028-8ae00353517a',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/orders'
payload = {
"groups_ids": [
493,
37
],
"orders": [
{
"name": "Srta. Mila Pereira Barreto Neto",
"service_id": 235,
"service_code": "kl-1076",
"auto_purchase_certificate_from_result_negative": true,
"auto_purchase_certificate_from_result_positive": true,
"detailed_service_data": [],
"custom_fields": []
}
],
"idempotency_key": "bcceaa49-0e9b-3fd9-a028-8ae00353517a"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar uma compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"backoffice_code": "1420266454168",
"user_id": 611,
"customer_id": 500,
"module_id": 812,
"placed_at": "2026-12-03T17:57:30.890515Z",
"name": "Dr. Fabrício James Soares",
"total_cost": 308.26,
"total_estimated_cost_postpaid_customer": 1.5,
"type": "Mixed",
"shipping_address_zip_code": "45360374",
"shipping_address_neighborhood": "Centro",
"shipping_address_public_place": "Av. André Verdara",
"shipping_address_number": "433",
"shipping_address_city": "Vila Constância",
"shipping_address_uf": "PI",
"shipping_address_complement": "Apto 12",
"shipping_address_is_international": true,
"shipping_address_country": "exemplo",
"imported_at": "2026-12-03T17:57:30.892696Z",
"recurrence_id": 216,
"automatic_generated_from_id": 532,
"created_at": "2026-12-03T17:57:30.892931Z",
"updated_at": "2026-12-03T17:57:30.893005Z",
"quoted_cost_postpaid_customer": "467.27",
"quoted_rejected_reason": "Qui ducimus voluptatem dicta.",
"quote_appraiser_id": 918,
"status": "creating",
"idempotency_key": "61c0c5d2-1c49-3251-944c-207b3fcd167d",
"backoffice_hash": "exemplo",
"created_using_spreadsheet": 1,
"finished_at": "2026-12-03T17:57:30.893611Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Renomear uma compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/name"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Srta. Irene Marés Rosa"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/purchases/10/name',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Srta. Irene Marés Rosa',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/name'
payload = {
"name": "Srta. Irene Marés Rosa"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar as compras
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Aprova/rejeita um orçamento de compra
requer autenticação
Disponível apenas para clientes pós pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/quote/"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quoted_rejected_reason": "Eveniet exercitationem velit ipsum ea quo iste."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/purchases/10/quote/',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'quoted_rejected_reason' => 'Eveniet exercitationem velit ipsum ea quo iste.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/quote/'
payload = {
"quoted_rejected_reason": "Eveniet exercitationem velit ipsum ea quo iste."
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz download (.zip) dos arquivos de uma ou múltiplas compras.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/123,456,789/download"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"group_by": "purchase"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases/123,456,789/download',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'group_by' => 'purchase',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/123,456,789/download'
payload = {
"group_by": "purchase"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz download do relatório de uma ou múltiplas compras.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/123,456,789/report/"
);
const params = {
"oneResultPerRow": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/purchases/123,456,789/report/',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'oneResultPerRow' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/123,456,789/report/'
params = {
'oneResultPerRow': '1',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Exemplo de resposta (200):
{
"file_path": "exemplo",
"download_name": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcula o preço e prazo de entrega da compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/prices-shipping-info"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"orders": [
{
"service_id": 963,
"detailed_service_data": []
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/purchases/prices-shipping-info',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'orders' => [
[
'service_id' => 963,
'detailed_service_data' => [],
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/prices-shipping-info'
payload = {
"orders": [
{
"service_id": 963,
"detailed_service_data": []
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"purchase": [],
"items": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Configurações de documentos
Definir compra automática de certidões a partir de resultado de pesquisa
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/automations/automatic-purchases"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"services": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/automations/automatic-purchases',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'services' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/automations/automatic-purchases'
payload = {
"services": []
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Definir compra automática de certidões a partir de resultado de pesquisa
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/automations/automatic-ai-analysis"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"automatic_analysis_enabled": [
{
"service_id": 725,
"ai_model_id": 757
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/automations/automatic-ai-analysis',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'automatic_analysis_enabled' => [
['service_id' => 725, 'ai_model_id' => 757],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/automations/automatic-ai-analysis'
payload = {
"automatic_analysis_enabled": [
{
"service_id": 725,
"ai_model_id": 757
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Definir geração automática da ficha do pedido
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/automations/automatic-orders-summary"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"services_ids_automatic_order_summary": [
1
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/automations/automatic-orders-summary',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'services_ids_automatic_order_summary' => [1],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/automations/automatic-orders-summary'
payload = {
"services_ids_automatic_order_summary": [
1
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Definir compra automática de certidões a partir de dados extraídos com IA
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/automations/automatic-purchases-from-ai-analysis"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"automatic_purchase_from_ai_analysis_enabled": [
1
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/automations/automatic-purchases-from-ai-analysis',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'automatic_purchase_from_ai_analysis_enabled' => [1],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/automations/automatic-purchases-from-ai-analysis'
payload = {
"automatic_purchase_from_ai_analysis_enabled": [
1
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar os Prazos de vencimento de documento
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-expirations"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/customer-service-expirations',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-expirations'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um modelo de prazo de vencimento de documento
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-expirations"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 590,
"expiration_days": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/customer-service-expirations',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'service_id' => 590,
'expiration_days' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-expirations'
payload = {
"service_id": 590,
"expiration_days": 1
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"user_id": 750,
"customer_id": 692,
"service_id": 761,
"expiration_days": 1,
"created_at": "2026-12-03T17:57:29.536680Z",
"updated_at": "2026-12-03T17:57:29.536833Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar um modelo de prazo de vencimento de documento
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-expirations/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 5,
"expiration_days": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/customer-service-expirations/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'service_id' => 5,
'expiration_days' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-expirations/10'
payload = {
"service_id": 5,
"expiration_days": 1
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"user_id": 777,
"customer_id": 804,
"service_id": 230,
"expiration_days": 1,
"created_at": "2026-12-03T17:57:29.554094Z",
"updated_at": "2026-12-03T17:57:29.554374Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um modelo de prazo de vencimento de documento
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-expirations/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/customer-service-expirations/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-expirations/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar as janelas de similaridade de documento
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-similarity-window"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/customer-service-similarity-window',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-similarity-window'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Quando um novo pedido está sendo criado pela interface o sistema consulta se existe um pedido similar já existente, se existir, confirma com o usuário se ele quer prosseguir com a compra. Essa consulta busca em toda a história de pedidos da conta.
requer autenticação
Esse endpoint permite limitar a busca a um período de dias, últimos 60 dias, por exemplo, por serviço. Você pode configurar que para certidão de nascimento busque as similares apenas nos últimos 30 dias, ao invés do período completo.
O endpoint de consulta de similares está disponível para consulta aqui no link
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-similarity-window"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 557,
"window_days": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/customer-service-similarity-window',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'service_id' => 557,
'window_days' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-similarity-window'
payload = {
"service_id": 557,
"window_days": 1
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"user_id": 866,
"customer_id": 678,
"service_id": 194,
"window_days": 1,
"created_at": "2026-12-03T17:57:29.583968Z",
"updated_at": "2026-12-03T17:57:29.584195Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar um modelo de janela de similaridade de documento
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-similarity-window/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"window_days": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/customer-service-similarity-window/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'window_days' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-similarity-window/10'
payload = {
"window_days": 1
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"user_id": 255,
"customer_id": 279,
"service_id": 438,
"window_days": 1,
"created_at": "2026-12-03T17:57:29.602441Z",
"updated_at": "2026-12-03T17:57:29.602579Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um modelo de janela de similaridade de documento
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/customer-service-similarity-window/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/customer-service-similarity-window/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/customer-service-similarity-window/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contato
Envia um email, para o suporte, com solicitação de ajuda
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/contacts/help"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"subject": "In molestiae dicta blanditiis.",
"body": "Sapiente cumque quis id illum repudiandae et."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/contacts/help',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'subject' => 'In molestiae dicta blanditiis.',
'body' => 'Sapiente cumque quis id illum repudiandae et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/contacts/help'
payload = {
"subject": "In molestiae dicta blanditiis.",
"body": "Sapiente cumque quis id illum repudiandae et."
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Dossiês
Listar dossiês
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/dossiers"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/dossiers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/dossiers'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar pessoas/empresas para as quais nunca foi feito um dossiê
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/dossiers/never-ordered"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/dossiers/never-ordered',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/dossiers/never-ordered'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faturas (Pré pago)
Visualizar uma fatura pelo ID
requer autenticação Disponível apenas para clientes pré pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/invoices/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/invoices/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/invoices/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 204,
"user_id": 368,
"order_id": 294,
"operation": "C",
"approved_at": "2026-12-03T17:57:30.275260Z",
"amount": 1.5,
"payment_method": "credit-card",
"backoffice_id": 8055961,
"bank_slip_url": "http://zamana.net.br/",
"bank_slip_barcode": "exemplo",
"bonus_amount": 1.5,
"send_email_after_approved": true,
"purchase_id": 278,
"type": "refund",
"backoffice_reason": "Iste cupiditate accusantium rerum expedita cum.",
"pix_qr_code": "st-2671",
"pix_hash": "exemplo",
"created_at": "2026-12-03T17:57:30.276540Z",
"updated_at": "2026-12-03T17:57:30.276680Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar as faturas da conta
requer autenticação Disponível apenas para clientes pré pagos
O retorno é paginado por padrão
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/invoices/by-period/2023/1"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/invoices/by-period/2023/1',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/invoices/by-period/2023/1'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar estatísticas das faturas
requer autenticação Disponível apenas para clientes pré pagos
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/invoices/by-period/2023/1/stats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/invoices/by-period/2023/1/stats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/invoices/by-period/2023/1/stats'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faturas (Pós pago)
Listar as faturas da conta
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/invoice-postpaids/2023/1"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/invoice-postpaids/2023/1',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/invoice-postpaids/2023/1'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar estatísticas das faturas
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/invoice-postpaids/2023/1/stats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/invoice-postpaids/2023/1/stats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/invoice-postpaids/2023/1/stats'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gestor
Altera o email da conta (backoffice_email), sincronizando o email do primeiro usuário da conta e avisando o Backoffice externo.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/customers/10/backoffice-email"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"account_email": "otavio09@example.com"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/gestor/customers/10/backoffice-email',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'account_email' => 'otavio09@example.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/customers/10/backoffice-email'
payload = {
"account_email": "otavio09@example.com"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Dr. José Matias Toledo Filho",
"corporate_name": "Benez Comercial Ltda.",
"entity_type": "PF",
"phone": "37972421944",
"document_number": "24046946008",
"address_zip_code": "58942555",
"address_public_place": "Av. Aparecida",
"address_number": "8",
"address_complement": "Apto 12",
"address_neighborhood": "Centro",
"address_city": "Gian d'Oeste",
"address_uf": "PI",
"backoffice_email": "saulo10@example.net",
"sync_with_backoffice": true,
"postpaid": true,
"explorer_item_file_upload_enabled": true,
"ai_enrich_data_enabled": true,
"group_mandatory_on_purchase": true,
"demands_approval_purchases_over_value": 1.5,
"created_from_passport": true,
"generate_services_summary": true,
"show_shipping_info_on_orders": 1,
"credit_bonus_disabled": 1,
"control_downloaded_orders_by": "user",
"plan": "exemplo",
"plan_max_users": 1,
"plan_analytics_enabled_until": "2026-12-03",
"plan_free_emoluments_orders_included": 1,
"plan_free_dossiers_orders_included": 1,
"plan_ai_extractions_included": 1,
"plan_ai_tokens_included": 1,
"plan_paid_until": "2026-12-03",
"plan_changed_at": "2026-12-03",
"created_at": "2026-12-03T17:57:30.013206Z",
"updated_at": "2026-12-03T17:57:30.013331Z",
"api_access_enabled": true,
"api_rate_limit_per_minute": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera o nome e a verificação de e-mail de um usuário de cliente.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/users/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Dr. Demian Horácio Valdez Sobrinho",
"email_verified": true
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/gestor/users/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Dr. Demian Horácio Valdez Sobrinho',
'email_verified' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/users/10'
payload = {
"name": "Dr. Demian Horácio Valdez Sobrinho",
"email_verified": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 234,
"name": "Natália Antonieta Campos Sobrinho",
"email": "aurora68@example.org",
"email_verified_at": "2026-12-03T17:57:30.032661Z",
"phone": "9245264311",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:30.032951Z",
"created_at": "2026-12-03T17:57:30.033069Z",
"updated_at": "2026-12-03T17:57:30.033188Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:30.033354Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera a senha de um usuário de cliente.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/users/10/password"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "Senha@123"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/gestor/users/10/password',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'password' => 'Senha@123',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/users/10/password'
payload = {
"password": "Senha@123"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 484,
"name": "Srta. Larissa Torres",
"email": "michelle71@example.com",
"email_verified_at": "2026-12-03T17:57:30.052875Z",
"phone": "3739123165",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:30.053166Z",
"created_at": "2026-12-03T17:57:30.053307Z",
"updated_at": "2026-12-03T17:57:30.053412Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:30.053548Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera o email de um usuário de cliente. Se for o primeiro usuário da conta, sincroniza também o email da conta (backoffice_email) e avisa o Backoffice externo.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/users/10/email"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "helena.saito@example.org"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/gestor/users/10/email',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'email' => 'helena.saito@example.org',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/users/10/email'
payload = {
"email": "helena.saito@example.org"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 626,
"name": "Lucas Gil",
"email": "daniel.rivera@example.net",
"email_verified_at": "2026-12-03T17:57:30.074047Z",
"phone": "8648491860",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:30.074348Z",
"created_at": "2026-12-03T17:57:30.074451Z",
"updated_at": "2026-12-03T17:57:30.074511Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:30.074589Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reenvia o e-mail de acesso pendente de um usuário (verificação de conta nova ou convite).
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/users/10/resend-access-email"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/gestor/users/10/resend-access-email',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/users/10/resend-access-email'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Força o reprocessamento da extração de IA de um item (solicitando o OCR novamente quando ele não existe).
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/gestor/explorer-items/10/request-ai"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/gestor/explorer-items/10/request-ai',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/gestor/explorer-items/10/request-ai'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Grupos
Listar os grupos
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/groups"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/groups'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um ou múltiplos grupos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups": []
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/groups'
payload = {
"groups": []
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar um grupo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/groups/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Alonso Roberto Benez Neto"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/groups/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Alonso Roberto Benez Neto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/groups/10'
payload = {
"name": "Alonso Roberto Benez Neto"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 953,
"name": "Violeta Fonseca Mascarenhas Jr.",
"color": "exemplo",
"created_at": "2026-12-03T17:57:30.185241Z",
"updated_at": "2026-12-03T17:57:30.185374Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um grupo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/groups/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/groups/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/groups/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Grupos de permissões
Listar os grupos de permissões
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/permission-groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/permission-groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/permission-groups'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Grupos de usuários
GET user-groups
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/user-groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET user-groups/{userGroup_id}/members
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10/members"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/user-groups/10/members',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10/members'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST user-groups
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Sr. Breno Azevedo Brito Filho",
"description": "Error deserunt quibusdam eos alias soluta qui dolorum impedit.",
"parent_id": 250
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/user-groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Sr. Breno Azevedo Brito Filho',
'description' => 'Error deserunt quibusdam eos alias soluta qui dolorum impedit.',
'parent_id' => 250,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups'
payload = {
"name": "Sr. Breno Azevedo Brito Filho",
"description": "Error deserunt quibusdam eos alias soluta qui dolorum impedit.",
"parent_id": 250
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 803,
"parent_id": 751,
"name": "Afonso Carrara Branco Neto",
"description": "Repudiandae possimus voluptatem sit aut."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT user-groups/{userGroup_id}
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Stella de Oliveira Burgos Filho",
"description": "Perspiciatis sapiente et quibusdam aut sint.",
"parent_id": 904
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/user-groups/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Stella de Oliveira Burgos Filho',
'description' => 'Perspiciatis sapiente et quibusdam aut sint.',
'parent_id' => 904,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10'
payload = {
"name": "Stella de Oliveira Burgos Filho",
"description": "Perspiciatis sapiente et quibusdam aut sint.",
"parent_id": 904
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 941,
"parent_id": 429,
"name": "Sra. Dirce Maiara Faria",
"description": "Nihil eligendi nostrum consequuntur."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
DELETE user-groups/{userGroup_id}
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/user-groups/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adicionar um usuário a um grupo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10/members/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/user-groups/10/members/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10/members/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remover um usuário de um grupo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10/members/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/user-groups/10/members/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10/members/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Substituir os membros de um grupo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/10/members"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"users_ids": [
57,
46
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/user-groups/10/members',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'users_ids' => [57, 46],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/10/members'
payload = {
"users_ids": [
57,
46
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
IA
Listar os modelos de IA disponíveis para o cliente
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/ai/models',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um modelo de IA
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/ai/models/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"service_id": 189,
"customer_id": 255,
"name": "Gabi Lara Padilha",
"document_name": "documento.pdf",
"created_at": "2026-12-03T17:57:29.075721Z",
"updated_at": "2026-12-03T17:57:29.076502Z",
"fixed_schema": true,
"hidden_schema": true,
"download_as_xml": true,
"allow_multiple_files_to_be_joined": true,
"example_html_content": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um modelo personalizado de IA
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Luzia Paz",
"document_name": "documento.pdf",
"service_id": 359,
"allow_multiple_files_to_be_joined": true,
"questions": [
{
"question_to_send_to_ai": "Qual é o status desse pedido?",
"label_show_user": "Meu label"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/ai/models',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Luzia Paz',
'document_name' => 'documento.pdf',
'service_id' => 359,
'allow_multiple_files_to_be_joined' => true,
'questions' => [
['question_to_send_to_ai' => 'Qual é o status desse pedido?', 'label_show_user' => 'Meu label'],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models'
payload = {
"name": "Luzia Paz",
"document_name": "documento.pdf",
"service_id": 359,
"allow_multiple_files_to_be_joined": true,
"questions": [
{
"question_to_send_to_ai": "Qual é o status desse pedido?",
"label_show_user": "Meu label"
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"service_id": 272,
"customer_id": 904,
"name": "Sr. Isaac Maldonado Lozano Neto",
"document_name": "documento.pdf",
"created_at": "2026-12-03T17:57:29.125259Z",
"updated_at": "2026-12-03T17:57:29.125404Z",
"fixed_schema": true,
"hidden_schema": true,
"download_as_xml": true,
"allow_multiple_files_to_be_joined": true,
"example_html_content": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera um modelo personalizado de IA
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Srta. Adriana Solano Sobrinho",
"document_name": "documento.pdf",
"service_id": 947,
"allow_multiple_files_to_be_joined": true,
"questions": [
{
"question_to_send_to_ai": "Qual é o status desse pedido?",
"label_show_user": "Meu label"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/ai/models/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Srta. Adriana Solano Sobrinho',
'document_name' => 'documento.pdf',
'service_id' => 947,
'allow_multiple_files_to_be_joined' => true,
'questions' => [
['question_to_send_to_ai' => 'Qual é o status desse pedido?', 'label_show_user' => 'Meu label'],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models/10'
payload = {
"name": "Srta. Adriana Solano Sobrinho",
"document_name": "documento.pdf",
"service_id": 947,
"allow_multiple_files_to_be_joined": true,
"questions": [
{
"question_to_send_to_ai": "Qual é o status desse pedido?",
"label_show_user": "Meu label"
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"service_id": 801,
"customer_id": 974,
"name": "Srta. Giovana Toledo Jr.",
"document_name": "documento.pdf",
"created_at": "2026-12-03T17:57:29.156704Z",
"updated_at": "2026-12-03T17:57:29.156852Z",
"fixed_schema": true,
"hidden_schema": true,
"download_as_xml": true,
"allow_multiple_files_to_be_joined": true,
"example_html_content": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um modelo de IA
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models/exemplo"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/ai/models/exemplo',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models/exemplo'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os dados de uma conversa com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/ai/conversations/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Sr. Jerônimo Marinho",
"user_id": 497,
"order_id": 357,
"origin": "chatbot",
"finished_at": "2026-12-03T17:57:29.196470Z",
"created_at": "2026-12-03T17:57:29.196603Z",
"is_running": true,
"total_tokens": 1,
"deleted_at": "2026-12-03T17:57:29.196731Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Deletar uma conversa com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/ai/conversations/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar as conversas de IA iniciadas pelo usuário
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/ai/conversations',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Inicia uma nova conversa com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Noel Valentin Rico Filho",
"order_id": 636
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/ai/conversations',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Noel Valentin Rico Filho',
'order_id' => 636,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations'
payload = {
"name": "Noel Valentin Rico Filho",
"order_id": 636
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Sr. Davi Espinoza Galvão",
"user_id": 486,
"order_id": 716,
"origin": "chatbot",
"finished_at": "2026-12-03T17:57:29.228074Z",
"created_at": "2026-12-03T17:57:29.228254Z",
"is_running": true,
"total_tokens": 1,
"deleted_at": "2026-12-03T17:57:29.228369Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adiciona uma mensagem em uma conversa existente com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10/messages"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"message": "Molestias ut eveniet facere voluptas sint ut nobis minus.",
"files_ids": [
985,
906
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/ai/conversations/10/messages',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'message' => 'Molestias ut eveniet facere voluptas sint ut nobis minus.',
'files_ids' => [985, 906],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10/messages'
payload = {
"message": "Molestias ut eveniet facere voluptas sint ut nobis minus.",
"files_ids": [
985,
906
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"ai_conversation_id": 373,
"send_by": "exemplo",
"message": "Est assumenda modi quis architecto.",
"created_at": "2026-12-03T17:57:29.250800Z",
"files_ids": [
888,
819
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adiciona uma mensagem em uma conversa existente com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10/messages"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/ai/conversations/10/messages',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10/messages'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Registra feedback do usuário para uma mensagem da conversa
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10/messages/10/feedback/"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/ai/conversations/10/messages/10/feedback/',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10/messages/10/feedback/'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Atualiza o nome da conversa com a IA
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/10/name"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Nayara Galindo Branco Neto"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/ai/conversations/10/name',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Nayara Galindo Branco Neto',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/10/name'
payload = {
"name": "Nayara Galindo Branco Neto"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz upload de um arquivo para ser usado em uma mensagem da conversa
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Os ID's dos arquivos são retornados na mesma ordem de envio
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/conversations/files"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('files[]', 'exemplo');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/ai/conversations/files',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'multipart/form-data',
],
'multipart' => [
[
'name' => 'files[]',
'contents' => 'exemplo'
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/conversations/files'
files = {
'files[]': (None, 'exemplo')}
payload = {
"files": [
"exemplo"
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'multipart/form-data'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Itens de compra
Listar os itens de compras
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"backoffice_code": "8923864",
"purchase_id": 572,
"status": "creating",
"user_id": 900,
"customer_id": 657,
"service_id": 145,
"name": "Téo Juan Reis Sobrinho",
"register": "exemplo",
"person_document": "exemplo",
"result": "positive",
"location_info": [],
"placed_at": "2026-12-03T17:57:30.445533Z",
"detailed_service_data": [],
"custom_fields": [],
"verification_code": "nk-8586",
"estimated_at": "2026-12-03T17:57:30.445972Z",
"finished_at": "2026-12-03T17:57:30.446326Z",
"status_details": "Iste sit voluptas sed.",
"annotations": "Debitis eos minus laborum laboriosam perferendis nam ipsa.",
"backoffice_detailed_service_fulfillment_data": [],
"total_cost": 303.19,
"total_estimated_cost_postpaid_customer": 1.5,
"included_in_plan": 1,
"provider_fee": 1.5,
"file_preview_url": "http://www.uchoa.com/est-animi-quia-fugiat-sunt.html",
"comments": "exemplo",
"valid_until": "2026-12-03",
"originated_from_id": 834,
"auto_purchase_certificate_from_result_positive": true,
"auto_purchase_certificate_from_result_negative": true,
"last_status_change_at": "2026-12-03T17:57:30.447968Z",
"created_at": "2026-12-03T17:57:30.448144Z",
"updated_at": "2026-12-03T17:57:30.448252Z",
"imported_at": "2026-12-03T17:57:30.448344Z",
"extracted_summary": [],
"recurrence_item_id": 943,
"is_chain_complete": true,
"file_id_vector_store": "exemplo",
"backoffice_hash": "exemplo",
"automatic_purchase_observations": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Filtrar e paginar os resultados detalhados de um pedido
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/0-9/result-details"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/0-9/result-details',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/0-9/result-details'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Renomear um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/name"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Srta. Isabella Salgado Jr."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/orders/10/name',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Srta. Isabella Salgado Jr.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/name'
payload = {
"name": "Srta. Isabella Salgado Jr."
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancelar um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/cancel"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/orders/10/cancel',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/cancel'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Associa grupos a um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups_ids": [
402,
293
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/orders/10/groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups_ids' => [402, 293],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/groups'
payload = {
"groups_ids": [
402,
293
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera as anotações de um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/annotation"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"annotations": "Enim ab doloremque qui odio et."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/orders/10/annotation',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'annotations' => 'Enim ab doloremque qui odio et.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/annotation'
payload = {
"annotations": "Enim ab doloremque qui odio et."
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancelar um item de uma compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/refund"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/orders/10/refund',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/refund'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Compartilha um item de compra para ser acessado por uma pessoa que não possui um usuário na plataforma
requer autenticação
Visualiza um item de compra compartilhado
requer autenticação
Faz download dos arquivos de um (.pdf) ou múltiplos itens de compra (.zip).
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/123,456,789/download"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"group_by": "purchase"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/123,456,789/download',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'group_by' => 'purchase',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/123,456,789/download'
payload = {
"group_by": "purchase"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reporta um problema, relacionado a este item de compra, por email para nossa equipe
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/problem"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"subject": "Eum ipsa perspiciatis omnis quia.",
"description": "Et quisquam accusantium omnis quasi ea."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/orders/10/problem',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'subject' => 'Eum ipsa perspiciatis omnis quia.',
'description' => 'Et quisquam accusantium omnis quasi ea.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/problem'
payload = {
"subject": "Eum ipsa perspiciatis omnis quia.",
"description": "Et quisquam accusantium omnis quasi ea."
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Adicionar informações adicionais a um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/additional-information"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "Aut ab facilis eveniet est nostrum.",
"files": [
"exemplo"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/orders/10/additional-information',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'description' => 'Aut ab facilis eveniet est nostrum.',
'files' => ['exemplo'],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/additional-information'
payload = {
"description": "Aut ab facilis eveniet est nostrum.",
"files": [
"exemplo"
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz upload de um arquivo temporário para ser usado posteriormente em um item de compra
requer autenticação
Os caminhos dos arquivos são retornados na mesma ordem de envio
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/temp-file"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('files[]', 'exemplo');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/orders/temp-file',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'multipart/form-data',
],
'multipart' => [
[
'name' => 'files[]',
'contents' => 'exemplo'
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/temp-file'
files = {
'files[]': (None, 'exemplo')}
payload = {
"files": [
"exemplo"
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'multipart/form-data'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar a data de validade de um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/valid-until"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valid_until": "2012-11-29"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/orders/10/valid-until',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'valid_until' => '2012-11-29',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/valid-until'
payload = {
"valid_until": "2012-11-29"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar os detalhes do progresso de um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/detailed-progress"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/10/detailed-progress',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/detailed-progress'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar os links dos arquivos anexados ao pedido
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/attached-files"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/10/attached-files',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/attached-files'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Extrai a ficha do item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/summary"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/10/summary',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/summary'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna o item de compra mais recente com os mesmos dados enviados para verificar se já existe um item similar
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/similar"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 666,
"detailed_service_data": []
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/orders/similar',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'service_id' => 666,
'detailed_service_data' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/similar'
payload = {
"service_id": 666,
"detailed_service_data": []
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os pedidos similares
requer autenticação
Retorna um array de objetos, na mesma ordem, com o campo most_recent_similar_order, dos itens enviados no payload, indicando se existem pedidos similares
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/similars"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_services_data": [
{
"detailed_service_data": [],
"service_id": 298,
"service_code": "zv-3336"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/orders/similars',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_services_data' => [
[
'detailed_service_data' => [],
'service_id' => 298,
'service_code' => 'zv-3336',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/similars'
payload = {
"detailed_services_data": [
{
"detailed_service_data": [],
"service_id": 298,
"service_code": "zv-3336"
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar o histórico detalhado de um item de compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/orders/10/history"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/orders/10/history',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/orders/10/history'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Renomear itens da compra em lote
requer autenticação
Monta o nome de cada item a partir de um padrão (texto inicial, separador e campos). Campos que o item não possui são pulados e nomes repetidos dentro do lote são numerados: o primeiro mantém o nome e os seguintes recebem (1), (2)... Altera somente o nome do item.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prefix": "Matrícula",
"separator": "hyphen",
"fields": [
"register",
"federative_unit",
"city",
"notary_office",
"service",
"sequential_number"
],
"orders_ids": [
190,
609
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'prefix' => 'Matrícula',
'separator' => 'hyphen',
'fields' => ['register', 'federative_unit', 'city', 'notary_office', 'service', 'sequential_number'],
'orders_ids' => [190, 609],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch'
payload = {
"prefix": "Matrícula",
"separator": "hyphen",
"fields": [
"register",
"federative_unit",
"city",
"notary_office",
"service",
"sequential_number"
],
"orders_ids": [
190,
609
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Simular renomeação em lote dos itens da compra
requer autenticação
Retorna, sem alterar nada, os novos nomes dos primeiros itens (padrão 5), o total de itens do lote, quantos nomes repetidos serão numerados e, para cada campo, em quantos itens ele está disponível.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch/preview"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prefix": "Matrícula",
"separator": "hyphen",
"fields": [
"register",
"federative_unit",
"city",
"notary_office",
"service",
"sequential_number"
],
"orders_ids": [
957,
279
],
"limit": 5
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch/preview',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'prefix' => 'Matrícula',
'separator' => 'hyphen',
'fields' => ['register', 'federative_unit', 'city', 'notary_office', 'service', 'sequential_number'],
'orders_ids' => [957, 279],
'limit' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/orders/rename-batch/preview'
payload = {
"prefix": "Matrícula",
"separator": "hyphen",
"fields": [
"register",
"federative_unit",
"city",
"notary_office",
"service",
"sequential_number"
],
"orders_ids": [
957,
279
],
"limit": 5
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"total": 1807,
"duplicated_count": 709,
"fields_availability": {
"register": 1807,
"federative_unit": 1627,
"city": 1447,
"notary_office": 1447,
"service": 1807,
"sequential_number": 1807
},
"orders": [
{
"id": 1,
"backoffice_id": 8812340,
"current_name": "Previa Matricula 199509 - SP",
"new_name": "São Paulo-Certidão de Prévia de Matrícula-199509"
},
{
"id": 2,
"backoffice_id": 8812348,
"current_name": "CND Federal 123.456.789-00",
"new_name": "Certidão Negativa de Débitos Federais-123.456.789-00"
}
]
}
Exemplo de resposta (200):
{
"total": 1,
"duplicated_count": 1,
"fields_availability": [],
"orders": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Associa grupos a todos os itens de uma compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/purchases/10/groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups_ids": [
908,
506
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/purchases/10/groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups_ids' => [908, 506],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/purchases/10/groups'
payload = {
"groups_ids": [
908,
506
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mapa de relacionamentos de empresas
Retorna os dados cadastrais básicos de uma empresa por CNPJ.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/company/83289667000183"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/company/83289667000183',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/company/83289667000183'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"cnpj": "43717101000190",
"corporate_name": "D'ávila Ltda.",
"trade_name": "exemplo",
"registration_status": "exemplo",
"main_activity_code": "ny-1557",
"main_activity_description": "exemplo",
"federative_unit_abbr": "exemplo",
"city": "Santa Kléber",
"social_capital": "exemplo",
"legal_nature": "exemplo",
"size": "exemplo",
"opening_date": "2000-12-25",
"emails": [],
"partners": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna nós (empresas, pessoas, endereços, telefones, emails) e arestas (vínculos societários e de contato) no formato React Flow.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/company/26445093000151/graph"
);
const params = {
"layers": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"layers": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/company/26445093000151/graph',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'layers' => '1',
],
'json' => [
'layers' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/company/26445093000151/graph'
payload = {
"layers": 2
}
params = {
'layers': '1',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"nodes": [],
"edges": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna o grafo de relacionamentos de uma pessoa no formato React Flow.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/person/78009531731/graph"
);
const params = {
"layers": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"layers": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/person/78009531731/graph',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'layers' => '1',
],
'json' => [
'layers' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/person/78009531731/graph'
payload = {
"layers": 2
}
params = {
'layers': '1',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"nodes": [],
"edges": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a(s) pessoa(s) associada(s) a um CPF (ou miolo) e as empresas em que participam, direto da base da Receita, sem custo de enriquecimento.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/person/36095595606/companies"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/person/36095595606/companies',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/person/36095595606/companies'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"cpf_core": "exemplo",
"total": 1,
"notice": "exemplo",
"people": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enriquece os dados de uma pessoa a partir de um nó do grafo (id do nó + CNPJ de origem), resolvendo a identidade na fonte complementar.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/person/by-node"
);
const params = {
"node_id": "PF_***331209**-CARLOS M. VIEIRA",
"cnpj_origin": "44555666000190",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"node_id": 161,
"cnpj_origin": "exemplo"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/person/by-node',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'node_id' => 'PF_***331209**-CARLOS M. VIEIRA',
'cnpj_origin' => '44555666000190',
],
'json' => [
'node_id' => 161,
'cnpj_origin' => 'exemplo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/person/by-node'
payload = {
"node_id": 161,
"cnpj_origin": "exemplo"
}
params = {
'node_id': 'PF_***331209**-CARLOS M. VIEIRA',
'cnpj_origin': '44555666000190',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"state": "enriched",
"message": "Eum placeat repudiandae vel nisi.",
"package": {
"identification": {
"name": "Dr. Hosana Casanova Valentin",
"cpf_status": "exemplo",
"age": 1
},
"contacts": {
"phones": [],
"emails": [],
"addresses": []
},
"related_people": "exemplo",
"links": "exemplo",
"cpf_masked": "exemplo",
"cpf_unmasked": "exemplo",
"enriched_at": "1998-11-24"
},
"cache": true,
"person_key": "exemplo",
"can_reveal": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Enriquece os dados de uma pessoa a partir do CPF completo (contatos, idade, situação do CPF, pessoas relacionadas e vínculos).
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/person/62358034436"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/person/62358034436',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/person/62358034436'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"state": "enriched",
"message": "Et et doloribus iste vitae magnam.",
"package": {
"identification": {
"name": "Sra. Pérola Lia D'ávila Filho",
"cpf_status": "exemplo",
"age": 1
},
"contacts": {
"phones": [],
"emails": [],
"addresses": []
},
"related_people": "exemplo",
"links": "exemplo",
"cpf_masked": "exemplo",
"cpf_unmasked": "exemplo",
"enriched_at": "2023-09-27"
},
"cache": true,
"person_key": "exemplo",
"can_reveal": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Expande um nó existente e retorna novos nós e arestas no formato React Flow. Somente nós do tipo empresa (PJ_) ou pessoa (PF_) podem ser expandidos.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/graph/node/10/expand"
);
const params = {
"layers": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"layers": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/graph/node/10/expand',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'layers' => '1',
],
'json' => [
'layers' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/graph/node/10/expand'
payload = {
"layers": 2
}
params = {
'layers': '1',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"nodes": [],
"edges": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Realiza busca textual por empresas e pessoas para iniciar navegação no mapa.
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/company-relationship-map/search"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"query": "rerum",
"type": "company",
"situation": "active"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/company-relationship-map/search',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'query' => 'rerum',
'type' => 'company',
'situation' => 'active',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/company-relationship-map/search'
payload = {
"query": "rerum",
"type": "company",
"situation": "active"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"results": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Meus arquivos
Lista os itens de meus arquivos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/explorer',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um item dos meus arquivos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/explorer/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"owner_id": 610,
"customer_id": 528,
"parent_id": 623,
"order_id": 644,
"name": "Dr. Sergio Vinícius Galvão Jr.",
"created_at": "2026-12-03T17:57:29.838083Z",
"type": "folder",
"last_operation_at": "2026-12-03T17:57:29.838501Z",
"file_size_bytes": 1,
"ocr_requested_at": "2026-12-03T17:57:29.838696Z",
"service_id": 752,
"ai_input_type": "file",
"ai_request_pending": true,
"updated_at": "2026-12-03T17:57:29.838964Z",
"ocr_failed": true,
"ocr_available": true,
"file_id_vector_store": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Associa grupos a um item de meus arquivos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/10/groups"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups_ids": [
252,
397
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/explorer/10/groups',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups_ids' => [252, 397],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/10/groups'
payload = {
"groups_ids": [
252,
397
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Altera o serviço de um item de meus arquivos. Somente para itens do tipo upload
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/10/service"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"service_id": 646
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/explorer/10/service',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'service_id' => 646,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/10/service'
payload = {
"service_id": 646
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Renomear um item dos meus arquivos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/10/name"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Srta. Maraisa Rangel Velasques Sobrinho"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/explorer/10/name',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Srta. Maraisa Rangel Velasques Sobrinho',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/10/name'
payload = {
"name": "Srta. Maraisa Rangel Velasques Sobrinho"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um item de meus arquivos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/explorer/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Move um ou múltiplos itens de meus arquivos para dentro de uma pasta ou para a raíz
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/123,456,789/parent/root"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/explorer/123,456,789/parent/root',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/123,456,789/parent/root'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PATCH', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Move um ou múltiplos itens de meus arquivos para dentro de uma pasta ou para a raíz
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/123,456,789/parent/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/explorer/123,456,789/parent/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/123,456,789/parent/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PATCH', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cria uma pasta
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/"
);
const params = {
"type": "ai",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Dr. Anita Marina Correia"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/explorer/',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'type' => 'ai',
],
'json' => [
'name' => 'Dr. Anita Marina Correia',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/'
payload = {
"name": "Dr. Anita Marina Correia"
}
params = {
'type': 'ai',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()Exemplo de resposta (200):
{
"id": 1,
"owner_id": 306,
"customer_id": 627,
"parent_id": 793,
"order_id": 32,
"name": "Luciana Aguiar",
"created_at": "2026-12-03T17:57:29.939885Z",
"type": "folder",
"last_operation_at": "2026-12-03T17:57:29.940028Z",
"file_size_bytes": 1,
"ocr_requested_at": "2026-12-03T17:57:29.940174Z",
"service_id": 497,
"ai_input_type": "file",
"ai_request_pending": true,
"updated_at": "2026-12-03T17:57:29.940314Z",
"ocr_failed": true,
"ocr_available": true,
"file_id_vector_store": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz download dos arquivos de um ou múltiplos itens de de meus arquivos (.zip).
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/123,456,789/download"
);
const params = {
"groupBy": "directory",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"group_by": "purchase"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/explorer/123,456,789/download',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'groupBy' => 'directory',
],
'json' => [
'group_by' => 'purchase',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/123,456,789/download'
payload = {
"group_by": "purchase"
}
params = {
'groupBy': 'directory',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Faz upload de arquivos para "Meus Arquivos"
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/upload"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('files[]', 'exemplo');
body.append('parent_id', '496');
body.append('service_id', '499');
body.append('groups_ids[]', '919');
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/explorer/upload',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'multipart/form-data',
],
'multipart' => [
[
'name' => 'files[]',
'contents' => 'exemplo'
],
[
'name' => 'parent_id',
'contents' => '496'
],
[
'name' => 'service_id',
'contents' => '499'
],
[
'name' => 'groups_ids[]',
'contents' => '919'
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/upload'
files = {
'files[]': (None, 'exemplo'),
'parent_id': (None, '496'),
'service_id': (None, '499'),
'groups_ids[]': (None, '919')}
payload = {
"files": [
"exemplo"
],
"parent_id": 496,
"service_id": 499,
"groups_ids": [
919,
227
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'multipart/form-data'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Busca as respostas de IA para um item de meus arquivos usando um modelo específico.
requer autenticação
Assincrono
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/explorer/10/ai/models/exemplo/answers"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/explorer/10/ai/models/exemplo/answers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/explorer/10/ai/models/exemplo/answers'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Modelos de IA
Define um modelo de IA como favorito
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models/10/favorite"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/ai/models/10/favorite',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models/10/favorite'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove um modelo de IA dos favoritos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/ai/models/10/favorite"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/ai/models/10/favorite',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/ai/models/10/favorite'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Notificações
Listar as notificações do usuário
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/notifications',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Marca todas as notificações do usuário como lidas
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/all/read"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/notifications/all/read',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/all/read'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Marca todas as notificações do usuário como não lidas
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/all/unread"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/notifications/all/unread',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/all/unread'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Marca uma notificação do usuário como lida
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/exemplo/read"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/notifications/exemplo/read',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/exemplo/read'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Marca uma notificação do usuário como não lida
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/exemplo/unread"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/notifications/exemplo/unread',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/exemplo/unread'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir todas as notificações do usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/all"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/notifications/all',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/all'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir notificações do usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/notifications/exemplo"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/notifications/exemplo',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/notifications/exemplo'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Outros
Consulta dados de uma pessoa pelo CPF
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/person-data-by-cpf/53583655249"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/person-data-by-cpf/53583655249',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/person-data-by-cpf/53583655249'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"valid": true,
"name": "Daniel Diogo Garcia",
"gender": "exemplo",
"age": 1,
"mother_name": "exemplo",
"father_name": "exemplo",
"nationality": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Indica se a API está disponível
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/health"
);
fetch(url, {
method: "GET",
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get('https://api2.cbrdoc.com.br/health');
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/health'
response = requests.request('GET', url, )
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Recorrências
Listar as recorrências do cliente
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/recurrences',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar uma recorrência
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/recurrences/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Sofia Delgado",
"keep_original_groups_from_items": 1,
"starts_at": "2026-12-03",
"next_at": "2026-12-03",
"last_at": "2026-12-03",
"frequency": "weekly",
"monthly_day_of_month": 1,
"weekly_happens_on": [],
"yearly_month": 1,
"yearly_day": 1,
"owner_id": 303,
"customer_id": 318,
"active": true,
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"created_at": "2026-12-03T17:57:31.079716Z",
"updated_at": "2026-12-03T17:57:31.079894Z",
"notify_result_changes_in_items": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar uma recorrência
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Antônio Branco Cruz Neto",
"starts_at": "1980-06-26",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"items": [],
"groups_ids": [
769,
345
],
"notify_result_changes_in_items": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/recurrences',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Antônio Branco Cruz Neto',
'starts_at' => '1980-06-26',
'frequency' => 'weekly',
'monthly_day_of_month' => 16,
'yearly_day' => 16,
'yearly_month' => 7,
'weekly_happens_on' => [],
'every_x_days_number_of_days' => 1,
'specific_time' => '14:30',
'items' => [],
'groups_ids' => [769, 345],
'notify_result_changes_in_items' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences'
payload = {
"name": "Antônio Branco Cruz Neto",
"starts_at": "1980-06-26",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"items": [],
"groups_ids": [
769,
345
],
"notify_result_changes_in_items": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Sr. Alan Rosa Cruz Jr.",
"keep_original_groups_from_items": 1,
"starts_at": "2026-12-03",
"next_at": "2026-12-03",
"last_at": "2026-12-03",
"frequency": "weekly",
"monthly_day_of_month": 1,
"weekly_happens_on": [],
"yearly_month": 1,
"yearly_day": 1,
"owner_id": 570,
"customer_id": 179,
"active": true,
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"created_at": "2026-12-03T17:57:31.111105Z",
"updated_at": "2026-12-03T17:57:31.111315Z",
"notify_result_changes_in_items": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar uma recorrência a partir de uma compra
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences/by-purchase"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Dr. Antonieta Santacruz Molina",
"starts_at": "1974-02-08",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"purchase_id": 148,
"groups_ids": [
853,
924
],
"notify_result_changes_in_items": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/recurrences/by-purchase',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Dr. Antonieta Santacruz Molina',
'starts_at' => '1974-02-08',
'frequency' => 'weekly',
'monthly_day_of_month' => 16,
'yearly_day' => 16,
'yearly_month' => 7,
'weekly_happens_on' => [],
'every_x_days_number_of_days' => 1,
'specific_time' => '14:30',
'purchase_id' => 148,
'groups_ids' => [853, 924],
'notify_result_changes_in_items' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences/by-purchase'
payload = {
"name": "Dr. Antonieta Santacruz Molina",
"starts_at": "1974-02-08",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"purchase_id": 148,
"groups_ids": [
853,
924
],
"notify_result_changes_in_items": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Dr. Manoela Olívia Delgado",
"keep_original_groups_from_items": 1,
"starts_at": "2026-12-03",
"next_at": "2026-12-03",
"last_at": "2026-12-03",
"frequency": "weekly",
"monthly_day_of_month": 1,
"weekly_happens_on": [],
"yearly_month": 1,
"yearly_day": 1,
"owner_id": 637,
"customer_id": 332,
"active": true,
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"created_at": "2026-12-03T17:57:31.147330Z",
"updated_at": "2026-12-03T17:57:31.147489Z",
"notify_result_changes_in_items": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar uma recorrência
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Dr. Manuel Grego Mascarenhas Jr.",
"starts_at": "1981-04-22",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"items": [],
"groups_ids": [
539,
794
],
"notify_result_changes_in_items": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/recurrences/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'name' => 'Dr. Manuel Grego Mascarenhas Jr.',
'starts_at' => '1981-04-22',
'frequency' => 'weekly',
'monthly_day_of_month' => 16,
'yearly_day' => 16,
'yearly_month' => 7,
'weekly_happens_on' => [],
'every_x_days_number_of_days' => 1,
'specific_time' => '14:30',
'items' => [],
'groups_ids' => [539, 794],
'notify_result_changes_in_items' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences/10'
payload = {
"name": "Dr. Manuel Grego Mascarenhas Jr.",
"starts_at": "1981-04-22",
"frequency": "weekly",
"monthly_day_of_month": 16,
"yearly_day": 16,
"yearly_month": 7,
"weekly_happens_on": [],
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"items": [],
"groups_ids": [
539,
794
],
"notify_result_changes_in_items": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Marília Queirós",
"keep_original_groups_from_items": 1,
"starts_at": "2026-12-03",
"next_at": "2026-12-03",
"last_at": "2026-12-03",
"frequency": "weekly",
"monthly_day_of_month": 1,
"weekly_happens_on": [],
"yearly_month": 1,
"yearly_day": 1,
"owner_id": 143,
"customer_id": 297,
"active": true,
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"created_at": "2026-12-03T17:57:31.177847Z",
"updated_at": "2026-12-03T17:57:31.177969Z",
"notify_result_changes_in_items": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Ativar/desativar uma recorrência
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences/10/active"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/recurrences/10/active',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences/10/active'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PATCH', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"name": "Dr. Sueli Padrão D'ávila",
"keep_original_groups_from_items": 1,
"starts_at": "2026-12-03",
"next_at": "2026-12-03",
"last_at": "2026-12-03",
"frequency": "weekly",
"monthly_day_of_month": 1,
"weekly_happens_on": [],
"yearly_month": 1,
"yearly_day": 1,
"owner_id": 191,
"customer_id": 684,
"active": true,
"every_x_days_number_of_days": 1,
"specific_time": "14:30",
"created_at": "2026-12-03T17:57:31.194299Z",
"updated_at": "2026-12-03T17:57:31.194429Z",
"notify_result_changes_in_items": 1
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um ou múltiplos itens de uma recorrência
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/recurrences/10/items/123,456,789"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/recurrences/10/items/123,456,789',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/recurrences/10/items/123,456,789'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Relatórios
Gera um relatório com as respostas dos pedidos de inteligência artificial
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/ai-answers/csv"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/ai-answers/csv',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/ai-answers/csv'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"file_path": "exemplo",
"download_name": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera um relatório com os itens de compras de acordo com os filtros utilizados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/orders/{format?}"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"one_result_per_row": true
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/orders/{format?}',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'one_result_per_row' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/orders/{format?}'
payload = {
"one_result_per_row": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"file_path": "exemplo",
"download_name": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Gera um relatório com os usuários de acordo com os filtros utilizados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/users/{format?}"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"filter": "active"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/users/{format?}',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'filter' => 'active',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/users/{format?}'
payload = {
"filter": "active"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"file_path": "exemplo",
"download_name": "exemplo"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a quantidade de itens de compra mês a mês em um período de tempo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/number-orders-per-month"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"begin_date": "1978-07-06",
"end_date": "1979-11-21"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/number-orders-per-month',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'begin_date' => '1978-07-06',
'end_date' => '1979-11-21',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/number-orders-per-month'
payload = {
"begin_date": "1978-07-06",
"end_date": "1979-11-21"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a quantidade de itens de compra por status
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/number-orders-per-status"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"begin_date": "1985-10-30",
"end_date": "2003-03-26",
"only_from_logged_user": true
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/number-orders-per-status',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'begin_date' => '1985-10-30',
'end_date' => '2003-03-26',
'only_from_logged_user' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/number-orders-per-status'
payload = {
"begin_date": "1985-10-30",
"end_date": "2003-03-26",
"only_from_logged_user": true
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a quantidade de itens de compra, valor gastos e preço médio durante o período desejado
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/order-stats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"begin_date": "2011-12-08",
"end_date": "2025-12-13"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/order-stats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'begin_date' => '2011-12-08',
'end_date' => '2025-12-13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/order-stats'
payload = {
"begin_date": "2011-12-08",
"end_date": "2025-12-13"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a quantidade de análises de IA, valor gastos e preço médio durante o período desejado
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/ai-stats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"begin_date": "2017-04-10",
"end_date": "1990-11-19"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/ai-stats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'begin_date' => '2017-04-10',
'end_date' => '1990-11-19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/ai-stats'
payload = {
"begin_date": "2017-04-10",
"end_date": "1990-11-19"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna a quantidade de análises de IA mês a mês em um período de tempo
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/number-ai-analysis-per-month"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"begin_date": "2009-07-06",
"end_date": "2026-08-14"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/number-ai-analysis-per-month',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'begin_date' => '2009-07-06',
'end_date' => '2026-08-14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/number-ai-analysis-per-month'
payload = {
"begin_date": "2009-07-06",
"end_date": "2026-08-14"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna as faturas de um cliente, pré pago, durante um mês do ano
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/invoices/2023/1"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/invoices/2023/1',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/invoices/2023/1'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna as faturas de um cliente, pós pago, durante um mês do ano
requer autenticação Disponível apenas para clientes pós pagos (Com contrato)
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/invoice-postpaids/2023/1"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/invoice-postpaids/2023/1',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/invoice-postpaids/2023/1'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar o consumo das franquias do plano no ciclo atual
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/plan-usage/current"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/plan-usage/current',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/plan-usage/current'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar a tendência de consumo das franquias nos últimos 12 meses fechados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/plan-usage/trend"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/plan-usage/trend',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/plan-usage/trend'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar o consumo das franquias por usuário nos últimos meses fechados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/reports/plan-usage/users"
);
const params = {
"months": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"months": 3
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/reports/plan-usage/users',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'query' => [
'months' => '3',
],
'json' => [
'months' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/reports/plan-usage/users'
payload = {
"months": 3
}
params = {
'months': '3',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Serviços
Lista campos personalizados de um serviço
requer autenticação
Retorna todos os campos personalizados específicos do serviço mais todos os campos globais (que servem para todos os serviços), ordenado pelo label
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/10/custom-order-fields"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/10/custom-order-fields',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/10/custom-order-fields'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista os serviços
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lista os 5 serviços mais usados
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/most-used"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/most-used',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/most-used'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um serviço
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"code": "meu-codigo",
"name": "Juan Artur Camacho Filho",
"description": "Aliquid doloremque qui id odit nobis.",
"tags": [],
"type": "Certificate",
"ai_enabled": true,
"instant_delivery": true,
"short_name": "exemplo",
"details_main_attribute": "exemplo",
"auto_purchase_certificate_available_result_positive": true,
"auto_purchase_certificate_available_result_negative": true,
"verification_code_attributes": "exemplo",
"created_at": "2026-12-03T17:57:31.482369Z",
"updated_at": "2026-12-03T17:57:31.482513Z",
"keywords": [],
"free_emoluments": true,
"show_new_tag": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um serviço pelo código
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/code/certidao-nascimento"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/code/certidao-nascimento',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/code/certidao-nascimento'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"code": "meu-codigo",
"name": "Dr. Ítalo Bittencourt Benez Filho",
"description": "Placeat quia dolorem ea.",
"tags": [],
"type": "Certificate",
"ai_enabled": true,
"instant_delivery": true,
"short_name": "exemplo",
"details_main_attribute": "exemplo",
"auto_purchase_certificate_available_result_positive": true,
"auto_purchase_certificate_available_result_negative": true,
"verification_code_attributes": "exemplo",
"created_at": "2026-12-03T17:57:31.495966Z",
"updated_at": "2026-12-03T17:57:31.496104Z",
"keywords": [],
"free_emoluments": true,
"show_new_tag": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os estados onde o serviço está disponível
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna as cidades, de um estado, onde o serviço está disponível
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os cartórios, de um estado/cidade, onde o serviço está disponível
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP/SAO_PAULO"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP/SAO_PAULO',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/federative-units/SP/SAO_PAULO'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Define um serviço como favorito
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove um serviço dos favoritos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/favorite'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna o custo extra de não saber o livro e página da certidão
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/dont-know-book-page-price"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/dont-know-book-page-price',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/dont-know-book-page-price'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna o valor da taxa de serviço
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/tax-price"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/tax-price',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/tax-price'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verifica os formatos disponíveis de um serviço
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/available-formats"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_service_data": null
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/available-formats',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_service_data' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/available-formats'
payload = {
"detailed_service_data": null
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcula o preço e prazo de entrega de um serviço
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/prices-shipping-info"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_service_data": null
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/prices-shipping-info',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_service_data' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/prices-shipping-info'
payload = {
"detailed_service_data": null
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"price": 1.5,
"estimated_price_postpaid_customer": 1.5,
"estimated_delivery_days": [],
"all_items_included_in_plan": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Calcula o preço e dias adicionados no prazos de entrega para os adicionais do serviço
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/extras-prices-shipping-info"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_service_data": null
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/extras-prices-shipping-info',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_service_data' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/extras-prices-shipping-info'
payload = {
"detailed_service_data": null
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna as informações extras necessárias para o serviço.
requer autenticação
Alguns serviços exigem dados que estão restritos a uma lista de valores. Aqui essas informações podem ser consultadas
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/certidao-nascimento/extra-informations/modelo"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_service_data": null
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/certidao-nascimento/extra-informations/modelo',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_service_data' => null,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/certidao-nascimento/extra-informations/modelo'
payload = {
"detailed_service_data": null
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna os registros
requer autenticação
Retorna um array de strings, na mesma ordem, o valor do campo de registro, de acordo com o serviço, dos itens enviados no payload
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/registers"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"detailed_services_data": [
{
"detailed_service_data": null,
"service_id": 634,
"service_code": "tm-7187"
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/services/registers',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'detailed_services_data' => [
['detailed_service_data' => null, 'service_id' => 634, 'service_code' => 'tm-7187'],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/registers'
payload = {
"detailed_services_data": [
{
"detailed_service_data": null,
"service_id": 634,
"service_code": "tm-7187"
}
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Retorna as automações de compra automática, a partir de extração de dados, disponíveis
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/services/automatic-purchases-from-ai-analysis-available"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/services/automatic-purchases-from-ai-analysis-available',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/services/automatic-purchases-from-ai-analysis-available'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Usuários
Busca o registro de redefinição de senha pelo token para verificar se é válido
Descontinuado
Descontinuado: A recuperação de senha e o convite passaram a ser feitos pelo login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/password-reset/0010905473ade9284a1c6404ec3648c56a170cc571ca771822e26cc2d5e602c1"
);
fetch(url, {
method: "GET",
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get('https://api2.cbrdoc.com.br/password-reset/0010905473ade9284a1c6404ec3648c56a170cc571ca771822e26cc2d5e602c1');
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/password-reset/0010905473ade9284a1c6404ec3648c56a170cc571ca771822e26cc2d5e602c1'
response = requests.request('GET', url, )
response.json()Exemplo de resposta (200):
{
"user_id": 939,
"requested_at": "2026-12-03T17:57:30.737535Z",
"expiration_at": "2026-12-03T17:57:30.737743Z",
"already_used": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redefine a senha de um usuário através de um token de recuperação de senha válido
Descontinuado
Descontinuado: A recuperação de senha passou a ser feita pelo login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/password-reset/4c722210f7561610c0a5a9e561a960787a0dd67b99d3f378c7f0ad862dc90ae2"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"new_password": "Senha@123"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/password-reset/4c722210f7561610c0a5a9e561a960787a0dd67b99d3f378c7f0ad862dc90ae2',
[
'headers' => [
'Content-Type' => 'application/json',
],
'json' => [
'new_password' => 'Senha@123',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/password-reset/4c722210f7561610c0a5a9e561a960787a0dd67b99d3f378c7f0ad862dc90ae2'
payload = {
"new_password": "Senha@123"
}
headers = {
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um token de recuperação de senha
Descontinuado
Descontinuado: A recuperação de senha passou a ser feita pelo login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/password-reset"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "bonilha.jefferson@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/password-reset',
[
'headers' => [
'Content-Type' => 'application/json',
],
'json' => [
'email' => 'bonilha.jefferson@example.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/password-reset'
payload = {
"email": "bonilha.jefferson@example.net"
}
headers = {
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"user_id": 584,
"requested_at": "2026-12-03T17:57:30.768979Z",
"expiration_at": "2026-12-03T17:57:30.769177Z",
"already_used": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
PUT user-groups/user/{user_id}
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/user-groups/user/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"groups_ids": [
38,
628
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/user-groups/user/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'groups_ids' => [38, 628],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/user-groups/user/10'
payload = {
"groups_ids": [
38,
628
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 812,
"name": "Gabriela Marques Pedrosa Neto",
"email": "lozano.marisa@example.com",
"email_verified_at": "2026-12-03T17:57:31.847672Z",
"phone": "38928149123",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:31.847885Z",
"created_at": "2026-12-03T17:57:31.847952Z",
"updated_at": "2026-12-03T17:57:31.848009Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:31.848261Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Criar um usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "carrara.maiara@example.net",
"name": "Suellen Delgado Sobrinho",
"password": "Senha@123",
"permissions": [
1
],
"phone": "19995998324"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/users',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'email' => 'carrara.maiara@example.net',
'name' => 'Suellen Delgado Sobrinho',
'password' => 'Senha@123',
'permissions' => [1],
'phone' => '19995998324',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users'
payload = {
"email": "carrara.maiara@example.net",
"name": "Suellen Delgado Sobrinho",
"password": "Senha@123",
"permissions": [
1
],
"phone": "19995998324"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 888,
"name": "Mauro Vila de Arruda Filho",
"email": "osales@example.net",
"email_verified_at": "2026-12-03T17:57:31.870828Z",
"phone": "8228448008",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:31.871208Z",
"created_at": "2026-12-03T17:57:31.871362Z",
"updated_at": "2026-12-03T17:57:31.871463Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:31.871624Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar os usuários da conta
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/users',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar os usuários excluídos da conta
requer autenticação
O retorno é paginado
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/trashed"
);
const params = {
"page": "1",
"per-page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/users/trashed',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
'query' => [
'page' => '1',
'per-page' => '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/trashed'
params = {
'page': '1',
'per-page': '10',
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar a quantidade de usuários da conta com a permissão de gerenciar usuários e dados da empresa
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/manage-data-permission-users-count"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/users/manage-data-permission-users-count',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/manage-data-permission-users-count'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Visualizar um usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/0-9"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/users/0-9',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/0-9'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 90,
"name": "Sra. Pérola Feliciano Neto",
"email": "kamila13@example.org",
"email_verified_at": "2026-12-03T17:57:31.915717Z",
"phone": "5439693244",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:31.915950Z",
"created_at": "2026-12-03T17:57:31.916018Z",
"updated_at": "2026-12-03T17:57:31.916077Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:31.916228Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listar os usuários da conta que o usuário logado pode ver os pedidos
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/with-visible-orders"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api2.cbrdoc.com.br/users/with-visible-orders',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/with-visible-orders'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('GET', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar as permissões de um usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/10/permissions"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permissions": [
1
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/users/10/permissions',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'permissions' => [1],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/10/permissions'
payload = {
"permissions": [
1
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 711,
"name": "Leandro Aragão",
"email": "pereira.moises@example.net",
"email_verified_at": "2026-12-03T17:57:31.949627Z",
"phone": "7149235995",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:31.949909Z",
"created_at": "2026-12-03T17:57:31.949982Z",
"updated_at": "2026-12-03T17:57:31.950042Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:31.950143Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar as preferências de notificação do usuário
requer autenticação
database - São as notificações que aparecem no sistema. mail - São as notificações enviadas por email.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/10/notifications-preferences"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"bank_slip_notification_via": [
"database",
"mail"
],
"placed_purchase_notification_via": [
"database",
"mail"
],
"finished_order_notification_via": [
"database",
"mail"
],
"pending_action_notification_via": [
"database",
"mail"
],
"refunded_order_notification_via": [
"database",
"mail"
],
"spreadsheet_placed_purchase_notification_via": [],
"finished_purchase_notification_via": [
"database",
"mail"
],
"certificate_expired_notification_via": [
"database",
"mail"
],
"system_information_notification_via": [
"database",
"mail"
],
"system_unavailable_notification_via": [
"database",
"mail"
],
"summary_extracted_notification_via": [
"database",
"mail"
],
"order_challenge_notification_via": [
"database",
"mail"
],
"failed_purchase_notification_via": [
"database",
"mail"
],
"order_finished_positive_result_via": [
"database",
"mail"
],
"canceled_order_notification_via": [
"database",
"mail"
],
"spreadsheet_placed_purchase_notification": [
"database",
"mail"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/users/10/notifications-preferences',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'bank_slip_notification_via' => ['database', 'mail'],
'placed_purchase_notification_via' => ['database', 'mail'],
'finished_order_notification_via' => ['database', 'mail'],
'pending_action_notification_via' => ['database', 'mail'],
'refunded_order_notification_via' => ['database', 'mail'],
'spreadsheet_placed_purchase_notification_via' => [],
'finished_purchase_notification_via' => ['database', 'mail'],
'certificate_expired_notification_via' => ['database', 'mail'],
'system_information_notification_via' => ['database', 'mail'],
'system_unavailable_notification_via' => ['database', 'mail'],
'summary_extracted_notification_via' => ['database', 'mail'],
'order_challenge_notification_via' => ['database', 'mail'],
'failed_purchase_notification_via' => ['database', 'mail'],
'order_finished_positive_result_via' => ['database', 'mail'],
'canceled_order_notification_via' => ['database', 'mail'],
'spreadsheet_placed_purchase_notification' => ['database', 'mail'],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/10/notifications-preferences'
payload = {
"bank_slip_notification_via": [
"database",
"mail"
],
"placed_purchase_notification_via": [
"database",
"mail"
],
"finished_order_notification_via": [
"database",
"mail"
],
"pending_action_notification_via": [
"database",
"mail"
],
"refunded_order_notification_via": [
"database",
"mail"
],
"spreadsheet_placed_purchase_notification_via": [],
"finished_purchase_notification_via": [
"database",
"mail"
],
"certificate_expired_notification_via": [
"database",
"mail"
],
"system_information_notification_via": [
"database",
"mail"
],
"system_unavailable_notification_via": [
"database",
"mail"
],
"summary_extracted_notification_via": [
"database",
"mail"
],
"order_challenge_notification_via": [
"database",
"mail"
],
"failed_purchase_notification_via": [
"database",
"mail"
],
"order_finished_positive_result_via": [
"database",
"mail"
],
"canceled_order_notification_via": [
"database",
"mail"
],
"spreadsheet_placed_purchase_notification": [
"database",
"mail"
]
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 892,
"name": "Isabel Rosa Corona",
"email": "godoi.luzia@example.org",
"email_verified_at": "2026-12-03T17:57:31.982791Z",
"phone": "5147909289",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:31.983023Z",
"created_at": "2026-12-03T17:57:31.983089Z",
"updated_at": "2026-12-03T17:57:31.983185Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:31.983264Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Alterar a senha do usuário
requer autenticação Descontinuado
Descontinuado: A troca da própria senha passou a ser feita no login central.
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/10/password"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"current_password": "Senha@123",
"new_password": "Senha@123"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api2.cbrdoc.com.br/users/10/password',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
'Content-Type' => 'application/json',
],
'json' => [
'current_password' => 'Senha@123',
'new_password' => 'Senha@123',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/10/password'
payload = {
"current_password": "Senha@123",
"new_password": "Senha@123"
}
headers = {
'Authorization': 'Bearer {SEU TOKEN}',
'Content-Type': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Exemplo de resposta (200):
{
"id": 1,
"customer_id": 46,
"name": "Bianca Flores Sobrinho",
"email": "nteles@example.org",
"email_verified_at": "2026-12-03T17:57:32.007270Z",
"phone": "68975596439",
"isolated_orders": true,
"last_login_at": "2026-12-03T17:57:32.007474Z",
"created_at": "2026-12-03T17:57:32.007541Z",
"updated_at": "2026-12-03T17:57:32.007599Z",
"free_order_summary_remaining": 1,
"two_factor_confirmed_at": "2026-12-03T17:57:32.007674Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reenviar o e-mail de acesso pendente de um usuário (verificação de conta ou convite)
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/10/resend-access-email"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api2.cbrdoc.com.br/users/10/resend-access-email',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/10/resend-access-email'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Excluir um ou múltiplos usuários
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/1"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api2.cbrdoc.com.br/users/1',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/1'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Envia email para um administrador solicitando ativação da compra automática a pedido de um usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-purchase/service/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-purchase/service/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-purchase/service/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Envia email para um administrador solicitando ativação da ficha automática a pedido de um usuário
requer autenticação
Exemplo de requisição:
const url = new URL(
"https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-order-summary/service/10"
);
const headers = {
"Authorization": "Bearer {SEU TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-order-summary/service/10',
[
'headers' => [
'Authorization' => 'Bearer {SEU TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://api2.cbrdoc.com.br/users/request-admin-enable-automatic-order-summary/service/10'
headers = {
'Authorization': 'Bearer {SEU TOKEN}'
}
response = requests.request('PUT', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detalhamento de serviços
Cada serviço (certidão, pesquisa, diligência, IA, etc) tem atributos específicos para alguns endpoints.
Estes atributos vão dentro do objeto detailed_service_data.
Os atributos de cada serviço estão listados abaixo, por endpoint.
Antecedentes Criminais - Federal
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 48041140416
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Santiago Sergio Carvalho
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1989-03-11
mae
string
Não pode ser superior a 255 caracteres. Ex: Elis Paola Maldonado Filho
Ata Notarial
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_servico
string
Ex: diligencia-presencial-do-tabeliao
diligencia-presencial-do-tabeliaoja-possuo-as-evidencias
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
local_servico
string
opcional
Este campo é obrigatório quando tipo_servico for diligencia-presencial-do-tabeliao. Não pode ser superior a 500 caracteres. Ex: exemplo
mensagem
string
Não pode ser superior a 500 caracteres. Ex: exemplo
tipo_servico
string
Ex: diligencia-presencial-do-tabeliao
diligencia-presencial-do-tabeliaoja-possuo-as-evidencias
arquivos
string[]
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Baixa de Protesto
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 26836144894
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 53669548000195
nome
string
Não pode ser superior a 255 caracteres. Ex: James Saraiva Filho
numero_titulo
string
Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 260 caracteres. Ex: exemplo
arquivos
string[]
Cadastro de Contribuintes de ICMS - CADESP
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 70969524000170
Cadastro Informativo Estadual - CADIN Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_estadual
string
Não pode ser superior a 255 caracteres. Ex: exemplo
CAFIR - Cadastro de Imóveis Rurais
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
nirf
string
Deve ser 8 caracteres. Ex: exemplo
Capa de IPTU – Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 80340667613
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 32226804000108
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Carnê de IPTU - Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão Ambiental Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extra-informations
tipo_pessoa
string
Ex: fisica
fisicajuridica
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 00333449738
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 58674301000180
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Suellen Regiane Duarte Filho
rg
string
opcional
Ex: 776083830
rg_data_expedicao
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1972-08-20
rg_uf_expedicao
string
opcional
Ex: AC
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
nascimento
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1991-05-06
motivo_solicitacao
string
opcional
Ex: exemplo
orgao
string
opcional
Ex: exemplo
endereco_cep
string
opcional
Deve ser 8 caracteres. Ex: 26923049
endereco_logradouro
string
opcional
Não pode ser superior a 120 caracteres. Ex: Travessa Mauro
endereco_numero
string
opcional
Não pode ser superior a 8 caracteres. Ex: 7597
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_bairro
string
opcional
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
opcional
Não pode ser superior a 120 caracteres. Ex: Porto Rosana do Leste
endereco_uf
string
opcional
Ex: RS
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
Certidão Ambiental Municipal – Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 39344035571
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 69645384000104
endereco_logradouro
string
Não pode ser superior a 120 caracteres. Ex: Av. Pérola
endereco_numero
string
Não pode ser superior a 8 caracteres. Ex: 403
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
Deve ser 8 caracteres. Ex: 04270052
endereco_bairro
string
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
Não pode ser superior a 140 caracteres. Ex: Caroline do Norte
endereco_uf
string
Ex: RN
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
nome
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Rafael Montenegro Rico
Certidão Confrontantes de Imóvel
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 93135471128
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 78885879000193
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Laís Andressa da Rosa
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
endereco_logradouro
string
Não pode ser superior a 120 caracteres. Ex: Rua Joaquin
endereco_numero
string
Não pode ser superior a 8 caracteres. Ex: 34
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
Deve ser 8 caracteres. Ex: 08399075
endereco_bairro
string
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
Não pode ser superior a 140 caracteres. Ex: Maicon do Leste
endereco_uf
string
Ex: CE
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
arquivo_matricula_atualizada
string
Ex: exemplo
arquivo_espelho_iptu_atual
string
Ex: exemplo
Certidão de Alienação Fiduciária (RI)
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 92327593301
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 37382156000194
nome
string
Não pode ser superior a 255 caracteres. Ex: Regiane Marin Ferreira
safra
string
Não pode ser superior a 255 caracteres. Ex: exemplo
commoditie
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Alienação Fiduciária (RTD)
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 25783545961
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 16512174000173
nome
string
Não pode ser superior a 255 caracteres. Ex: Jéssica Medina Serrano
tipo
string
Ex: safra
safraoutro
safra
string
opcional
Este campo é obrigatório quando tipo for safra. Não pode ser superior a 255 caracteres. Ex: exemplo
commoditie
string
opcional
Este campo é obrigatório quando tipo for safra. Não pode ser superior a 255 caracteres. Ex: exemplo
onus
string
opcional
Este campo é obrigatório quando tipo for outro. Não pode ser superior a 255 caracteres. Ex: exemplo
numero_registro
string
opcional
Não pode ser superior a 75 caracteres. Ex: exemplo
periodo
string
opcional
Não pode ser superior a 75 caracteres. Ex: exemplo
Certidão de Antecedentes Criminais Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 62740768400
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Denis Assunção
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1987-03-20
mae
string
Não pode ser superior a 255 caracteres. Ex: Lara Pereira Bittencourt
pai
string
Não pode ser superior a 255 caracteres. Ex: Matheus Alonso Lozano
rg
string
Não pode ser superior a 15 caracteres. Ex: 135943370
rg_data_expedicao
string
opcional
Este campo é obrigatório quando url_uf for SP. Deve ser uma data válida no formato Y-m-d. Ex: 2004-01-29
genero
string
opcional
Este campo é obrigatório quando url_uf for SP. Ex: masculino
masculinofeminino
Certidão de Auto de Multa (UNICAI/UNAI)
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Casamento
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
livro
string
opcional
Não pode ser superior a 5 caracteres. Ex: exemplo
pagina
string
opcional
Não pode ser superior a 3 caracteres. Ex: exemplo
termo
string
opcional
Não pode ser superior a 7 caracteres. Ex: exemplo
conjuge1
string
Não pode ser superior a 255 caracteres. Ex: exemplo
conjuge2
string
Não pode ser superior a 255 caracteres. Ex: exemplo
casamento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2002-10-02
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 106
Certidão de Crime Eleitoral
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
nome
string
Não pode ser superior a 255 caracteres. Ex: Júlia Catarina Azevedo Sobrinho
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Danilo da Cruz Zaragoça
mae
string
opcional
Não pode ser superior a 255 caracteres. Ex: Srta. Agatha Saraiva Feliciano Filho
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2000-08-09
documento
string
Deve ter pelo menos 11 caracteres. Não pode ser superior a 12 caracteres. Ex: exemplo
Certidão de Dados Cadastrais do Imóvel – Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 83038282588
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 31511847000164
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Desapropriação Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
arquivo
string
opcional
Ex: exemplo
Certidão de Desapropriação Municipal
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
arquivo
string
opcional
Ex: exemplo
Certidão de Distribuição de Feitos - TST
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 42420445007
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 90788326000118
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Samara Roberta Medina Sobrinho
Certidão de Distribuição do Conselho Nacional do Ministério Público (CNMP)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 38460087107
nome
string
Não pode ser superior a 255 caracteres. Ex: Igor Cruz
Certidão de Escritura
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
nao_sei_livro_pagina
boolean
Ex: true
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 82419029640
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 69584292000153
nome
string
Não pode ser superior a 255 caracteres. Ex: Robson Elias das Neves
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 652
livro
string
opcional
Este campo é obrigatório quando nao_sei_livro_pagina for false. Ex: exemplo
pagina
string
opcional
Este campo é obrigatório quando nao_sei_livro_pagina for false. Ex: exemplo
nao_sei_livro_pagina
boolean
Ex: true
data_ato
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 2020-10-13
tipo
string
Ex: exemplo
arquivos
string[]
Certidão de Imóvel
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo
string
Ex: matricula
matriculatranscricaodocarquivadointeiroteorlivro3auxiliarlivro3garantiasonusquesitosvintenariapropriedadecondominiopactoantenupcialcadeia_dominial
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo
string
Ex: matricula
matriculatranscricaodocarquivadointeiroteorlivro3auxiliarlivro3garantiasonusquesitosvintenariapropriedadecondominiopactoantenupcialcadeia_dominial
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo
string
Ex: matricula
matriculatranscricaodocarquivadointeiroteorlivro3auxiliarlivro3garantiasonusquesitosvintenariapropriedadecondominiopactoantenupcialcadeia_dominial
POST
/services/{serviceId}/extra-informations
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo
string
Ex: matricula
matriculatranscricaodocarquivadointeiroteorlivro3auxiliarlivro3garantiasonusquesitosvintenariapropriedadecondominiopactoantenupcialcadeia_dominial
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 407
tipo
string
Ex: matricula
matriculatranscricaodocarquivadointeiroteorlivro3auxiliarlivro3garantiasonusquesitosvintenariapropriedadecondominiopactoantenupcialcadeia_dominial
buscar_por
string
Ex: exemplo
matricula
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
transcricao
string
opcional
Ex: exemplo
endereco_logradouro
string
opcional
Não pode ser superior a 120 caracteres. Ex: Travessa Isabel
endereco_numero
string
opcional
Não pode ser superior a 8 caracteres. Ex: 585
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
opcional
Deve ser 8 caracteres. Ex: 90082144
endereco_bairro
string
opcional
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
opcional
Não pode ser superior a 140 caracteres. Ex: São Mary do Norte
endereco_uf
string
opcional
Ex: RS
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
cep
string
opcional
Deve ser 8 caracteres. Ex: 73223216
condominio
string
opcional
Ex: exemplo
registro_livro3
string
opcional
Ex: exemplo
ato
string
opcional
Ex: exemplo
data_emissao
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1999-10-04
livro
string
opcional
Ex: exemplo
nome
string
opcional
Ex: Sra. Raissa Amanda Santos Sobrinho
documento
string
opcional
Ex: exemplo
protocolo
string
opcional
Ex: exemplo
conjuge1_nome
string
opcional
Ex: exemplo
conjuge2_nome
string
opcional
Ex: exemplo
conjuge1_cpf
string
opcional
Ex: 98100364931
conjuge2_cpf
string
opcional
Ex: 61316316114
casamento
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1976-05-11
numero_registro
string
opcional
Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
dominial_ano_limite
integer
opcional
Deve ser pelo menos 1800. Não pode ser superior a 2099. Ex: 1950
Certidão de Interdição
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 93245019688
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 35230931000160
nome
string
Não pode ser superior a 255 caracteres. Ex: Sra. Sheila Padrão Godói Filho
mae
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Não pode ser superior a 255 caracteres. Ex: Dr. Kamila Bruna Ramires Filho
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Thales Théo Urias Filho
nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2012-05-27
rg
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Ex: 787309362
uf_nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Ex: AC
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
cidade_nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Ex: exemplo
ano_aproximado_ato
integer
opcional
Deve ser entre 1900 e 2026. Ex: 1963
Certidão de Nascimento
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
livro
string
opcional
Não pode ser superior a 5 caracteres. Ex: exemplo
pagina
string
opcional
Não pode ser superior a 3 caracteres. Ex: exemplo
termo
string
opcional
Não pode ser superior a 7 caracteres. Ex: exemplo
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Júlio Jimenes Gil Jr.
mae
string
Não pode ser superior a 255 caracteres. Ex: Isabel Chaves Vieira
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Rogério Sérgio Roque
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1989-08-05
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 222
Certidão de Óbito
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
livro
string
opcional
Não pode ser superior a 5 caracteres. Ex: exemplo
pagina
string
opcional
Não pode ser superior a 3 caracteres. Ex: exemplo
termo
string
opcional
Não pode ser superior a 7 caracteres. Ex: exemplo
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Cauan Ivan Pedrosa
mae
string
Não pode ser superior a 255 caracteres. Ex: Srta. Suzana Carrara Sepúlveda Sobrinho
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Emanuel D'ávila Campos
obito
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2015-05-30
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 125
Certidão de Objeto e Pé
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 75227259330
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 27585850000155
nome
string
Não pode ser superior a 255 caracteres. Ex: Sra. Gisela Stella Delgado
numero_processo
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Penhor de Safra
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 03086032650
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 98844242000166
nome
string
Não pode ser superior a 255 caracteres. Ex: Alma Gabriela Faro Filho
tipo_safra
string
Não pode ser superior a 255 caracteres. Ex: exemplo
safra
string
Não pode ser superior a 255 caracteres. Ex: exemplo
registro
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
nome_propriedade
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Prévia de Matrícula – Matrícula Online
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 183
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Certidão de Processo Administrativo Sancionador
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 50501613200
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 65547214000128
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Jéssica Stella de Souza Jr.
Certidão de Procuração
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
nao_sei_livro_pagina
boolean
Ex: true
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 33631725167
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 66496957000189
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Dirce Sandoval Salas
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 926
livro
string
opcional
Este campo é obrigatório quando nao_sei_livro_pagina for false. Ex: exemplo
pagina
string
opcional
Este campo é obrigatório quando nao_sei_livro_pagina for false. Ex: exemplo
nao_sei_livro_pagina
boolean
Ex: true
data_ato
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1999-04-25
Certidão de Propriedade de Aeronave
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 20750330805
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 78944327000109
nome
string
Não pode ser superior a 255 caracteres. Ex: Sra. Léia Rodrigues Gonçalves Neto
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Certidão de Protesto
POST
/services/{serviceId}/available-formats
tempo_pesquisa
integer
Ex: 1
POST
/services/{serviceId}/prices-shipping-info
tempo_pesquisa
integer
Ex: 1
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/services/{serviceId}/extra-informations
POST
/purchases
url_cartorio
string[]
Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 08806739310
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 48691882000105
nome
string
Não pode ser superior a 255 caracteres. Ex: Simon Filipe Carrara
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 895
tempo_pesquisa
integer
Ex: 1
rg
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Ex: 190923113
cep
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 8 caracteres. Ex: 97811510
Certidão de Registro Sindical
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 95524773000183
Certidão de Regularidade na Contratação de Aprendizes
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 17510051000166
Certidão de Taxa de Incêndio
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 94355344657
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 94818259000198
nome
string
Não pode ser superior a 255 caracteres. Ex: Norma Esteves Faro
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
endereco_logradouro
string
Não pode ser superior a 120 caracteres. Ex: Largo José Rosa
endereco_numero
string
Não pode ser superior a 8 caracteres. Ex: 1
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
Deve ser 8 caracteres. Ex: 54257926
endereco_bairro
string
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
Não pode ser superior a 140 caracteres. Ex: Vila Irene do Norte
endereco_uf
string
Ex: RN
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
area_metros_quadrados
number
Ex: 1.5
Certidão de Testamento (Positiva ou Negativa) – CENSEC
POST
/services/{serviceId}/available-formats
tipo_livro
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo_livro
string
Ex: exemplo
POST
/purchases
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Fabiano Renan Gonçalves
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1982-06-11
cpf
string
Deve ser 11 caracteres. Ex: 82775269540
tipo_documento
string
Ex: exemplo
cnh_passaporte_rg_rne
string
Ex: exemplo
orgao_emissor
string
Ex: exemplo
obito
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1989-11-17
matricula
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
tipo_livro
string
Ex: exemplo
livro
string
opcional
Ex: exemplo
pagina
string
opcional
Ex: exemplo
mae
string
Não pode ser superior a 255 caracteres. Ex: Dr. Andressa Aguiar Zamana
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Dr. Artur Lira Meireles
arquivo_certidao_obito
string
Ex: exemplo
Certidão de Títulos e Documentos e de Pessoas Jurídicas
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_documento
string
Ex: exemplo
tipo_certidao
string
Ex: exemplo
POST
/services/{serviceId}/extra-informations
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
nome
string
opcional
Não pode ser superior a 255 caracteres. Ex: Patrícia Eloah Franco
tipo_pessoa
string
opcional
Este campo é obrigatório quando cpf or cnpj for present. Ex: fisica
fisicajuridica
cpf
string
opcional
Deve ser 11 caracteres. Ex: 21668597632
cnpj
string
opcional
Deve ser 14 caracteres. Ex: 83003490000107
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 973
tipo_documento
string
Ex: exemplo
tipo_certidao
string
Ex: exemplo
numero_registro
string
opcional
Ex: exemplo
data_registro
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1970-06-18
quesito
string
opcional
Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Certidão de Tombamento - IPHAN
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
arquivo
string
opcional
Ex: exemplo
Certidão de Tombamento Municipal
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
matricula
string
Não pode ser superior a 255 caracteres. Ex: exemplo
arquivo
string
opcional
Ex: exemplo
Certidão de União Estável
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/extras-prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
livro
string
opcional
Não pode ser superior a 5 caracteres. Ex: exemplo
pagina
string
opcional
Não pode ser superior a 3 caracteres. Ex: exemplo
termo
string
opcional
Não pode ser superior a 7 caracteres. Ex: exemplo
conjuge1
string
Não pode ser superior a 255 caracteres. Ex: exemplo
conjuge2
string
Não pode ser superior a 255 caracteres. Ex: exemplo
data_registro
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1977-01-29
Certidão de Uso e Ocupação do Solo
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
arquivo
string
opcional
Ex: exemplo
Certidão de Valor Venal – Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 43823030795
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 20779479000113
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Certidão de Violação dos Direitos do Consumidor (Procon-SP)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 66087314938
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 29646866000156
nome
string
Não pode ser superior a 255 caracteres. Ex: Igor Kauan Meireles Neto
endereco_logradouro
string
Não pode ser superior a 120 caracteres. Ex: Largo Allison Mendes
endereco_numero
string
Não pode ser superior a 8 caracteres. Ex: 726
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
Deve ser 8 caracteres. Ex: 09599347
endereco_bairro
string
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
Não pode ser superior a 140 caracteres. Ex: Queirós do Sul
endereco_uf
string
Ex: BA
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
Certidão do INSS - Previdência Social
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 84493519000149
cei
string
opcional
Não pode ser superior a 13 caracteres. Ex: exemplo
Certidão do SPU
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/purchases
tipo
string
Ex: exemplo
numero_rip
string
opcional
Este campo é obrigatório quando nenhum de cpf, cnpj, and nome estiverem presentes. Ex: exemplo
cpf
string
opcional
Este campo é obrigatório quando nenhum de numero_rip, cnpj, and nome estiverem presentes. Ex: 13523331129
cnpj
string
opcional
Este campo é obrigatório quando nenhum de numero_rip, cpf, and nome estiverem presentes. Ex: 45466635000117
nome
string
opcional
Este campo é obrigatório quando nenhum de numero_rip, cpf, and cnpj estiverem presentes. Ex: Allison Paes Cervantes Filho
Certidão Negativa Correcional (CGU-PJ, CEIS, CNEP e CEPIM)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 18709147837
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 12666955000161
Certidão Negativa de Inabilitados para Função Pública
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 78598764850
Certidão para Entidades Supervisionadas
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 26198954000144
Certidão Positiva do Imóvel
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 36513706076
Certificado de Cadastro do Imóvel Rural - CCIR
POST
/services/{serviceId}/available-formats
tipo_pessoa
string
Ex: fisica
fisicajuridica
natureza_juridica
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo_pessoa
string
Ex: fisica
fisicajuridica
natureza_juridica
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Ex: exemplo
POST
/services/{serviceId}/extra-informations
tipo_pessoa
string
Ex: fisica
fisicajuridica
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 46300496066
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 64167074000108
codigo_imovel
string
Deve ser 13 caracteres. Ex: exemplo
natureza_juridica
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Ex: exemplo
Certificado de Regularidade do FGTS - CRF
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
opcional
Este campo é obrigatório quando cpf for not present. Deve ser 14 caracteres. Deve ser informado o cnpj ou o cpf, nunca os dois. Ex: 17440003000149
cpf
string
opcional
Este campo é obrigatório quando cnpj for not present. Deve ser 11 caracteres. Deve ser informado o cnpj ou o cpf, nunca os dois. Ex: 44517376800
cei
string
opcional
Não pode ser superior a 13 caracteres. Ex: exemplo
CGU - Certidão Negativa Correcional (EPAD e CGU-PAD)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 66306139028
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 44905933000101
CNJ - Improbidade Administrativa e Inelegibilidade
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 99961287339
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 90349532000121
CRDA - Certidão Negativa de Débitos Tributários – PGE
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 40557172292
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 52834443000181
nome
string
Não pode ser superior a 255 caracteres. Ex: Isaac de Aguiar Neto
inscricao_estadual
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
solicitante_rg
string
opcional
Não pode ser superior a 20 caracteres. Ex: exemplo
solicitante_orgao_expedidor_rg
string
opcional
Não pode ser superior a 50 caracteres. Ex: exemplo
solicitante_data_emissao_rg
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 2019-04-28
endereco_logradouro
string
opcional
Não pode ser superior a 120 caracteres. Ex: Largo Cezar de Arruda
endereco_numero
string
opcional
Não pode ser superior a 8 caracteres. Ex: 33
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
opcional
Deve ser 8 caracteres. Ex: 57234679
endereco_bairro
string
opcional
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
opcional
Não pode ser superior a 140 caracteres. Ex: Porto Gabriela
endereco_uf
string
opcional
Ex: PE
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
Extrato de Débitos Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
inscricao_estadual
string
Não pode ser superior a 255 caracteres. Ex: exemplo
Extrato de Débitos Municipal – Prefeitura
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
buscar_por
string
Ex: cpf
cpfcnpjinscricao-imovel
cpf
string
opcional
Este campo é obrigatório quando buscar_por for cpf. Deve ser 11 caracteres. Ex: 80545831849
cnpj
string
opcional
Este campo é obrigatório quando buscar_por for cnpj. Deve ser 14 caracteres. Ex: 27969938000170
inscricao_imovel
string
opcional
Este campo é obrigatório quando buscar_por for inscricao-imovel. Não pode ser superior a 255 caracteres. Ex: exemplo
IBAMA - Certidão de Embargos
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 26710119467
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 69521104000148
IBAMA - Certidão Negativa de Débitos
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 72851637169
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 90429819000161
nome
string
Não pode ser superior a 255 caracteres. Ex: Denis Carrara
Junta Comercial - Certidão da Empresa
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/services/{serviceId}/extra-informations
POST
/purchases
tipo
string
Ex: exemplo
tipo_pessoa
string
Ex: fisica
fisicajuridica
cnpj
string
opcional
Deve ser 14 caracteres. Ex: 75587811000130
cpf
string
opcional
Deve ser 11 caracteres. Ex: 84063975436
razao_social
string
opcional
Ex: de Freitas e Martines e Associados
numero_ato
string
opcional
Ex: exemplo
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 121
tipo_especificacao
string
opcional
Este campo é obrigatório quando tipo for especifica. Não pode ser superior a 255 caracteres. Ex: exemplo
subtipo
string
opcional
Ex: exemplo
MDA / SEAD / Declaração de Aptidão Ao PRONAF (DAP)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 45261706076
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 77418465000191
MPE - Certidão de Inquérito Civil
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 52286383502
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 95548435000181
nome
string
Não pode ser superior a 255 caracteres. Ex: Gean Uchoa
MPE - Certidão de Inquérito Criminal
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 70000271691
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 26834592000130
nome
string
Não pode ser superior a 255 caracteres. Ex: Gabrielle Tábata Serrano Filho
MPF - Certidão Negativa
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 30401142981
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 53497502000136
MPT - Certidão Negativa de Feitos
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 13896876783
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 53385150000127
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Gilberto Salgado Jr.
MT - Certidão de Cumprimento da Cota Legal de PcDs
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 96620503000139
MT - Certidão de Débitos
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 33597238211
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 41698409000100
MT - Recibo de Entrega da Rais
POST
/services/{serviceId}/available-formats
tipo
string
Ex: cei-cno
cei-cnocaepfcnpj
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: cei-cno
cei-cnocaepfcnpj
POST
/purchases
tipo
string
Ex: cei-cno
cei-cnocaepfcnpj
cei_cno
string
opcional
Este campo é obrigatório quando tipo for cei-cno. Ex: exemplo
caepf
string
opcional
Este campo é obrigatório quando tipo for caepf. Ex: exemplo
cnpj
string
opcional
Este campo é obrigatório quando tipo for cnpj. Ex: 46490070000176
crea
string
Ex: exemplo
ano_base
integer
Deve ser entre 1900 e 2026. Ex: 1963
Receita Federal - Certidão de Tributos Federais e Dívida da União de Imóvel Rural (ITR)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cib
string
Deve ser 8 caracteres. Ex: exemplo
Receita Federal - Certidão Negativa de Débitos Relativos Aos Tributos Federais e à Dívida Ativa da União (CNDTNIDA)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 69713536339
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 74815401000136
nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2005-04-27
SEFAZ - Certidão de IPTU
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 30640771807
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 78720342000173
inscricao_imovel
string
Não pode ser superior a 255 caracteres. Ex: exemplo
complemento
string
opcional
Não pode ser superior a 250 caracteres. Ex: Apto 12
nome
string
opcional
Não pode ser superior a 255 caracteres. Ex: Andres Matos Neto
SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual)
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 75608528158
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 15247065000103
nome
string
Não pode ser superior a 255 caracteres. Ex: Tessália Mirella Queirós
rg
string
opcional
Ex: 422449180
orgao_emissor
string
opcional
Ex: exemplo
SEFAZ - Certidão Negativa de Débitos Tributários Municipais (CND Municipal)
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 49075894333
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 71764626000112
nome
string
Não pode ser superior a 255 caracteres. Ex: Lorena Salgado
mae
string
opcional
Não pode ser superior a 255 caracteres. Ex: Dr. Ivana Mirela Vale Filho
nascimento
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1990-09-13
inscricao_municipal
string
opcional
Não pode ser superior a 255 caracteres. Não pode ser superior a 255 caracteres. Ex: exemplo
inscricao_mercantil
string
opcional
Este campo é obrigatório quando url_uf for PE. Deve atender a regex /\^\d{1,15}\$/. Ex: exemplo
inscricao_cadastral
string
opcional
Este campo é obrigatório quando url_cidade for santana-de-parnaiba. Não pode ser superior a 255 caracteres. Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 2500 caracteres. Ex: exemplo
endereco_cep
string
opcional
Não pode ser superior a 8 caracteres. Ex: 01533211
endereco_logradouro
string
opcional
Não pode ser superior a 120 caracteres. Ex: Av. Perez
endereco_numero
string
opcional
Não pode ser superior a 10 caracteres. Ex: 8
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_bairro
string
opcional
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
opcional
Não pode ser superior a 120 caracteres. Ex: São Jéssica do Leste
endereco_uf
string
opcional
Ex: MG
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
STF - Certidão Distribuidor
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 36165705901
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 21189913000178
nome
string
Não pode ser superior a 255 caracteres. Ex: Saulo Théo Vila Jr.
mae
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Não pode ser superior a 255 caracteres. Ex: Olívia Lutero Jr.
nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser uma data válida no formato Y-m-d. Ex: 2014-10-09
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Benjamin Marin Gomes Neto
rg
string
opcional
Ex: 953979172
orgao_emissor
string
opcional
Ex: exemplo
nacionalidade
string
opcional
Ex: exemplo
estado_civil
string
opcional
Ex: exemplo
STJ - Certidão Negativa
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 90393371875
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 86869137000100
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. William Alonso Ávila
STM - Certidão Negativa de Ações Criminais
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 79180221491
nome
string
Não pode ser superior a 255 caracteres. Ex: Antonella Madeira Maldonado
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2012-11-10
mae
string
Ex: Nicole Yohanna Valentin Jr.
TCE - Tribunal de Contas Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 95214066155
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 86486325000141
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. George Serna Alves Neto
TCU - Certidão Negativa de Contas Julgadas Irregulares
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 93847459449
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 25113238000154
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Walter das Dores Leon Sobrinho
tipo
string
Ex: exemplo
TCU - Certidão Negativa de Processo
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 08078969341
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 79904801000131
nome
string
Não pode ser superior a 255 caracteres. Ex: Santiago Pacheco Casanova Filho
TJ - Certidão de Distribuição Estadual
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
tipo_pessoa
string
Ex: fisica
fisicajuridica
instancia
string
Não pode ser superior a 255 caracteres. Ex: exemplo
modelo
string
Não pode ser superior a 255 caracteres. Ex: exemplo
POST
/services/{serviceId}/extra-informations
tipo_pessoa
string
Ex: fisica
fisicajuridica
instancia
string
Não pode ser superior a 255 caracteres. Ex: exemplo
modelo
string
Não pode ser superior a 255 caracteres. Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 69708960993
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 03242645000129
nome
string
opcional
Ex: Dr. Thomas Matias Jr.
inscricao_imovel
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
endereco_logradouro
string
opcional
Não pode ser superior a 120 caracteres. Ex: Largo Lilian Paz
endereco_numero
string
opcional
Não pode ser superior a 8 caracteres. Ex: 32
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_bairro
string
opcional
Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cep
string
opcional
Deve ser 8 caracteres. Ex: 63607814
endereco_cidade
string
opcional
Não pode ser superior a 140 caracteres. Cidade do imóvel. Ex: Vila Hosana
endereco_uf
string
opcional
Ex: MT
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Danilo Faria Arruda Jr.
mae
string
opcional
Não pode ser superior a 255 caracteres. Ex: Dr. Antonieta Lorena Domingues Filho
nascimento
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 2005-10-01
rg
string
opcional
Não pode ser superior a 20 caracteres. Ex: 965660206
naturalidade
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
nacionalidade
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
estado_civil
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
instancia
string
Não pode ser superior a 255 caracteres. Ex: exemplo
modelo
string
Não pode ser superior a 255 caracteres. Ex: exemplo
comarca
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
representante_legal
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
orgao_expedidor_rg
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
TRF - Certidão de Distribuição da Justiça Federal
POST
/services/{serviceId}/available-formats
tipo_pessoa
string
Ex: fisica
fisicajuridica
regiao
string
Ex: 1_regiao
1_regiao2_regiao3_regiao4_regiao5_regiao6_regiao
POST
/services/{serviceId}/prices-shipping-info
tipo_pessoa
string
Ex: fisica
fisicajuridica
regiao
string
Ex: 1_regiao
1_regiao2_regiao3_regiao4_regiao5_regiao6_regiao
POST
/services/{serviceId}/extra-informations
tipo_pessoa
string
Ex: fisica
fisicajuridica
regiao
string
Ex: 1_regiao
1_regiao2_regiao3_regiao4_regiao5_regiao6_regiao
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 28737594451
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 59110293000102
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Emily Paes
regiao
string
Ex: 1_regiao
1_regiao2_regiao3_regiao4_regiao5_regiao6_regiao
orgao
string
opcional
Este campo é obrigatório quando regiao for 1_regiao, 3_regiao, or 6_regiao. Ex: exemplo
tipo
string
Ex: exemplo
TRT - Certidão de Ações Trabalhistas (CEAT)
POST
/services/{serviceId}/available-formats
regiao
string
Não pode ser superior a 255 caracteres. Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
regiao
string
Não pode ser superior a 255 caracteres. Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 58036904225
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 43504518000175
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Adriana Martines Chaves
regiao
string
Não pode ser superior a 255 caracteres. Ex: exemplo
modelo
string
opcional
Não pode ser superior a 255 caracteres. Ex: exemplo
TSE - Certidão de Quitação Eleitoral
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Bia Barreto Verdugo Jr.
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sr. Sergio Juliano Galvão Filho
mae
string
opcional
Não pode ser superior a 255 caracteres. Ex: Sra. Yasmin Salazar Valdez
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1980-01-20
documento
string
Deve ter pelo menos 11 caracteres. Não pode ser superior a 12 caracteres. Ex: exemplo
TST - Certidão Negativa de Débitos Trabalhistas (CNDT)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 59274388144
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 59733217000153
Consulta - Cadastro Técnico Federal do IBAMA
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 64783711585
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 10903396000130
Consulta Certificado de Cadastro do Imóvel Rural (CCIR)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 26705692260
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 45539871000116
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Richard Santana
Consulta de Dados Cadastrais
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 44813104800
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 70662964000180
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Flávio Samuel Benez Sobrinho
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 557
Consulta de Processos COMPROT
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
buscar_por
string
Ex: cpf
cpfcnpjnumero-processo
cpf
string
opcional
Este campo é obrigatório quando buscar_por for cpf. Deve ser 11 caracteres. Ex: 23458678255
cnpj
string
opcional
Este campo é obrigatório quando buscar_por for cnpj. Deve ser 14 caracteres. Ex: 34737010000126
numero_processo
string
opcional
Este campo é obrigatório quando buscar_por for numero-processo. Não pode ser superior a 30 caracteres. Ex: exemplo
nome
string
opcional
Não pode ser superior a 255 caracteres. Ex: George de Oliveira Valdez Jr.
data_inicial
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1979-02-10
data_final
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data posterior ou igual a data_inicial. Deve ser uma data anterior ou igual a hoje. Ex: 1988-03-03
Consulta de Taxa de Incêndio
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cbmerj
string
opcional
Este campo é obrigatório quando nenhum de inscricao_imovel, cpf, and cnpj estiverem presentes. Não pode ser superior a 40 caracteres. Ex: exemplo
inscricao_imovel
string
opcional
Este campo é obrigatório quando nenhum de cbmerj, cpf, and cnpj estiverem presentes. Não pode ser superior a 40 caracteres. Ex: exemplo
cpf
string
opcional
Este campo é obrigatório quando nenhum de cbmerj, inscricao_imovel, and cnpj estiverem presentes. Deve ser 11 caracteres. Ex: 56507239232
cnpj
string
opcional
Este campo é obrigatório quando nenhum de cbmerj, inscricao_imovel, and cpf estiverem presentes. Deve ser 14 caracteres. Ex: 24165861000198
Consulta SICAF (Sistema de Cadastramento Unificado de Fornecedores)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 18430124217
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 76675024000102
Débitos e Multas
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
placa
string
opcional
Este campo é obrigatório quando chassi for not present. Ex: exemplo
chassi
string
opcional
Este campo é obrigatório quando placa for not present. Deve ser 17 caracteres. Ex: exemplo
Funcionamento Empresa (Anvisa)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 73355514000133
razao_social
string
opcional
Não pode ser superior a 500 caracteres. Ex: Domingues Comercial Ltda.
Mapa de Relacionamentos
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 44646757869
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 61296591000180
Pesquisa Cadastro Ambiental Rural (CAR)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
car
string
Deve atender a regex /\^[a-zA-Z][a-zA-Z]([a-zA-Z0-9]{39})\$/. Ex: exemplo
Pesquisa Central de Distribuição de Títulos de São Paulo - CDTSP
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
modalidade
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
modalidade
string
Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 06785031923
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 60917475000179
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Gabrielle Isabel Aranda Jr.
tipo
string
Ex: exemplo
modalidade
string
Ex: exemplo
descricao
string
Não pode ser superior a 1000 caracteres. Ex: exemplo
ano_inicial
integer
opcional
Deve ser entre 1900 e 2026. Ex: 1963
Pesquisa de Bens
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/services/{serviceId}/extra-informations
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 93284072497
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 45013737000187
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Liz Fonseca Perez
url_cartorio
string[]
Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo
string
Ex: exemplo
preferencia
string
opcional
Ex: Informar somente imóveis que seja proprietário
Informar somente imóveis que seja proprietárioInformar também imóveis já transferidos
data_base
string
opcional
Deve ser uma data válida no formato Y-m-d. Ex: 1973-01-30
Pesquisa de Casamento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
conjuge1
string
Não pode ser superior a 255 caracteres. Ex: exemplo
conjuge2
string
Não pode ser superior a 255 caracteres. Ex: exemplo
casamento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2017-10-06
cpf_algum_conjuges
string
Deve ser 11 caracteres. Ex: exemplo
Pesquisa de CPF por Nome
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
nome
string
Não pode ser superior a 255 caracteres. Ex: Eduarda Sanches Souza
Pesquisa de Dívida Ativa - Procuradoria Geral do Estado
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/services/{serviceId}/extra-informations
POST
/purchases
tipo
string
Ex: exemplo
inscricao
string
Ex: exemplo
Pesquisa de Empresa em Cartórios de Pessoa Jurídica
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 60361351143
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 11604646000102
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Hugo Pacheco Sobrinho
Pesquisa de Escritura
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 91283456222
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 00600599000102
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Ariana Dominato Soto
tipo
string
Ex: exemplo
Pesquisa de Escritura de Divórcio
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 52714328822
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Rodrigo Rangel Faro
Pesquisa de Indicadores de Atividade
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 05034579000127
Pesquisa de Inventário
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 28159024860
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 26789180000126
nome
string
Não pode ser superior a 255 caracteres. Ex: Sra. Caroline Stefany Barreto Jr.
Pesquisa de KYC e Compliance
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 35028792305
nome
string
Não pode ser superior a 255 caracteres. Ex: Sr. Roberto Bernardo Domingues
Pesquisa de Licenças - Vigilância Sanitária (SIVISA)
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 78873144000140
Pesquisa de Lista de Devedores PGFN
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 44209245194
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 05910588000134
nome
string
Não pode ser superior a 255 caracteres. Ex: Alonso Franco Filho
Pesquisa de Nascimento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 03838059026
nome
string
Não pode ser superior a 255 caracteres. Ex: Stephanie Madeira Neto
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1995-06-30
mae
string
Não pode ser superior a 255 caracteres. Ex: Lúcia de Arruda
pai
string
opcional
Não pode ser superior a 255 caracteres. Ex: Elias Caldeira Guerra Filho
Pesquisa de Óbito
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: simples
simplesexpandidacompleta
POST
/purchases
cpf
string
Ex: 33643873700
tipo
string
Ex: simples
simplesexpandidacompleta
Pesquisa de Participação Societária
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 99671857329
nome
string
Não pode ser superior a 255 caracteres. Ex: Sra. Rayane Heloise Ramires Filho
nascimento
string
opcional
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 1999-12-08
Pesquisa de Processos Judiciais
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
opcional
Este campo é obrigatório quando numero_processo for not present. Ex: fisica
fisicajuridica
numero_processo
string
opcional
Este campo é obrigatório quando tipo_pessoa for not present. Deve atender a regex /\^[0-9]+\$/. Não pode ser superior a 50 caracteres. Ex: exemplo
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 71984067184
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 80298462000176
nome
string
opcional
Este campo é obrigatório quando tipo_pessoa for present. Não pode ser superior a 255 caracteres. Ex: Sr. Erik Mendonça Ramos Jr.
pedido_origem_id
integer
opcional
Deve corresponder a um valor já cadastrado. Ex: 491
Pesquisa de Procuração
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 75814817518
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 88979845000111
nome
string
Não pode ser superior a 255 caracteres. Ex: William Serra Mendes
tipo
string
Ex: exemplo
Pesquisa de Propriedade de Aeronave
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 66226357908
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 66459979000179
nome
string
Não pode ser superior a 255 caracteres. Ex: Cezar Sales Alcantara Jr.
Pesquisa de Propriedade de Veículo
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 60750953900
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 88083547000149
nome
string
Não pode ser superior a 255 caracteres. Ex: Srta. Lilian Maísa Rodrigues Neto
Pesquisa de Protesto
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 46528272026
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 17180709000119
Pesquisa de Veículos
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: leilao
leilaopesquisa-completagravame
POST
/purchases
tipo
string
Ex: leilao
leilaopesquisa-completagravame
placa
string
Ex: exemplo
Pesquisa em Juntas Comerciais
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 41333357000179
razao_social
string
Não pode ser superior a 500 caracteres. Ex: de Oliveira e Urias
Pesquisa SERASA
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 48490617295
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 38551574000120
Receita Federal - CPF | CNPJ
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 17634901571
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 63653161000102
nascimento
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser uma data válida no formato Y-m-d. Ex: 2018-01-16
SINTEGRA - Consulta Pública Ao Cadastro de Contribuinte do Governo
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 92951950000110
SPU - Pesquisa de Imóveis da União
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 02149470683
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 99579869000108
TCU - Consulta Situação de Pessoa Jurídica
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cnpj
string
Deve ser 14 caracteres. Ex: 84212553000106
Acompanhamentos
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
tipo_processo
string
Ex: digital
digitalfisico
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Ata Notarial
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
arquivos
string[]
Consultas
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
tipo_processo
string
Ex: digital
digitalfisico
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Cópias
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Guias
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
tipo_processo
string
Ex: digital
digitalfisico
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Outras
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
arquivos
string[]
Prévia de Custas para Registros
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
descritivo_documento
string
opcional
Ex: exemplo
Protocolos
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
tipo_processo
string
Ex: digital
digitalfisico
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Registro de Imóveis
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
descritivo_documento
string
opcional
Ex: exemplo
Requerimentos
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
tipo_processo
string
Ex: digital
digitalfisico
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Retirada de Documentos
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
numero_processo
string
opcional
Ex: exemplo
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Serviços de Despachantes
POST
/services/{serviceId}/available-formats
POST
/services/{serviceId}/prices-shipping-info
POST
/services/{serviceId}/extras-prices-shipping-info
POST
/purchases
local_servico
string
Ex: exemplo
arquivos
string[]
mensagem
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
Extração de Dados
POST
/services/{serviceId}/prices-shipping-info
arquivos
object
POST
/purchases
modelo_ia_id
integer
O modelo de extração de dados desejado. Disponíveis podem ser obtidos em link Ex: 846
Ata Notarial - Lavratura em Tabelionato de Notas
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
tipo_servico
string
Ex: diligencia-presencial-do-tabeliao
diligencia-presencial-do-tabeliaoja-possuo-as-evidencias
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
local_servico
string
opcional
Este campo é obrigatório quando tipo_servico for diligencia-presencial-do-tabeliao. Não pode ser superior a 500 caracteres. Ex: exemplo
mensagem
string
Não pode ser superior a 500 caracteres. Ex: exemplo
tipo_servico
string
Ex: diligencia-presencial-do-tabeliao
diligencia-presencial-do-tabeliaoja-possuo-as-evidencias
arquivos
string[]
RGI - Registro em Cartório de Imóveis
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
arquivos
object[]
Um array com os arquivos
data_titulo
string
Deve ser uma data válida no formato Y-m-d. Ex: 1970-08-04
livro
string
opcional
Não pode ser superior a 5 caracteres. Ex: exemplo
pagina
string
opcional
Não pode ser superior a 3 caracteres. Ex: exemplo
assinantes
object[]
opcional
partes
array
opcional
Este campo é obrigatório quando tipo for escritura-publica. Quando informado deve existir ao menos 1 outorgante e 1 outorgado.
tipo
string
Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
arquivos[].caminho_arquivo
string
O caminho do arquivos enviado no endpoint de upload: link. Ex: exemplo
arquivos[].vai_registro
boolean
Indica se o arquivo deve ser registrado. Ex: true
arquivos[].requer_assinatura
boolean
Indica se o arquivo requer assinatura. Ex: true
assinantes[].cpf
string
Ex: 18164001651
assinantes[].email
string
Deve ser um endereço de e-mail válido. Ex: vinicius15@example.com
assinantes[].nome
string
Não pode ser superior a 255 caracteres. Ex: Stephanie Alcantara Toledo Sobrinho
partes[].documento
string
Ex: exemplo
partes[].email
string
Deve ser um endereço de e-mail válido. Ex: bonilha.alexa@example.org
partes[].nome
string
Não pode ser superior a 255 caracteres. Ex: Valentin Quintana Sobrinho
partes[].tipo
string
Ex: outorgante
outorganteoutorgado
RTD - Registro em Cartório de Títulos e Documentos
POST
/services/{serviceId}/available-formats
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/services/{serviceId}/prices-shipping-info
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
POST
/purchases
url_cartorio
string
A url do cartório. Disponíveis podem ser obtidos em link Ex: serventias-extrajudiciais-da-comarca-de-acrelandia-centro-acrelandia
arquivos
object[]
Um array com os arquivos
assinantes
object[]
opcional
Quando informado deve conter ao menos 1 item. Ex: exemplo
observacoes
string
opcional
Não pode ser superior a 500 caracteres. Ex: exemplo
arquivos[].caminho_arquivo
string
O caminho do arquivos enviado no endpoint de upload: link. Ex: exemplo
arquivos[].vai_registro
boolean
Indica se o arquivo deve ser registrado. Ex: true
arquivos[].requer_assinatura
boolean
Indica se o arquivo requer assinatura. Ex: true
assinantes[].cpf
string
Somente números. Ex: 94217980230
assinantes[].email
string
Deve ser um endereço de e-mail válido. Ex: tsouza@example.net
assinantes[].nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Mariana Norma Santacruz Sobrinho
Assinaturas para Documentos
POST
/services/{serviceId}/available-formats
tipo
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
tipo
string
Ex: exemplo
POST
/purchases
tipo
string
Ex: exemplo
arquivos
string[]
assinantes
string
Deve ter pelo menos 1 caracter. Ex: exemplo
assinantes[].cpf
string
Ex: 36666981405
assinantes[].email
string
Deve ser um endereço de e-mail válido. Ex: luan.valentin@example.net
assinantes[].nome
string
Não pode ser superior a 255 caracteres. Ex: Stephany Valdez Aguiar Neto
Certificado Digital
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
cpf
string
Deve ser 11 caracteres. Ex: 38787275503
nome
string
Não pode ser superior a 255 caracteres. Ex: Dr. Jorge Beltrão
nascimento
string
Deve ser uma data válida no formato Y-m-d. Deve ser uma data anterior ou igual a hoje. Ex: 2003-08-06
tipo
string
Ex: presencial
presencialtelepresencial
endereco_logradouro
string
opcional
Este campo é obrigatório quando tipo for presencial. Não pode ser superior a 120 caracteres. Ex: Largo Lorena
endereco_numero
string
opcional
Este campo é obrigatório quando tipo for presencial. Não pode ser superior a 8 caracteres. Ex: 41289
endereco_complemento
string
opcional
Não pode ser superior a 60 caracteres. Ex: Apto 12
endereco_cep
string
opcional
Este campo é obrigatório quando tipo for presencial. Deve ser 8 caracteres. Ex: 37342461
endereco_bairro
string
opcional
Este campo é obrigatório quando tipo for presencial. Não pode ser superior a 80 caracteres. Ex: Centro
endereco_cidade
string
opcional
Este campo é obrigatório quando tipo for presencial. Não pode ser superior a 140 caracteres. Ex: Flor do Leste
endereco_uf
string
opcional
Este campo é obrigatório quando tipo for presencial. Ex: MG
ACALAPAMBACEDFESGOMAMTMSMGPAPBPRPEPIRJRNRSRORRSCSPSETONS
email
string
Deve ser um endereço de e-mail válido. Não pode ser superior a 255 caracteres. Ex: usaraiva@example.net
telefone
string
Não pode ser superior a 15 caracteres. Ex: 84969751907
Certidão de Casamento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Imóvel - Matrícula
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Imóvel - Transcrição
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Nascimento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Óbito
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Dossiê CPF/CNPJ
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
tipo_pessoa
string
Ex: fisica
fisicajuridica
cpf
string
opcional
Este campo é obrigatório quando tipo_pessoa for fisica. Deve ser 11 caracteres. Ex: 53313011349
cnpj
string
opcional
Este campo é obrigatório quando tipo_pessoa for juridica. Deve ser 14 caracteres. Ex: 29897515000118
Certidão de Casamento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Escritura
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Certidão de Nascimento
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
CNH (Carteira Nacional de Habilitação)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
CNIS - Extrato de contribuição
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
CTPS (Carteira de Trabalho e Previdência Social)
POST
/services/{serviceId}/prices-shipping-info
POST
/purchases
Tradução e Apostilamento
POST
/services/{serviceId}/available-formats
servico
string
Ex: exemplo
POST
/services/{serviceId}/prices-shipping-info
servico
string
Ex: exemplo
POST
/purchases
servico
string
Ex: exemplo
traducao
string
opcional
Ex: exemplo
arquivo
string
Ex: exemplo
Exemplos
Extração de dados
Abaixo encontra-se um resumo com os passos para utilizar a extração de dados através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Obter o ID do modelo que será utilizado
Um modelo de extração de dados define as informações que serão extraídas do documento enviado.
Para identificar o modelo que será usado na extração é utilizado o ID do modelo.
O ID do modelo pode ser obtido chamando o endpoint de listagem de modelos, link
Caso você ainda não possua um modelo cadastrado, é possível criá-lo pela interface da aplicação, no app.cbrdoc.com.br ou através da API.
Mais informações sobre a criação do modelo pela API podem ser encontradas no link
3) Fazer o upload dos arquivos que deseja a extração de dados
Antes de efetuar a compra você vai enviar os arquivos que deseja extrair os dados.
Você pode enviar um ou múltiplos arquivos de uma vez, até um máximo de 50 arquivos e 70Mb. Guarde os caminhos retornados na reposta da chamada, eles serão usados para fechar a compra.
Mais informações sobre o envio dos arquivos podem ser encontradas no link
4) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado. Para facilitar a compreensão,
abaixo é fornecido um exemplo de payload para uma compra do serviço de extração de dados.
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Minha certidão de nascimento", // Nome deste item do carrinho
"detailed_service_data": {
"modelo_ia_id": 999, // O ID do modelo obtido no passo 2
"arquivo": "1234/yKAwE5FKrHTi5VtF1Zt5hOvG8MtRD4pxrNWrMrCC.pdf", // Caminho do arquivo obtido no passo 3
"formato": "email" // fixo
},
"service_id": 96 // fixo
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders"
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints,
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento,
"name": "Minha certidão de nascimento",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link. Se o status estiver
finished os dados extraídos estarão disponíveis em explorer_item.ai_data.questions.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345?append[]=explorer_item.ai_data
Retorno:
{
"status": "finished",
"explorer_item": {
"ai_data": {
"questions": [
{
"question": "Pergunta 1 do meu modelo",
"label_show_user": "Pergunta 1",
"order": 0,
"formatted_response": "Resposta da pergunta 1"
},
{
"question": "Pergunta 2 do meu modelo",
"label_show_user": "Pergunta 2",
"order": 1,
"formatted_response": "Resposta da pergunta 2"
}
]
}
},
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
RTD - Registro em Cartório de Títulos e Documentos
Abaixo encontra-se um resumo com os passos para utilizar o RTD - Registro em Cartório de Títulos e Documentos através da API:
*Disponível apenas para clientes pós pagos com contrato1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fazer o upload dos arquivos que são necessários para o registro
Antes de efetuar a compra você vai enviar os arquivos que são necessários para o registro.
Você pode enviar um ou múltiplos arquivos de uma vez, até um máximo de 50 arquivos e 70Mb. Guarde os caminhos retornados na reposta da chamada, eles serão usados para fechar a compra.
Mais informações sobre o envio dos arquivos podem ser encontradas no link
4) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado. Para facilitar a compreensão,
abaixo é fornecido um exemplo de payload para uma compra do serviço de RTD - Registro em Cartório de Títulos e Documentos.
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
// esse item é um exemplo de fluxo sem assinaturas
"name": "Meu registro sem assinaturas", // Nome deste item do carrinho
"detailed_service_data": {
"url_uf": "AL",
"url_cidade": "ARAPIRACA",
"url_cartorio": "alagoas-servicos-do-1-oficio-registro-de-imoveis-centro-arapiraca",
"formato": "email", // fixo
"arquivos": [ // é possível enviar múltiplos arquivos e definir quais vão para registro e quais são apenas complementares
{
"caminho_arquivo": "18146/LUyoPV1Rd1Qrz1Hmu1WkEfFzQFomdYHi0TLru0Zs.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": true,
"vai_registro": true
},
{
"caminho_arquivo": "18146/wlJc3bXHjoBnjysfCAN3zpDQVQJXKCCVP7OnpuYn.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": false,
"vai_registro": false
}
]
},
"service_id": 102 // fixo para esse serviço
},
{
// esse item é um exemplo de fluxo com assinaturas
"name": "Meu registro com assinaturas", // Nome deste item do carrinho
"detailed_service_data": {
"url_uf": "AL",
"url_cidade": "ARAPIRACA",
"url_cartorio": "alagoas-servicos-do-1-oficio-registro-de-imoveis-centro-arapiraca",
"formato": "email", // fixo
"assinantes": [
{
"cpf": "59151167794",
"email": "emaildapessoaquevaiassinar@teste.com",
"nome": "Nome da pessoa que vai assinar"
}
// caso deseje mais assinantes basta adicionar novos objetos no mesmo formato dentro do array "assinantes"
],
"arquivos": [ // é possível enviar múltiplos arquivos e definir quais vão para registro e quais são apenas complementares
{
"caminho_arquivo": "18146/LUyoPV1Rd1Qrz1Hmu1WkEfFzQFomdYHi0TLru0Zs.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": true,
"vai_registro": true
}
]
},
"service_id": 102 // fixo
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders". Podem ser de outros serviços.
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Meu registro sem assinaturas",
...outros dados do item da compra
},
{
"id": 12346, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089415, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Meu registro com assinaturas",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
RGI - Registro em Cartório de Imóveis
Abaixo encontra-se um resumo com os passos para utilizar o RGI - Registro em Cartório de Imóveis através da API:
*Disponível apenas para clientes pós pagos com contrato1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fazer o upload dos arquivos que são necessários para o registro
Antes de efetuar a compra você vai enviar os arquivos que são necessários para o registro.
Você pode enviar um ou múltiplos arquivos de uma vez, até um máximo de 50 arquivos e 70Mb. Guarde os caminhos retornados na reposta da chamada, eles serão usados para fechar a compra.
Mais informações sobre o envio dos arquivos podem ser encontradas no link
4) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado.
Alguns campos possuem valores dinâmicos e os valores disponíveis devem ser consultados no endpoint de informações extras link.
Um exemplo, é o campo tipo. Chamando o endpoint de informações extras:
POST https://api2.cbrdoc.com.br/services/104/categories/25/extra-informations
você vai receber um array com as informações extras deste serviço, algo nesse formato:
{
"tipos": [
{
"name": "Escritura pública",
"url": "escritura-publica"
},
{
"name": "Instrumento particular",
"url": "instrumento-particular"
},
{
"name": "Instrumento particular com força de Escritura Pública",
"url": "instrumento-particular-com-forca-de-escritura-publica"
},
{
"name": "Ordens Judiciais e Administrativas",
"url": "ordens-judiciais-e-administrativas"
},
{
"name": "Instrumento Particular de Cancelamento de Garantias",
"url": "instrumento-particular-de-cancelamento-de-garantias"
},
{
"name": "Requerimento averbação",
"url": "requerimento-averbacao"
},
{
"name": "Parcelamento do Solo/Loteamento",
"url": "parcelamento-do-solo-loteamento"
},
{
"name": "Incorporação/Especificação",
"url": "incorporacao-especificacao"
},
{
"name": "Retificação administrativa",
"url": "retificacao-administrativa"
},
{
"name": "Usucapião Extrajudicial e Judicial",
"url": "usucapiao-extrajudicial-e-judicial"
},
{
"name": "Reurb",
"url": "reurb"
}
]
}
Para facilitar a compreensão, abaixo é fornecido um exemplo de payload para uma compra do serviço de RGI - Registro em Cartório de Imóveis.
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
// esse item é um exemplo do tipo escritura
"name": "Meu registro de escritura", // Nome deste item do carrinho
"detailed_service_data": {
"tipo": "escritura-publica",
"livro": "1",
"pagina": "2",
"data_titulo": "2025-01-08",
"url_uf": "AP",
"url_cidade": "MACAPA",
"url_cartorio": "2-registro-de-imoveis-trem-macapa",
"formato": "email",
"arquivos": [ // é possível enviar múltiplos arquivos e definir quais vão para registro e quais são apenas complementares
{
"caminho_arquivo": "18146/LUyoPV1Rd1Qrz1Hmu1WkEfFzQFomdYHi0TLru0Zs.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": true,
"vai_registro": true
},
{
"caminho_arquivo": "18146/wlJc3bXHjoBnjysfCAN3zpDQVQJXKCCVP7OnpuYn.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": false,
"vai_registro": false
}
]
"partes": [ // necessário apenas em escrituras públicas
{
"nome": "Nome do outorgante",
"documento": "57408174800",
"email": "emailoutorgante@teste.com",
"tipo": "outorgante" // obrigatório ao menos 1 para o tipo escritura
},
{
"nome": "Nome do outorgado",
"documento": "22787854000100",
"email": "emailoutorgado@teste.com",
"tipo": "outorgado" // obrigatório ao menos 1 para o tipo escritura
}
],
"assinantes": [ // necessário apenas em fluxos com assinatura
{
"cpf": "57408174800",
"email": "emailpessoavaiassinar@teste.com",
"nome": "Nome da pessoa que vai assinar"
},
{
"cpf": "95530405274",
"email": "emailpessoavaiassinar2@teste.com",
"nome": "Nome da pessoa que vai assinar 2"
}
// caso deseje mais assinantes basta adicionar novos objetos no mesmo formato dentro do array "assinantes"
]
},
"service_id": 104 // fixo para esse serviço
},
{
// esse item é um exemplo de instrumento particular
"name": "Meu registro de instrumento particular", // Nome deste item do carrinho
"detailed_service_data": {
"tipo": "instrumento-particular",
"livro": "2",
"pagina": "3",
"data_titulo": "2025-01-01",
"url_uf": "CE",
"url_cidade": "ACARAPE",
"url_cartorio": "cartorio-de-notas-centro-acarape",
"formato": "email",
"arquivos": [ // é possível enviar múltiplos arquivos e definir quais vão para registro e quais são apenas complementares
{
"caminho_arquivo": "18146/LUyoPV1Rd1Qrz1Hmu1WkEfFzQFomdYHi0TLru0Zs.pdf", // Caminho do arquivo obtido no passo 2
"requer_assinatura": true,
"vai_registro": true
}
]
},
"service_id": 104 // fixo
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders". Podem ser de outros serviços.
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Meu registro de escritura",
...outros dados do item da compra
},
{
"id": 12346, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089415, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Meu registro de instrumento particular",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
Pesquisa de bens
Abaixo encontra-se um resumo com os passos para utilizar serviço de pesquisa de bens através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado.
Os campos de pesquisa de bens podem ser vistos em link.
Alguns campos possuem valores dinâmicos e os valores disponíveis devem ser consultados no endpoint de informações extras link.
Um exemplo, é o campo tipo. Chamando o endpoint de informações extras:
POST https://api2.cbrdoc.com.br/services/9/categories/14/extra-informations
você vai receber um array com as informações extras deste serviço, algo nesse formato:
{
"tipos": [
"completa",
"simpels
]
}
Para facilitar a compreensão, abaixo é fornecido um exemplo de payload para uma compra do serviço de pesquisa de bens:
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Nome da minha pesquisa de bens - CPF 589.3841.866-002",
"auto_purchase_certificate_from_result_positive": false,
"auto_purchase_certificate_from_result_negative": false,
"detailed_service_data": {
"cpf": "58984186600",
"nome": "João da Silva",
"preferencia": "Informar somente imóveis que seja proprietário", // Opções: Informar somente imóveis que seja proprietário ou Informar também imóveis já transferidos
"data_base": "2000-10-10",
"formato": "email",
"tipo": "completa",
"tipo_pessoa": "fisica",
"url_uf": "PR",
"url_cidade": "ALMIRANTE_TAMANDARE",
"url_cartorio": [
"servico-de-registro-de-imoveis-centro-almirante-tamandare"
]
},
"service_id": 9
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders". Podem ser de outros serviços.
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Nome da minha pesquisa de bens - CPF 589.3841.866-002",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
Certidão de junta comercial
Abaixo encontra-se um resumo com os passos para utilizar serviço de certidão de junta comercial através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado.
Os campos de certidão de junta comercial podem ser vistos em link.
Alguns campos possuem valores dinâmicos e os valores disponíveis devem ser consultados no endpoint de informações extras link.
Um exemplo, é o campo tipo. Chamando o endpoint de informações extras:
POST https://api2.cbrdoc.com.br/services/14/categories/9/extra-informations
você vai receber um array com as informações extras deste serviço, algo nesse formato:
{
"tipos": [
"simples",
"inteiroteor"
]
}
Para facilitar a compreensão, abaixo é fornecido um exemplo de payload para uma compra do serviço de certidão de junta comercial:
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Nome da minha certidão de junta comercial - CNPJ 73.438.512/0001-08",
"auto_purchase_certificate_from_result_positive": false,
"auto_purchase_certificate_from_result_negative": false,
"detailed_service_data": {
"cnpj": "73438512000108",
"razao_social": "Acme Inc.", // opcional
"tipo": "simples",
"url_uf": "PR",
"formato": "email"
},
"service_id": 14
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders". Podem ser de outros serviços.
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Nome da minha certidão de junta comercial - CNPJ 73.438.512/0001-08",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
Certidão de prévia de matrícula
Abaixo encontra-se um resumo com os passos para utilizar serviço de certidão de prévia de matrícula através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado.
Os campos de certidão de prévia de matrícula podem ser vistos em link.
Para facilitar a compreensão, abaixo é fornecido um exemplo de payload para uma compra do serviço de certidão de prévia de matrícula:
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Minha compra",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Minha prévia de matrícula - Matrícula 1234",
"auto_purchase_certificate_from_result_positive": false,
"auto_purchase_certificate_from_result_negative": false,
"detailed_service_data": {
"matricula": "1234",
"formato": "email",
"url_uf": "PR",
"url_cidade": "ALMIRANTE_TAMANDARE",
"url_cartorio": "servico-de-registro-de-imoveis-centro-almirante-tamandare"
},
"service_id": 55
}
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Minha prévia de matrícula - Matrícula 1234",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual)
Abaixo encontra-se um resumo com os passos para utilizar serviço de SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual) através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado.
Os campos de SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual) podem ser vistos em link.
Para facilitar a compreensão, abaixo é fornecido um exemplo de payload para uma compra do serviço de SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual):
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Nome da minha certidão - Sefaz CND Estadual - CNPJ 73.438.512/0001-08",
"auto_purchase_certificate_from_result_positive": false,
"auto_purchase_certificate_from_result_negative": false,
"detailed_service_data": {
"tipo_pessoa": "juridica",
"cnpj": "73438512000108",
"nome": "Acme Inc.",
"url_uf": "PR",
"formato": "email"
},
"service_id": 22
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders". Podem ser de outros serviços.
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento
"name": "Nome da minha SEFAZ - Certidão Negativa de Débitos Tributários Estaduais (CND Estadual) - CNPJ 73.438.512/0001-08",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345
Retorno:
{
"status": "finished",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
Validação de documentos
Abaixo encontra-se um resumo com os passos para utilizar a validação de documentos através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fazer o upload dos arquivos que deseja a validação
Antes de efetuar a compra você vai enviar o arquivo que deseja validar.
Você pode enviar um ou múltiplos arquivos de uma vez, até um máximo de 50 arquivos e 70Mb. Guarde os caminhos retornados na reposta da chamada, eles serão usados para fechar a compra.
Mais informações sobre o envio dos arquivos podem ser encontradas no link
3) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado. Para facilitar a compreensão,
abaixo é fornecido um exemplo de payload para uma compra do serviço de validação.
O service_id pode ser obtido na listagem de serviços link.
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Nome do meu carrinho de compras",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Minha validação", // Nome deste item do carrinho
"detailed_service_data": {
"arquivo": "1234/yKAwE5FKrHTi5VtF1Zt5hOvG8MtRD4pxrNWrMrCC.pdf", // Caminho do arquivo obtido no passo 2
"formato": "email" // fixo
},
"service_id": 150
},
{
"name": "Minha validação 2", // Nome deste item do carrinho
"detailed_service_data": {
"arquivo": "1234/1273Ti5VtF1Zt5hOvG8MtRD4pxrNWrMrCC.pdf", // Caminho do arquivo obtido no passo 2
"formato": "email" // fixo
},
"service_id": 151
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders"
]
}
O retorno será nesse formato:
{
"name": "Nome do meu carrinho de compras",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints,
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento,
"name": "Minha validação",
...outros dados do item da compra
},
{
"id": 12346, //ID interno usado na API, usado nos endpoints,
"backoffice_code": 2089415, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento,
"name": "Minha validação 2",
...outros dados do item da compra
}
]
}
Para acompanhar o andamento do seu pedido basta fazer uma chamada para o endpoint de visualização de item de compra, detalhes no link. Se o status estiver
finished o campo result vai indicar se o documento é válido.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12345 Retorno positivo (válido): { "status": "finished", "result": "positive", // ou "negative" para inválido "result_details": [], // em caso de "negativa" aqui vai ter os detalhes do erro, em alguns serviços ...outros dados do item da compra }OU// endpoint => GET https://api2.cbrdoc.com.br/orders/12345 Retorno negativo (inválido): { "status": "finished", "result": "negative", "result_details": [ // serviço de validação de CNH e Carteira de trabalho apresentam detalhes da validação "validacoes": [ "-904" => "Valida se a idade na primeira habilitação é menor que 18 anos (inválido)", "-912" => "Verifica se a data de nascimento é posterior à data de expedição (inconsistência)", ] ], ...outros dados do item da compra }
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)
Atualização de Certidões
A atualização de certidões permite solicitar uma via atualizada de uma certidão que você já possui, apenas enviando o arquivo da certidão antiga. Os dados necessários para o novo pedido (estado, cidade, cartório, nomes, datas, etc.) são extraídos automaticamente do arquivo enviado.
Abaixo encontra-se um resumo com os passos para utilizar a atualização de certidões através da API:
1) Obter um token através do endpoint de login
O primeiro passo é obter um token que será usado nas próximas requisições.
O token é necessário para identificar o usuário que está fazendo a requisição para API e é necessário em praticamente todos os endpoints da API.
Mais informações sobre a obtenção do token podem ser encontradas no link
2) Fazer o upload das certidões que deseja atualizar
Antes de efetuar a compra você vai enviar os arquivos das certidões que deseja atualizar.
Você pode enviar um ou múltiplos arquivos de uma vez, até um máximo de 50 arquivos e 70Mb. Guarde os caminhos retornados na reposta da chamada, eles serão usados para fechar a compra.
Mais informações sobre o envio dos arquivos podem ser encontradas no link
3) Fechar a compra
O próximo passo é efetivamente fechar a compra.
Como está detalhado na documentação da compra, no link, o campo detailed_service_data
de cada objeto do array de orders varia conforme o serviço utilizado. Para facilitar a compreensão,
abaixo é fornecido um exemplo de payload para uma compra com a atualização de três certidões: casamento, nascimento e óbito.
Cada tipo de certidão possui um serviço de atualização próprio. O service_id pode ser obtido na listagem de serviços link.
O arquivo enviado deve corresponder ao tipo de certidão do serviço escolhido (ex.: uma certidão de casamento no serviço de atualização de certidão de casamento).
// endpoint => POST https://api2.cbrdoc.com.br/purchases
{
"name": "Atualização de certidões",
"groups_ids": [],
"post_payment": false, // Fixo false se sua conta é pós paga através de contrato
"orders": [
{
"name": "Atualizar certidão de casamento", // Nome deste item do carrinho
"detailed_service_data": {
"arquivo": "1234/yKAwE5FKrHTi5VtF1Zt5hOvG8MtRD4pxrNWrMrCC.pdf", // Caminho do arquivo obtido no passo 2
"formato": "email" // fixo
},
"service_id": 138 // Atualização de Certidão de Casamento
},
{
"name": "Atualizar certidão de nascimento", // Nome deste item do carrinho
"detailed_service_data": {
"arquivo": "1234/aB3dE5FKrHTi5VtF1Zt5hOvG8MtRD4pxrNWrMrDD.pdf", // Caminho do arquivo obtido no passo 2
"formato": "email" // fixo
},
"service_id": 136 // Atualização de Certidão de Nascimento
},
{
"name": "Atualizar certidão de óbito", // Nome deste item do carrinho
"detailed_service_data": {
"arquivo": "1234/zX9yE5FKrHTi5VtF1Zt5hOvG8MtRD4pxrNWrMrEE.pdf", // Caminho do arquivo obtido no passo 2
"formato": "email" // fixo
},
"service_id": 137 // Atualização de Certidão de Óbito
}
// caso deseje inserir mais itens no seu carrinho, você pode adicionar mais objetos no array de "orders"
]
}
O retorno será nesse formato:
{
"id": 5000,
"name": "Atualização de certidões",
...outros dados da compra,
"orders": [
{
"id": 12345, //ID interno usado na API, usado nos endpoints,
"backoffice_code": 2089414, // código de identificação do item da compra apresentado na interface e usado para comunicação com o atendimento,
"name": "Atualizar certidão de casamento",
"status": "processing",
...outros dados do item da compra
},
{
"id": 12346,
"backoffice_code": 2089415,
"name": "Atualizar certidão de nascimento",
"status": "processing",
...outros dados do item da compra
},
{
"id": 12347,
"backoffice_code": 2089416,
"name": "Atualizar certidão de óbito",
"status": "processing",
...outros dados do item da compra
}
]
}
4) Acompanhar a atualização
Após o fechamento da compra, os dados de cada certidão enviada são extraídos automaticamente do arquivo. Esse processo é assíncrono e cada item de atualização pode ter um dos dois resultados abaixo.
Extração com sucesso:
Um novo item é criado automaticamente dentro da mesma compra (carrinho), para o serviço da certidão correspondente
(ex.: a atualização de certidão de casamento gera um novo item de Certidão de Casamento), já preenchido com os dados extraídos e
com o arquivo da certidão antiga anexado. O item de atualização original passa para o status finished.
O novo item tem o campo originated_from_id preenchido com o ID do item de atualização que o originou. A partir daí,
basta acompanhar o novo item como qualquer outra certidão.
// endpoint => GET https://api2.cbrdoc.com.br/purchases/5000?include=orders
Retorno:
{
"id": 5000,
"name": "Atualização de certidões",
"orders": [
{
"id": 12345,
"name": "Atualizar certidão de casamento",
"status": "finished", // item de atualização finalizado
...outros dados do item da compra
},
...demais itens de atualização,
{
"id": 12348, // novo item criado a partir dos dados extraídos
"backoffice_code": 2089417,
"name": "Certidão de Casamento - Maria da Silva", // nome gerado automaticamente
"status": "processing",
"originated_from_id": 12345, // ID do item de atualização que originou este item
...outros dados do item da compra
}
]
}
Também é possível buscar diretamente o item gerado a partir de um item de atualização, através do filtro originated_from_id
na listagem de itens de compra, detalhes no link:
// endpoint => GET https://api2.cbrdoc.com.br/orders?filter[originated_from_id]=12345
Falha na extração:
Caso não seja possível extrair os dados necessários do arquivo (arquivo ilegível, dados obrigatórios ausentes, cartório não identificado, ou o arquivo enviado não corresponde ao tipo de certidão do serviço escolhido), nenhum novo item é criado e o item de atualização é encerrado:
- Contas pós-pagas: o item passa para o status
canceled; - Contas pré-pagas: o item passa para o status
waiting-action.
Em ambos os casos o motivo é informado no campo status_details.
// endpoint => GET https://api2.cbrdoc.com.br/orders/12346
Retorno:
{
"id": 12346,
"name": "Atualizar certidão de nascimento",
"status": "canceled",
"status_details": "Não foi possível extrair as informações do documento para solicitar a atualização da sua certidão, mesmo após múltiplas tentativas. Isso pode ter ocorrido devido a problemas no arquivo. Seu pedido foi cancelado. Por favor, entre em contato com o suporte para mais informações.",
...outros dados do item da compra
}
Também é possível configurar um webhook que é chamado sempre que um item de compra sofrer alteração de status. Será feito um POST para a url informada. Os dados enviados no payload vão no mesmo formato do retorno exemplificado acima. O endpoint do webhook pode ser público ou ter alguma das seguintes autenticações: - Autenticação básica (Basic Auth) - Token de acesso (Bearer Token)