Refund a paid invoice
Marks a paid invoice as refunded (record-keeping only; no payment gateway call). Sets status to refunded, records refundedBy and dateRefunded, and unwinds linked side-effects: ProductPayment becomes refunded; event registration EventAttends are canceled and ticket capacity is released; user fee validity is recomputed from remaining paid payments; company membership is rolled back from history. Adds a REFUNDED badge to the invoice HTML. Does not send email. Requires ADMIN_TENANT permission.
Authorizations
Server-to-server authentication. Generate a token in the admin UI at
Settings → Developers → API Access. Send the raw token in the
Api-Token header — there is no Bearer prefix.
Tokens can be marked read-only at creation time, in which case the API
rejects any non-GET request with 403 Forbidden.
Path Parameters
Invoice identifier
Body
The updated Invoice resource
The body is of type object.
Response
Invoice resource updated
"/api/v1/product_prices/1"

