Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Existing Ledger Entry line (id)
Body
application/json
Response
Returns the Ledger Entry line with attached Analytical Categories
curl --request PUT \
--url https://app.pennylane.com/api/external/v2/ledger_entry_lines/{ledger_entry_line_id}/categories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": 394,
"weight": "0.6575"
}
]'
{
"ledger_entry_line": {
"id": 2,
"label": "Employee - remuneration and contributions",
"categories": [
{
"id": 421,
"label": "HR - Salaries",
"weight": "0.25",
"category_group": {
"id": 229
},
"analytical_code": "CODE123",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}
}
This endpoint replaces already existing categories on the Ledger Entry line with new values. If an empty array of categories_ids is provided, it will remove all categories from the Ledger Entry line.
ℹ️ This endpoint requires one of the following scopes:
ledger
curl --request PUT \
--url https://app.pennylane.com/api/external/v2/ledger_entry_lines/{ledger_entry_line_id}/categories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": 394,
"weight": "0.6575"
}
]'
{
"ledger_entry_line": {
"id": 2,
"label": "Employee - remuneration and contributions",
"categories": [
{
"id": 421,
"label": "HR - Salaries",
"weight": "0.25",
"category_group": {
"id": 229
},
"analytical_code": "CODE123",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Existing Ledger Entry line (id)
Returns the Ledger Entry line with attached Analytical Categories
Show child attributes
Was this page helpful?