Produto BaaS (titular). Requer Bearer JWT do login da conta e assinatura HMAC obrigatória. Scope: baas.accounts.write. Guia: documentação técnica.
stringAssinatura HMAC-SHA256 da requisição (hex).
stringTimestamp Unix (segundos, UTC) usado na assinatura.
stringNonce único por requisição (anti-replay).
stringRequer Bearer JWT do login da conta e assinatura HMAC obrigatórios.
Scope: baas.accounts.write.
Envie X-Signature, X-Timestamp e X-Nonce em todo pedido assinado. Veja Autenticação do parceiro (HMAC).
| 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 |
| Campo | Tipo | Descrição |
|---|---|---|
actual_limit | integer | Novo limite em centavos (0 a 9999999999) |
type | integer | 0 PF diurno, 1 PF noturno, 4 PJ diário, 5 Pix automático, 6 Pix agendado |
Um POST altera um type por vez. 422 se type inválido para a conta ou actual_limit fora do intervalo.
| Código | Descrição |
|---|---|
| 200 | OK |
| 201 | Recurso criado |
| 400 | Parâmetros inválidos |
| 401 | Token ou HMAC inválido |
| 403 | Scope ausente |
| 404 | Não encontrado |
| 422 | Validação ou regra de negócio |
| 500 | Erro interno |
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{
"actual_limit": 500000,
"type": 1
}'
const axios = require("axios");
const data = {
actual_limit: 500000,
type: 1,
};
axios({
method: "post",
url: "https://api-h.nuvende.com.br/api/v2/baas/accounts/limits",
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/accounts/limits"
payload = {
"actual_limit": 500000,
"type": 1,
}
headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer {{access_token}}",
"X-Timestamp": "{{timestamp}}",
"X-Nonce": "{{nonce}}",
"X-Signature": "{{signature}}",
}
response = requests.post(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/accounts/limits',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'Accept: application/json',
'Authorization: Bearer {{access_token}}',
'X-Timestamp: {{timestamp}}',
'X-Nonce: {{nonce}}',
'X-Signature: {{signature}}',
],
CURLOPT_POSTFIELDS => '{"actual_limit":500000,"type":1}',
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{
"type": "natural_nighttime_limit",
"actual_limit": 500000,
"updated_at": "2025-01-15T10:00:00Z"
}
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":500000,"type":0}'
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":200000,"type":1}'
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":500000,"type":4}'
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":100000,"type":5}'
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":100000,"type":6}'
curl --request POST \
--url 'https://api-h.nuvende.com.br/api/v2/baas/accounts/limits' \
--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 '{"actual_limit":0,"type":0}'
{
"actual_limit": ["The actual limit must be an integer."],
"type": ["The selected type is invalid."]
}