LedgerLou Docs is optimized for desktop.

Please open this page on a device with a wider screen.

Config

Update a tax code

Updates label, tax rate, tax accounts or active status of an existing tax code.

PATCH /v1/tax-codes/:code
Authorization
Authorization string header required API key in the format ll_.... Pass as a Bearer token.
Query Parameters
code string required Tax code to update
Request Body
label string optional New label
description string | null optional New description or null to remove
rate number optional New tax rate
vat_account string optional New tax account
self_assess_account string | null optional New offsetting account, or null to remove self-assessment
is_active boolean optional Active status of the code
Responses
200
Success
400
INVALID_INPUT Required fields are missing or values do not match the expected format.
400
NO_CHANGES
404
TAX_CODE_NOT_FOUND
PATCH /v1/tax-codes/:code
cURL
-cmd">curl --request -method">PATCH -punct">\
  --url 'https://api.ledgerlou.de/v1/tax-codes/:code' -punct">\
  --header 'Authorization: Bearer ll_your_key' -punct">\
  --header 'Content-Type: application/json' -punct">\
  --data '{
  "label": "Reverse Charge 19% (EU)",
  "is_active": false
}'
200 Response
JSON
{
  "code": "<string>",
  "label": "<string>",
  "is_active": true
}