Invoice a company for a plan
Changed onSells a membership plan to a company by invoice, the same as Generate invoice in the company plan dialog. Issues a Stripe invoice on the board's connected account, due in 30 days, and returns its hostedInvoiceUrl. Cavuno does not send the invoice itself; share the link with the employer. The plan is assigned to the company when the invoice is paid. The plan's own price and, for a subscription plan, its interval set the terms; for a plan without a price, send amountCents and currency. Send billingInterval to make the invoice recur. A company holds one membership at a time, so a company with an active membership or another membership invoice awaiting payment gets 409 company_plan_membership_taken. Requires an Idempotency-Key header: a retry with the same key returns the first response and never issues a second invoice. Requires plans.manage.
Request
- Base URL: https://api.cavuno.com/v1
- URL: https://api.cavuno.com/v1/companies/{id}/plan-invoices
- 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.
Request body
Response
The issued plan invoice.
Changes
- info
endpoint added
- info