Ledger Accounts
Update a ledger account
Changed onUpdate a ledger account
ℹ️ This endpoint requires the following scope: ledger_accounts:all
put/api/external/v2/ledger_accounts/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/ledger_accounts/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: ledger_accounts:all
Path parameters
idinteger required
Example:234
Ledger Account ID
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.
Request body
Example request
{
"label": "Capital",
"letterable": true
}Response
Returns the updated ledger account
Example response
{
"id": 124,
"number": "512",
"label": "Secondary Account",
"vat_rate": "any",
"country_alpha2": "FR",
"enabled": true,
"type": "custom",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}Changes
- info
added the new optional
headerrequest parameterX-Company-Id
- info