As contas em aberto por contraparte e faixa de atraso, na posição de hoje.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/aging \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/aging', 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/aging"
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/aging",
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": {
"kind": "payable",
"as_of": "2023-12-25",
"rows": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tax_id": "<string>",
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"total": "1234.56",
"count": 123
}
],
"others": {
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tax_id": "<string>",
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"total": "1234.56",
"count": 123
},
"summary": {
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"counts": {
"current": 123,
"days_1_30": 123,
"days_31_60": 123,
"days_61_90": 123,
"days_over_90": 123
},
"total": "1234.56",
"count": 123,
"overdue_amount": "1234.56",
"overdue_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>"
]
}
}As contas em aberto por contraparte e faixa de atraso, na posição de hoje.
Conta parcial entra pelo que falta pagar ou receber.
Permissão exigida: Visualizar aging de títulos (reports.aging.view).
GET
/
reports
/
aging
As contas em aberto por contraparte e faixa de atraso, na posição de hoje.
curl --request GET \
--url https://economy.synxbr.com/api/v1/reports/aging \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://economy.synxbr.com/api/v1/reports/aging', 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/aging"
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/aging",
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": {
"kind": "payable",
"as_of": "2023-12-25",
"rows": [
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tax_id": "<string>",
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"total": "1234.56",
"count": 123
}
],
"others": {
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tax_id": "<string>",
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"total": "1234.56",
"count": 123
},
"summary": {
"amounts": {
"current": "1234.56",
"days_1_30": "1234.56",
"days_31_60": "1234.56",
"days_61_90": "1234.56",
"days_over_90": "1234.56"
},
"counts": {
"current": 123,
"days_1_30": 123,
"days_31_60": 123,
"days_61_90": 123,
"days_over_90": 123
},
"total": "1234.56",
"count": 123,
"overdue_amount": "1234.56",
"overdue_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>"
]
}
}