LedgerLou Docs is optimized for desktop.

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

Journal

Reverse intent (counter-booking)

Reverses an entire booking intent by automatically creating a new reversal intent with mirrored booking lines. By default, the reversal is booked with today's date in the current open period. With posting_mode=original_period the reversal date is set to the original booking date, provided the original period is open.

POST /v1/journal/reverse
Authorization
Authorization string header required API key in the format ll_.... Pass as a Bearer token.
Request Body
intent_id uuid required ID of the intent to reverse
reason string optional Reversal reason
posting_mode current_period | original_period optional Default: current_period. original_period books into the open original period.
Responses
200
Success
400
INVALID_INPUT Required fields are missing or values do not match the expected format.
409
ALREADY_REVERSED The intent has already been reversed by a counter-booking.
404
NOT_FOUND The requested resource was not found.
400
PERIOD_LOCKED The affected period is locked and will not accept new bookings.
POST /v1/journal/reverse
cURL
-cmd">curl --request -method">POST -punct">\
  --url 'https://api.ledgerlou.de/v1/journal/reverse' -punct">\
  --header 'Authorization: Bearer ll_your_key' -punct">\
  --header 'Content-Type: application/json' -punct">\
  --data '{
  "intent_id": "3fa85f64-...",
  "reason": "Falsche Kontierung",
  "posting_mode": "original_period"
}'
200 Response
JSON
{
  "reversal_intent_id": "<string>",
  "original_intent_id": "<string>",
  "event_count": 1
}