Revert Invoice to Draft
Toegang
Lid van de organisatie met dit recht:
invoices:book
Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.
Reverts a booked invoice to DRAFT state, preserving the original displayId for rebooking. By default, only if no notifications have been sent, not on Peppol, and within one week. With force: true, super admins may bypass those rules. With ledgerBalanceOverride, users with invoicing:override-ledger-balance may take a customer's balance on a guarded ledger below zero; the motivation is recorded on the timeline.
ApiKeyAuthx-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
id*stringapplication/json- body
force?booleanledgerBalanceOverride?OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//invoices/string/revert-to-draft' \ -H 'Content-Type: application/json' \ -d '{}'nullRecalculate Invoice POST
Recalculates all amounts for an invoice including subtotal, tax, total, amount paid, and outstanding amount. Also updates payment status.
Restore Invoice Version POST
Restores the invoice lines and product actions captured on an earlier revert-to-draft event. If the invoice is currently booked it is reverted to draft first (with force: true, super admins may bypass the revert window).