Generate balance sheet
POST
/firm-partners/workspace/reports/balance-sheetGenerates a balance sheet as of a date.
Filters are query parameters only. Required: endDate (YYYY-MM-DD).
HMAC signature only
Headers
count-workspace-iduuidrequiredUUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.
Query parameters
endDatedaterequiredAs-of date for the balance sheet.
startDatedateoptionalPrior-period comparison anchor when provided.
currencystringoptionalReport currency. Defaults to workspace currency.
transactionStatusenumoptionalFilter transactions by review/reconciliation state.
One of: all, reviewed, unreviewed, reconciled, unreconciled
accountUuidsstringoptionalComma-separated account UUIDs to include.
tagUuidsstringoptionalComma-separated tag UUIDs to filter by.
Responses
200Balance sheet report generated. `data.categorized` holds `assets`, `equity`, and `liabilities`, each with a `total` and its account rows.400Missing endDate or invalid filters.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. Troubleshoot404No workspace exists with the `count-workspace-id` UUID.429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). TroubleshootPOST
https://api.getcount.com/firm-partners/workspace/reports/balance-sheetRequest
import crypto from 'node:crypto';
const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;
const method = 'POST';
const signingPath = '/workspace/reports/balance-sheet';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';
const bodyHash = '';
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');
const response = await fetch(`${BASE_URL}/firm-partners/workspace/reports/balance-sheet`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
},
});
console.log(await response.json());Response · 200
{
"status": "success",
"message": "Success on generating balance sheet report.",
"data": {
"categorized": {
"assets": {
"total": 42000,
"accounts": [
{
"total": 39500,
"account": {
"id": 1187,
"name": "Business Checking",
"type": "Assets",
"accountNumber": "1000",
"originalName": "Business Checking",
"systemCreated": false,
"counterpartyTeamId": null,
"parentAccountName": null,
"parentAccountNumber": null,
"subType": {
"id": 1,
"name": "Cash and Bank",
"type": "Assets",
"code": "CASH_AND_BANK"
}
}
},
{
"total": 2500,
"account": {
"id": 1188,
"name": "Accounts Receivable",
"type": "Assets",
"accountNumber": "1200",
"originalName": "Accounts Receivable",
"systemCreated": true,
"counterpartyTeamId": null,
"parentAccountName": null,
"parentAccountNumber": null,
"subType": {
"id": 2,
"name": "Accounts Receivable",
"type": "Assets",
"code": "ACCOUNTS_RECEIVABLE"
}
}
}
]
},
"equity": {
"total": 41100,
"accounts": [
{
"total": 8100,
"account": {
"id": "synthetic-retained-earnings",
"name": "Retained Earnings (through Dec 31, 2025)",
"type": "Equity",
"accountNumber": null,
"subType": {
"name": "Retained Earnings",
"code": "RETAINED_EARNINGS",
"type": "Equity"
},
"parentAccountName": null,
"parentAccountNumber": null
},
"dateRange": {
"startDate": "1990-01-01",
"endDate": "2025-12-31"
}
},
{
"total": 33000,
"account": {
"id": "synthetic-current-year-earnings",
"name": "Current Year Earnings (Jan 01, 2026 – Mar 31, 2026)",
"type": "Equity",
"accountNumber": null,
"subType": {
"name": "Retained Earnings",
"code": "RETAINED_EARNINGS",
"type": "Equity"
},
"parentAccountName": null,
"parentAccountNumber": null
},
"dateRange": {
"startDate": "2026-01-01",
"endDate": "2026-03-31"
}
}
]
},
"liabilities": {
"total": 900,
"accounts": [
{
"total": 900,
"account": {
"id": 1203,
"name": "Accounts Payable",
"type": "Liabilities",
"accountNumber": "2000",
"originalName": "Accounts Payable",
"systemCreated": true,
"counterpartyTeamId": null,
"parentAccountName": null,
"parentAccountNumber": null,
"subType": {
"id": 13,
"name": "Accounts Payable",
"type": "Liabilities",
"code": "ACCOUNTS_PAYABLE"
}
}
}
]
}
},
"filters": {
"endDate": "2026-03-31",
"currency": "USD",
"transactionStatus": "all"
},
"meta": {
"fyStart": "2026-01-01",
"prevFyEnd": "2025-12-31"
}
}
}