Cancel a company's plan invoice
Changed onCancels a plan invoice awaiting payment, the same as Cancel invoice in the company plan dialog: a recurring invoice stops recurring, the Stripe invoice is voided, and the company can be assigned or invoiced again. Canceling an invoice that is already canceled returns it unchanged. Requires an Idempotency-Key header and plans.manage.
Request
- Base URL: https://api.cavuno.com/v1
- URL: https://api.cavuno.com/v1/companies/{id}/plan-invoices/{invoiceId}/cancel
- Auth: HTTP bearer
Path parameters
The company's opaque object id: the id field returned by the company endpoints (e.g. p17xq4c2b9r5gz3e8j0r6t4k7m2n9d5w). This is NOT the slug or display name; passing a slug like antler returns 404. To look up a company by name or slug, use GET /v1/companies, POST /v1/companies/search, or POST /v1/companies/find-or-create and read the returned id.
The plan invoice ID returned by the list or create call.
Response
The plan invoice after the cancel.
Changes
- info
endpoint added
- info