O DRE do período.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/income-statement \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/income-statement', 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/income-statement"
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/income-statement",
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"
},
"regime": "competence",
"rows": [
{
"kind": "section",
"level": 123,
"group": "<string>",
"label": "<string>",
"category": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subcategory": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "1234.56",
"share_of_net_revenue": "<string>"
}
],
"totals": {
"revenues": "1234.56",
"expenses": "1234.56",
"net_revenue": "1234.56",
"result": "1234.56",
"excluded": "1234.56"
},
"margins": {
"gross": "<string>",
"operating": "<string>",
"net": "<string>"
},
"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 DRE do período.
A classificação de cada linha é a do plano de contas da empresa (income_statement_group). Sem informar o período, vale do primeiro dia do mês até hoje.
Permissão exigida: Visualizar DRE (reports.dre.view).
GET
/
reports
/
income-statement
O DRE do período.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/income-statement \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/income-statement', 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/income-statement"
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/income-statement",
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"
},
"regime": "competence",
"rows": [
{
"kind": "section",
"level": 123,
"group": "<string>",
"label": "<string>",
"category": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subcategory": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "1234.56",
"share_of_net_revenue": "<string>"
}
],
"totals": {
"revenues": "1234.56",
"expenses": "1234.56",
"net_revenue": "1234.56",
"result": "1234.56",
"excluded": "1234.56"
},
"margins": {
"gross": "<string>",
"operating": "<string>",
"net": "<string>"
},
"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>"
]
}
}