Get the balance sheet
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"date": "2023-12-25",
"compare_date": "2023-12-25",
"assets": [
{
"key": "<string>",
"label": "<string>",
"level": 123,
"amount": "121.00",
"compare_amount": "<string>",
"accounts": [
{
"account": "<string>",
"name": "<string>",
"amount": "121.00"
}
]
}
],
"equity_liabilities": [
{
"key": "<string>",
"label": "<string>",
"level": 123,
"amount": "121.00",
"compare_amount": "<string>",
"accounts": [
{
"account": "<string>",
"name": "<string>",
"amount": "121.00"
}
]
}
],
"total_assets": "121.00",
"total_equity_liabilities": "121.00"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "Review and approve in the authenticated web application",
"code": "person_required",
"request_id": "req_01JAB3K9X2"
}Accounting
Get the balance sheet
The balance sheet at a date, in the PGC’s model, optionally beside another date.
GET
/
companies
/
{company_id}
/
reports
/
balance-sheet
Get the balance sheet
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/reports/balance-sheet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"date": "2023-12-25",
"compare_date": "2023-12-25",
"assets": [
{
"key": "<string>",
"label": "<string>",
"level": 123,
"amount": "121.00",
"compare_amount": "<string>",
"accounts": [
{
"account": "<string>",
"name": "<string>",
"amount": "121.00"
}
]
}
],
"equity_liabilities": [
{
"key": "<string>",
"label": "<string>",
"level": 123,
"amount": "121.00",
"compare_amount": "<string>",
"accounts": [
{
"account": "<string>",
"name": "<string>",
"amount": "121.00"
}
]
}
],
"total_assets": "121.00",
"total_equity_liabilities": "121.00"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "Review and approve in the authenticated web application",
"code": "person_required",
"request_id": "req_01JAB3K9X2"
}Live capability. Melso runs this in production today. Partner keys reach it once your partner account is enabled. See Availability.
Authorizations
Your partner secret key, mk_live_… for real companies or mk_test_…
for test companies. Keep it on your servers. See
Authentication.
Path Parameters
The company's ID. Every company-scoped call works in exactly this company.
Response
The balance sheet.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
An amount in euros as a decimal string with two decimals, such as "121.00".
Pattern:
^-?[0-9]+\.[0-9]{2}$Example:
"121.00"
An amount in euros as a decimal string with two decimals, such as "121.00".
Pattern:
^-?[0-9]+\.[0-9]{2}$Example:
"121.00"