Produto BaaS (parceiro). Scope: baas.onboarding-legal-persons.write. Campos obrigatorios do schema para concluir KYC e abertura de conta PJ. Guia: documentacao tecnica.
stringAssinatura HMAC-SHA256 da requisição (hex).
stringTimestamp Unix (segundos, UTC) usado na assinatura.
stringNonce único por requisição (anti-replay).
stringstringstringRequer Bearer token e assinatura HMAC obrigatórios.
Scope: baas.onboarding-legal-persons.write.
| Header | Obrigatório | Descrição |
|---|---|---|
Authorization | Sim | Bearer {{access_token}} |
Accept | Sim | application/json |
X-Signature | Sim | Assinatura HMAC |
X-Timestamp | Sim | Timestamp da assinatura |
X-Nonce | Sim | Nonce único por requisição |
| Parâmetro | Descrição |
|---|---|
proposalId | ID da proposta |
personId | ID da pessoa jurídica |
Todos os campos abaixo são obrigatórios para enviar o cadastro à análise KYC e abertura de conta.
| Campo | Obrigatório | Descrição |
|---|---|---|
business_name | Sim | Razão social, máx. 255 |
trading_name | Sim | Nome fantasia, máx. 255 |
business_email | Sim | E-mail válido |
contact_number | Sim | 8 a 11 dígitos |
monthly_revenue | Sim | Numérico, mín. 0 |
company_type | Sim | LTDA, MEI, ME ou SA |
accepted_terms_at | Sim | Y-m-d H:i:s |
device.os_version_name | Sim | SO do dispositivo |
email_verification_code | Sim | OTP de business_email (do GET imediato) |
address.zip_code | Sim | CEP, 8 dígitos |
address.street | Sim | máx. 255 |
address.number | Sim | máx. 255 |
address.city | Sim | Cidade |
address.neighborhood | Sim | Bairro |
address.state | Sim | UF, 2 letras |
address.complement | Não | Complemento |
files | Sim | Mín. 2; tipos conforme company_type |
owners[] | Sim | Responsável com endereço, PEP e files[] (identidade + selfie) |
owners[].files | Sim | Mín. 3 por sócio (mesma regra PF) |
device.os_name, device.os_version, device.ip_address, device.ip_address_local, device.engine_name, device.engine_version, device.platform_model, device.platform_vendor, device.firebase_token, device.latitude, device.longitude | Sim | Objeto device completo: Device |
Documentos por company_type:
company_type | files[].type obrigatórios |
|---|---|
LTDA | social_contract, proof_address |
MEI | proof_microentrepreneur, proof_address |
ME | proof_association, proof_address |
SA | proof_board_election, proof_address |
Não envie valid_documents no body.
| Código | Corpo | Causa |
|---|---|---|
404 | Company not found | PJ ou customer inexistente |
422 | valid_documents | Conjunto de arquivos não bate com company_type ou campo obrigatório ausente |
curl --request PATCH \
--url 'https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Nonce: {{nonce}}' \
--header 'X-Signature: {{signature}}' \
--data '{"contact_number":"11987654321","business_name":"Loja Exemplo LTDA","trading_name":"Loja Exemplo","business_email":"[email protected]","monthly_revenue":50000,"accepted_terms_at":"2025-01-15 10:30:00","notifications_enabled":false,"document":"43587980000107","password":"SenhaExemplo123","password_confirmation":"SenhaExemplo123","company_type":"LTDA","email_verification_code":"123456","device":{"os_version_name":"Android 14","os_name":"Android","os_version":"14.0.0","ip_address":"203.0.113.10","ip_address_local":"192.168.1.5","engine_name":"Exemplo Smartphone","engine_version":"exemplo-device-id-001","platform_model":"SM-S911B","platform_vendor":"Samsung","firebase_token":"exemplo-firebase-token","latitude":-23.5505,"longitude":-46.6333},"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","complement":"Sala 1","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"social_contract","path":"data:application/pdf;base64,exemplo-ficticio"},{"type":"proof_address","path":"data:image/jpeg;base64,exemplo-ficticio"}],"owners":[{"full_name":"Joao Recebedor Exemplo","social_name":"Joao Exemplo","email":"[email protected]","phone":"11976543210","document":"52998224725","birth_date":"1985-03-15","type":"partner","is_political_exposed":false,"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","complement":"Sala 1","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"document","path":"data:image/jpeg;base64,exemplo-ficticio","side":"front"},{"type":"document","path":"data:image/jpeg;base64,exemplo-ficticio","side":"back"},{"type":"selfie","path":"data:image/jpeg;base64,exemplo-ficticio"}]}]}'
const axios = require("axios");
const data = {
"contact_number": "11987654321",
"business_name": "Loja Exemplo LTDA",
"trading_name": "Loja Exemplo",
"business_email": "[email protected]",
"monthly_revenue": 50000,
"accepted_terms_at": "2025-01-15 10:30:00",
"notifications_enabled": false,
"document": "43587980000107",
"password": "SenhaExemplo123",
"password_confirmation": "SenhaExemplo123",
"company_type": "LTDA",
"email_verification_code": "123456",
"device": {
"os_version_name": "Android 14",
"os_name": "Android",
"os_version": "14.0.0",
"ip_address": "203.0.113.10",
"ip_address_local": "192.168.1.5",
"engine_name": "Exemplo Smartphone",
"engine_version": "exemplo-device-id-001",
"platform_model": "SM-S911B",
"platform_vendor": "Samsung",
"firebase_token": "exemplo-firebase-token",
"latitude": -23.5505,
"longitude": -46.6333
},
"address": {
"zip_code": "01310100",
"street": "Avenida Exemplo",
"number": "1000",
"complement": "Sala 1",
"city": "Sao Paulo",
"neighborhood": "Bela Vista",
"state": "SP"
},
"files": [
{
"type": "social_contract",
"path": "data:application/pdf;base64,exemplo-ficticio"
},
{
"type": "proof_address",
"path": "data:image/jpeg;base64,exemplo-ficticio"
}
],
"owners": [
{
"full_name": "Joao Recebedor Exemplo",
"social_name": "Joao Exemplo",
"email": "[email protected]",
"phone": "11976543210",
"document": "52998224725",
"birth_date": "1985-03-15",
"type": "partner",
"is_political_exposed": false,
"address": {
"zip_code": "01310100",
"street": "Avenida Exemplo",
"number": "1000",
"complement": "Sala 1",
"city": "Sao Paulo",
"neighborhood": "Bela Vista",
"state": "SP"
},
"files": [
{
"type": "document",
"path": "data:image/jpeg;base64,exemplo-ficticio",
"side": "front"
},
{
"type": "document",
"path": "data:image/jpeg;base64,exemplo-ficticio",
"side": "back"
},
{
"type": "selfie",
"path": "data:image/jpeg;base64,exemplo-ficticio"
}
]
}
]
};
axios({
method: "patch",
url: "https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Bearer {{access_token}}",
"X-Timestamp": "{{timestamp}}",
"X-Nonce": "{{nonce}}",
"X-Signature": "{{signature}}",
},
data,
})
.then((response) => console.log(JSON.stringify(response.data)))
.catch((error) => console.log(error.response?.data || error.message));
import json
import requests
url = "https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269"
payload = {
"contact_number": "11987654321",
"business_name": "Loja Exemplo LTDA",
"trading_name": "Loja Exemplo",
"business_email": "[email protected]",
"monthly_revenue": 50000,
"accepted_terms_at": "2025-01-15 10:30:00",
"notifications_enabled": False,
"document": "43587980000107",
"password": "SenhaExemplo123",
"password_confirmation": "SenhaExemplo123",
"company_type": "LTDA",
"email_verification_code": "123456",
"device": {
"os_version_name": "Android 14",
"os_name": "Android",
"os_version": "14.0.0",
"ip_address": "203.0.113.10",
"ip_address_local": "192.168.1.5",
"engine_name": "Exemplo Smartphone",
"engine_version": "exemplo-device-id-001",
"platform_model": "SM-S911B",
"platform_vendor": "Samsung",
"firebase_token": "exemplo-firebase-token",
"latitude": -23.5505,
"longitude": -46.6333
},
"address": {
"zip_code": "01310100",
"street": "Avenida Exemplo",
"number": "1000",
"complement": "Sala 1",
"city": "Sao Paulo",
"neighborhood": "Bela Vista",
"state": "SP"
},
"files": [
{
"type": "social_contract",
"path": "data:application/pdf;base64,exemplo-ficticio"
},
{
"type": "proof_address",
"path": "data:image/jpeg;base64,exemplo-ficticio"
}
],
"owners": [
{
"full_name": "Joao Recebedor Exemplo",
"social_name": "Joao Exemplo",
"email": "[email protected]",
"phone": "11976543210",
"document": "52998224725",
"birth_date": "1985-03-15",
"type": "partner",
"is_political_exposed": False,
"address": {
"zip_code": "01310100",
"street": "Avenida Exemplo",
"number": "1000",
"complement": "Sala 1",
"city": "Sao Paulo",
"neighborhood": "Bela Vista",
"state": "SP"
},
"files": [
{
"type": "document",
"path": "data:image/jpeg;base64,exemplo-ficticio",
"side": "front"
},
{
"type": "document",
"path": "data:image/jpeg;base64,exemplo-ficticio",
"side": "back"
},
{
"type": "selfie",
"path": "data:image/jpeg;base64,exemplo-ficticio"
}
]
}
]
}
headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {{access_token}}",
"X-Timestamp": "{{timestamp}}",
"X-Nonce": "{{nonce}}",
"X-Signature": "{{signature}}",
}
response = requests.patch(url, headers=headers, data=json.dumps(payload))
print(response.text)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS => '{"contact_number":"11987654321","business_name":"Loja Exemplo LTDA","trading_name":"Loja Exemplo","business_email":"[email protected]","monthly_revenue":50000,"accepted_terms_at":"2025-01-15 10:30:00","notifications_enabled":false,"document":"43587980000107","password":"SenhaExemplo123","password_confirmation":"SenhaExemplo123","company_type":"LTDA","email_verification_code":"123456","device":{"os_version_name":"Android 14","os_name":"Android","os_version":"14.0.0","ip_address":"203.0.113.10","ip_address_local":"192.168.1.5","engine_name":"Exemplo Smartphone","engine_version":"exemplo-device-id-001","platform_model":"SM-S911B","platform_vendor":"Samsung","firebase_token":"exemplo-firebase-token","latitude":-23.5505,"longitude":-46.6333},"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","complement":"Sala 1","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"social_contract","path":"data:application/pdf;base64,exemplo-ficticio"},{"type":"proof_address","path":"data:image/jpeg;base64,exemplo-ficticio"}],"owners":[{"full_name":"Joao Recebedor Exemplo","social_name":"Joao Exemplo","email":"[email protected]","phone":"11976543210","document":"52998224725","birth_date":"1985-03-15","type":"partner","is_political_exposed":false,"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","complement":"Sala 1","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"document","path":"data:image/jpeg;base64,exemplo-ficticio","side":"front"},{"type":"document","path":"data:image/jpeg;base64,exemplo-ficticio","side":"back"},{"type":"selfie","path":"data:image/jpeg;base64,exemplo-ficticio"}]}]}',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'Accept: application/json',
'Authorization: Bearer {{access_token}}',
'X-Timestamp: {{timestamp}}',
'X-Nonce: {{nonce}}',
'X-Signature: {{signature}}',
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"id": "269",
"document": "43587980000107",
"status": "completed",
"business_name": "Loja Exemplo LTDA",
"trading_name": "Loja Exemplo",
"business_email": "[email protected]",
"contact_number": "11987654321",
"company_type": "LTDA",
"monthly_revenue": 50000,
"accepted_terms_at": "2025-01-15 10:30:00",
"notifications_enabled": false,
"updated_at": "2025-01-15T12:20:00Z"
}
curl --request PATCH \
--url 'https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Nonce: {{nonce}}' \
--header 'X-Signature: {{signature}}' \
--data '{"contact_number":"11987654321","business_name":"Loja Exemplo LTDA","trading_name":"Loja Exemplo","business_email":"[email protected]","monthly_revenue":50000,"accepted_terms_at":"2025-01-15 10:30:00","company_type":"MEI","device":{"os_version_name":"Android 14"},"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"proof_microentrepreneur","path":"data:application/pdf;base64,exemplo-ficticio"},{"type":"proof_address","path":"data:image/jpeg;base64,exemplo-ficticio"}]}'
curl --request PATCH \
--url 'https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Nonce: {{nonce}}' \
--header 'X-Signature: {{signature}}' \
--data '{"contact_number":"11987654321","business_name":"Loja Exemplo LTDA","trading_name":"Loja Exemplo","business_email":"[email protected]","monthly_revenue":50000,"accepted_terms_at":"2025-01-15 10:30:00","company_type":"ME","device":{"os_version_name":"Android 14"},"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"proof_association","path":"data:application/pdf;base64,exemplo-ficticio"},{"type":"proof_address","path":"data:image/jpeg;base64,exemplo-ficticio"}]}'
curl --request PATCH \
--url 'https://api-h.nuvende.com.br/api/v2/baas/onboardings/352/legal-persons/269' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Nonce: {{nonce}}' \
--header 'X-Signature: {{signature}}' \
--data '{"contact_number":"11987654321","business_name":"Loja Exemplo LTDA","trading_name":"Loja Exemplo","business_email":"[email protected]","monthly_revenue":50000,"accepted_terms_at":"2025-01-15 10:30:00","company_type":"SA","device":{"os_version_name":"Android 14"},"address":{"zip_code":"01310100","street":"Avenida Exemplo","number":"1000","city":"Sao Paulo","neighborhood":"Bela Vista","state":"SP"},"files":[{"type":"proof_board_election","path":"data:application/pdf;base64,exemplo-ficticio"},{"type":"proof_address","path":"data:image/jpeg;base64,exemplo-ficticio"}]}'
{
"message": "Company not found"
}
{
"message": "Invalid documents from company type"
}