Invoices

Restore Invoice Version

POST
/orgs/{organizationId}/invoices/{id}/restore-version

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).

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

id*string

Request Body

application/json
  1. body
eventLogId*string
force?boolean

Response Body

OK

application/json
  1. response
curl -X POST 'https://api.tillor.eu/orgs/string/invoices/string/restore-version' \  -H 'Content-Type: application/json' \  -d '{  "eventLogId": "string"}'
null