Skip to Content
Invoices

Restore Invoice Version

Accesso

Membro dell’organizzazione con questo permesso:

  • invoices:book

Una chiave API con scope deve avere il permesso anche tra i suoi scope.

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
Example Request
curl -X POST 'https://api.tillor.eu/orgs//invoices/string/restore-version' \  -H 'Content-Type: application/json' \  -d '{  "eventLogId": "string"}'
Example Response
null