O Fluxo de Caixa de um mês: o movimento de cada dia e o saldo projetado.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/cash-flow \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/cash-flow', 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-flow"
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-flow",
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": {
"month": "<string>",
"today": "2023-12-25",
"days": [
{
"date": "2023-12-25",
"inflow_expected": "1234.56",
"inflow_realized": "1234.56",
"outflow_expected": "1234.56",
"outflow_realized": "1234.56",
"count": 123,
"balance": "<string>",
"is_projected": true
}
],
"totals": {
"inflow_expected": "1234.56",
"inflow_realized": "1234.56",
"outflow_expected": "1234.56",
"outflow_realized": "1234.56"
},
"balance": {
"today": "<string>",
"projected_days": 123,
"projected_end": "<string>",
"first_negative_date": "2023-12-25",
"lowest_date": "2023-12-25",
"lowest": "<string>"
},
"next_days": {
"inflow": "1234.56",
"inflow_count": 123,
"outflow": "1234.56",
"outflow_count": 123,
"card_invoices": "1234.56",
"card_invoice_count": 123,
"end_date": "2023-12-25"
},
"overdue": {
"inflow": "1234.56",
"inflow_count": 123,
"outflow": "1234.56",
"outflow_count": 123,
"card_invoices": "1234.56",
"card_invoice_count": 123
}
},
"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 Fluxo de Caixa de um mês: o movimento de cada dia e o saldo projetado.
O saldo vem do extrato. Depois de hoje ele é projeção: as contas em aberto e as faturas de cartão em aberto, no vencimento. O que venceu e continua em aberto entra no primeiro dia projetado.
Permissão exigida: Visualizar fluxo de caixa (financial.cash_flow.view).
GET
/
reports
/
cash-flow
O Fluxo de Caixa de um mês: o movimento de cada dia e o saldo projetado.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/cash-flow \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/cash-flow', 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-flow"
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-flow",
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": {
"month": "<string>",
"today": "2023-12-25",
"days": [
{
"date": "2023-12-25",
"inflow_expected": "1234.56",
"inflow_realized": "1234.56",
"outflow_expected": "1234.56",
"outflow_realized": "1234.56",
"count": 123,
"balance": "<string>",
"is_projected": true
}
],
"totals": {
"inflow_expected": "1234.56",
"inflow_realized": "1234.56",
"outflow_expected": "1234.56",
"outflow_realized": "1234.56"
},
"balance": {
"today": "<string>",
"projected_days": 123,
"projected_end": "<string>",
"first_negative_date": "2023-12-25",
"lowest_date": "2023-12-25",
"lowest": "<string>"
},
"next_days": {
"inflow": "1234.56",
"inflow_count": 123,
"outflow": "1234.56",
"outflow_count": 123,
"card_invoices": "1234.56",
"card_invoice_count": 123,
"end_date": "2023-12-25"
},
"overdue": {
"inflow": "1234.56",
"inflow_count": 123,
"outflow": "1234.56",
"outflow_count": 123,
"card_invoices": "1234.56",
"card_invoice_count": 123
}
},
"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>"
]
}
}