List bank accounts
Changed on⚠️ This endpoint is deprecated. Use List bank 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 bank_accounts
ℹ️ This endpoint requires one of the following scopes: bank_accounts:all, bank_accounts:readonly
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/firm/v1/companies/{company_id}/bank_accounts
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: bank_accounts:all, bank_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 sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id
Response
A list of bank accounts
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 42,
"name": "Main account",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z",
"bank_establishment": {
"id": 42
},
"journal": {
"id": 42,
"url": "https://app.pennylane.com/api/external/firm/v1/companies/234/journals/7"
},
"ledger_account": {
"id": 42,
"url": "https://app.pennylane.com/api/external/firm/v1/companies/234/ledger_accounts/8"
}
}
]
}Changes
- warning
added the new
VESenum value to the//response property for the response status - info
endpoint deprecated
- warning