Trial balance
curl --request GET \
--url https://staging-api.usetyms.com/v1/adam/reports/trial-balance \
--header 'X-API-Key: <api-key>'import requests
url = "https://staging-api.usetyms.com/v1/adam/reports/trial-balance"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://staging-api.usetyms.com/v1/adam/reports/trial-balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Trial balance generated successfully",
"data": {
"headings": [
{
"label": "Revenue",
"level": 1
}
],
"content": [
{
"label": "Sales",
"amount": 12500.5,
"children": []
}
],
"totals": {
"net_income": 4200
}
},
"meta": {
"from": "2024-01-01",
"to": "2024-03-31"
}
}Reports
Trial balance
GET
/
reports
/
trial-balance
Trial balance
curl --request GET \
--url https://staging-api.usetyms.com/v1/adam/reports/trial-balance \
--header 'X-API-Key: <api-key>'import requests
url = "https://staging-api.usetyms.com/v1/adam/reports/trial-balance"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://staging-api.usetyms.com/v1/adam/reports/trial-balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Trial balance generated successfully",
"data": {
"headings": [
{
"label": "Revenue",
"level": 1
}
],
"content": [
{
"label": "Sales",
"amount": 12500.5,
"children": []
}
],
"totals": {
"net_income": 4200
}
},
"meta": {
"from": "2024-01-01",
"to": "2024-03-31"
}
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Query Parameters
Response
200 - application/json
Trial balance for the range