LedgerLou Docs is optimized for desktop.

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

Payables

Approve review case

Atomically approves a review case: creates the incoming invoice, posts the corresponding journal intent and marks the case as `approved`. The request body is empty. The review case must have a vendor and at least one line item. Duplicate detection runs; approving a suspected duplicate requires resolving the duplicate hint beforehand via PATCH.

POST /v1/invoice-review-cases/:id/approve
Authorization
Authorization string header required API key in the format ll_.... Pass as a Bearer token.
Responses
200
Success
400
INVALID_INPUT Required fields are missing or values do not match the expected format.
404
NOT_FOUND The requested resource was not found.
409
ALREADY_APPROVED
409
ALREADY_REJECTED
400
VENDOR_REQUIRED
400
NOT_AN_INVOICE
400
NO_LINE_ITEMS
409
DUPLICATE_SUSPECTED A similar booking has already been posted. Use skip_duplicate_check: true to create another one.
400
ACCOUNT_NOT_FOUND The specified expense or revenue account does not exist in the chart of accounts.
400
INVALID_TAX_CODE
400
BALANCE_MISMATCH
400
PERIOD_LOCKED The affected period is locked and will not accept new bookings.
POST /v1/invoice-review-cases/:id/approve
cURL
-cmd">curl --request -method">POST -punct">\
  --url 'https://api.ledgerlou.de/v1/invoice-review-cases/:id/approve' -punct">\
  --header 'Authorization: Bearer ll_your_key'
200 Response
JSON
{
  "reviewCaseId": "<string>",
  "intentId": "<string>",
  "invoiceId": "<string>"
}