Invoices

Move Invoice to Another Customer

POST
/orgs/{organizationId}/invoices/{id}/move-to-customer

Relocates an invoice to a different customer: updates the invoice, linked payments, meter consumption batches linked to the invoice, and invoice comments that referred to the previous customer. For booked invoices, queues a job to export the invoice to the installed accounting integration. Blocked when a Peppol document id is set.

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
targetCustomerId*string

Response Body

OK

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