O Livro Caixa do período.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/cash-book \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/cash-book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://economy.synxbr.com/api/v1/reports/cash-book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/reports/cash-book",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"opening_balance": "<string>",
"totals": {
"inflow": "1234.56",
"outflow": "1234.56",
"net": "1234.56",
"closing_balance": "<string>",
"count": 123
},
"rows": [
{
"date": "2023-12-25",
"bank_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"description": "<string>",
"document": "<string>",
"classification": "<string>",
"counterpart": "<string>",
"origin": "<string>",
"branch": "<string>",
"cost_center": "<string>",
"inflow": "1234.56",
"outflow": "1234.56",
"balance": "<string>",
"pending_reconciliation": true
}
],
"truncated": true,
"notes": [
"<string>"
]
},
"meta": {
"request_id": "<string>",
"installments": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"generated_titles": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}O Livro Caixa do período.
As linhas do extrato que contam no saldo, com o que cada uma virou, e os lançamentos que não passaram por conta bancária. Com bank_account_id, só o livro daquela conta. O período é de até 12 meses; sem informar, vale do primeiro dia do mês até hoje.
Permissão exigida: Visualizar extratos bancários (bank.statement.view).
GET
/
reports
/
cash-book
O Livro Caixa do período.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/cash-book \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/cash-book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://economy.synxbr.com/api/v1/reports/cash-book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://economy.synxbr.com/api/v1/reports/cash-book",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"opening_balance": "<string>",
"totals": {
"inflow": "1234.56",
"outflow": "1234.56",
"net": "1234.56",
"closing_balance": "<string>",
"count": 123
},
"rows": [
{
"date": "2023-12-25",
"bank_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"description": "<string>",
"document": "<string>",
"classification": "<string>",
"counterpart": "<string>",
"origin": "<string>",
"branch": "<string>",
"cost_center": "<string>",
"inflow": "1234.56",
"outflow": "1234.56",
"balance": "<string>",
"pending_reconciliation": true
}
],
"truncated": true,
"notes": [
"<string>"
]
},
"meta": {
"request_id": "<string>",
"installments": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"generated_titles": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "<string>",
"fields": {},
"required_permissions": [
"<string>"
]
}
}