Get the trial balance
Changed onThis endpoint returns the trial balance of the current company for the given period.
ℹ️ This endpoint requires the following scope: trial_balance:readonly
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/trial_balance
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: trial_balance:readonly
Query parameters
The start of the period you want the trial balance for.
The end of the period you want the trial balance for.
Whether to include auxiliary accounts or not.
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 1000.
Headers
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Response
Returns a list of balances grouped by ledger accounts.
Example response
{
"items": [
{
"number": "512",
"formatted_number": "51200000",
"label": "Capital souscrit - appelé, versé",
"debits": "45353.95",
"credits": "2343.05"
}
],
"has_more": true
}Changes
- info
added the new optional
headerrequest parameterX-Company-Id
- info