Payment groups

Assign Payment Group to Invoice

POST
/orgs/{organizationId}/payment-groups/{id}/assign-to-invoice

Bulk-assigns all member payments to a BOOKED invoice in one operation. Each payment receives the invoice's customerId and a description derived from the invoice displayId; PaymentUpdatedEvent is emitted per payment so existing handlers (Mollie metadata sync, invoice payment recalc, payment report sync) run as usual. The group is marked ASSIGNED.

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

Response Body

Payment group marked ASSIGNED; member payments linked to the invoice.

application/json
  1. response
curl -X POST 'https://api.tillor.eu/orgs/string/payment-groups/string/assign-to-invoice' \  -H 'Content-Type: application/json' \  -d '{  "invoiceId": "string"}'
null