Invoices
Recalculate Invoice
Dostęp
Członek organizacji z tym uprawnieniem:
invoices:write
Klucz API z zakresami potrzebuje też tego uprawnienia w swoich zakresach.
POST
Recalculates all amounts for an invoice including subtotal, tax, total, amount paid, and outstanding amount. Also updates payment status.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
id*stringOK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//invoices/string/recalculate'Example Response
nullReverse Invoice POST
Creates a new draft invoice with reversed type (credit note becomes invoice, invoice becomes credit note) and negated amounts.
Revert Invoice to Draft POST
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.