Skip to Content
Invoices

Move Invoice to Another Customer

Access

Member of the organization with this permission:

  • invoicing:correct

An API key with scopes also needs the permission among its scopes.

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