Assign a plan to a company
Changed onGives a company a membership plan at no charge, the same as Assign in the company plan dialog. The plan must be an active membership plan. A company holds one membership at a time: assigning while it has an active membership, or a membership invoice awaiting payment, returns 409 company_plan_membership_taken. To charge for the plan, create a plan invoice instead. Accepts an optional Idempotency-Key header. Requires plans.manage.
Request
- Base URL: https://api.cavuno.com/v1
- URL: https://api.cavuno.com/v1/companies/{id}/plan-assignments
- 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 new plan assignment.
Changes
- info
endpoint added
- info