List ledger accounts
Changed on⚠️ This endpoint is deprecated. Use List Ledger Accounts from the Company API v2 instead. Your firm token can call it for any company of your firm through the X-Company-Id header. Learn how to use your firm token with the Company API v2.
List ledger accounts
ℹ️ This endpoint requires one of the following scopes: ledger_accounts:all, ledger_accounts:readonly
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/firm/v1/companies/{company_id}/ledger_accounts
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: ledger_accounts:all, ledger_accounts:readonly
Path parameters
Existing company identifier (id)
Query parameters
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 100.
You can choose to filter items on specific fields. Available fields and values:
- id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- number: start_with, eq, in
- enabled: eq
Response
Returns a list of ledger accounts
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 124,
"number": "512",
"label": "Secondary Account",
"vat_rate": "any",
"country_alpha2": "FR",
"enabled": true,
"archived_at": "2023-08-30T10:08:08.146343Z"
}
]
}Changes
- info
endpoint deprecated
- info