Bank accounts
Retrieve a bank account
Changed onRetrieve a bank account
ℹ️ This endpoint requires one of the following scopes: bank_accounts:all, bank_accounts:readonly
get/api/external/v2/bank_accounts/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/bank_accounts/{id}
- 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
idinteger required
Headers
X-Company-Idstring
Example:12345
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
A bank account
Example response
{
"id": 42,
"name": "Main account",
"balance": "100.15",
"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/v2/journals/7"
},
"ledger_account": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/ledger_accounts/8"
}
}Changes
- warning
added the new
VESenum value to theresponse property for the response status - info
added the new optional
headerrequest parameterX-Company-Id
- warning