Update ledger account
curl --request PATCH \
--url https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"sequence_number": 123,
"parent_account_id": "<string>",
"is_clearing_account": true,
"asset_type": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
sequence_number: 123,
parent_account_id: '<string>',
is_clearing_account: true,
asset_type: '<string>'
})
};
fetch('https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id}"
payload = {
"name": "<string>",
"sequence_number": 123,
"parent_account_id": "<string>",
"is_clearing_account": True,
"asset_type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "lac_507f1f77bcf86cd799439011",
"name": "Cash",
"type": "Asset",
"normal_balance": "debit",
"sequence_number": 1000,
"parent_account_id": null,
"is_postable": true,
"is_clearing_account": false,
"is_archived": false,
"archived_at": null,
"asset_type": null,
"created_at": "2026-08-31T12:00:00Z"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid path, query or request body.",
"request_id": "req_example"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication is required.",
"request_id": "req_example"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Insufficient access to organization",
"request_id": "req_example"
}
}{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found",
"request_id": "req_example"
}
}{
"error": {
"code": "CONFLICT",
"message": "The resource state does not allow this operation.",
"request_id": "req_example"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 30s.",
"request_id": "req_example"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error",
"request_id": "req_example"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "Service unavailable.",
"request_id": "req_example"
}
}Ledger Accounts
Update ledger account
Updates the details and type of a ledger account, or moves it to another parent. Entendre checks ownership and prevents cycles.
PATCH
/
v1
/
ledger-accounts
/
{ledger_account_id}
Update ledger account
curl --request PATCH \
--url https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"sequence_number": 123,
"parent_account_id": "<string>",
"is_clearing_account": true,
"asset_type": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
sequence_number: 123,
parent_account_id: '<string>',
is_clearing_account: true,
asset_type: '<string>'
})
};
fetch('https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.entendre.finance/v1/ledger-accounts/{ledger_account_id}"
payload = {
"name": "<string>",
"sequence_number": 123,
"parent_account_id": "<string>",
"is_clearing_account": True,
"asset_type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "lac_507f1f77bcf86cd799439011",
"name": "Cash",
"type": "Asset",
"normal_balance": "debit",
"sequence_number": 1000,
"parent_account_id": null,
"is_postable": true,
"is_clearing_account": false,
"is_archived": false,
"archived_at": null,
"asset_type": null,
"created_at": "2026-08-31T12:00:00Z"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid path, query or request body.",
"request_id": "req_example"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication is required.",
"request_id": "req_example"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Insufficient access to organization",
"request_id": "req_example"
}
}{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Resource not found",
"request_id": "req_example"
}
}{
"error": {
"code": "CONFLICT",
"message": "The resource state does not allow this operation.",
"request_id": "req_example"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Retry after 30s.",
"request_id": "req_example"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error",
"request_id": "req_example"
}
}{
"error": {
"code": "SERVICE_UNAVAILABLE",
"message": "Service unavailable.",
"request_id": "req_example"
}
}Authorizations
Your organization API key. Some operations also need a key that is associated with a user; their pages say so.
Path Parameters
ID of the ledger account.
Minimum string length:
1Body
application/json
New display name.
New chart-of-accounts sequence number.
Parent account ID (lac_…), or null to move the account to the top level. Entendre prevents cycles and checks the depth.
Marks the account as a clearing or suspense account.
Token or currency symbol the account tracks (such as ETH, USD).
Ledger account type.
Available options:
asset, liability, equity, income, expense Response
The request succeeded.
Show child attributes
Show child attributes