Add-ons
An add-on is granted on top of an entitlement that already has a plan; an add-on is never the base grant. It packages two things together:
- a suite — which suite’s catalog it may add features from;
- feature choices — which catalog features are included, with any value overrides.
An add-on moves through Draft → Published → Archived; only a published add-on can be
granted, and only a published add-on gives its features to the entitlements that hold it.
Archived is final. An add-on can be deleted only while it’s a draft that no entitlement or
offer refers to; archive any other.
Layer onto an existing plan
Section titled “Layer onto an existing plan”Grant an add-on to an entitlement and its feature choices layer on top of whatever the entitlement’s own plan already grants — no re-picking the base plan per customer. When you resolve “what does this customer have right now”, active add-on grants overlay the entitlement’s base.
To see every grant across all customers, open Grow → Add-on grants. It lists the customer, the add-on, when the grant starts and expires, its status and the campaign it ran under, and filters by active, scheduled or ended. Add-on definitions stay under Catalog → Add-ons.
You grant an add-on from that page too; Plans and add-ons has the steps.
Build one through the API
Section titled “Build one through the API”In the admin portal you pick an add-on’s features on its Editor tab. Through the REST API it takes two steps:
- Create the add-on with
POST /api/v1/provision/admin/usage-plans/add-ons: its suite, code, name and, if you like, itsfeatureValues. - Attach each feature with
POST /api/v1/provision/admin/usage-plans/add-ons/{addOnId}/features/{featureCatalogId}.
A feature value only sets the value of a feature the add-on carries; it doesn’t add the feature. The create request has no list of features, and one sent with it is ignored. An add-on with no features can’t be published.
Keep selling an add-on while your plans move on
Section titled “Keep selling an add-on while your plans move on”An add-on overlays the suite itself, not one version of its plans. A published plan set is never edited in place — an edit lands on a draft revision, and publishing that revision archives the previous one — and the add-on stays grantable across all of them: an entitlement on the older revision and one on the newer revision can both hold the same add-on grant.
An add-on can also aim a feature choice at named plans only — “these extra seats apply on
Pro”. Plans are matched by name, so Pro in the new revision is the same Pro.
Change a published add-on
Section titled “Change a published add-on”A published add-on isn’t edited in place, the same as a plan set. Changing a published add-on makes a draft with the same code and name, and the changes go into that draft. Publishing the draft replaces the add-on:
- The add-on that was published is archived. The draft is now the published add-on under that code.
- New grants, and new Stripe checkouts for the add-on’s code, get the new values.
- Customers who already hold the add-on keep it, with the values it had when they got it. A Stripe subscription that granted the add-on keeps that same grant in force, and ends it when the subscription ends.
Only one add-on per code is published at a time, and a code belongs to one suite: another suite’s add-on can’t use it.
Sell an add-on through Stripe
Section titled “Sell an add-on through Stripe”With the Stripe connector registered, an add-on can be sold as a subscription of its own, next to the customer’s plan:
- In Stripe, create a Product for the add-on with the metadata
oclavex_addonset to the add-on’s code, and a recurring price under it with a lookup key. Add the lookup key to the connector’s allowed prices. - Your app starts a checkout for that lookup key with the customer’s license session, the same call that sells a plan. A customer who already pays for a plan can still buy the add-on; a customer who already has that add-on cannot buy it twice.
- When the subscription is paid, Oclavex grants the add-on to the customer’s entitlement. The grant is in force as long as the subscription is.
When the customer cancels, the add-on stays until the end of the period they paid for, then ends. If the subscription is ended at once in Stripe, the add-on ends at once. The customer’s plan is never changed by an add-on subscription, and canceling the add-on never cancels the plan.
The add-on is a separate subscription, so the customer gets its own invoice and cancels
it on its own in the billing portal; a portal link that opens straight on cancel or update
targets the plan subscription. The add-on’s code must match, ignoring case, a published
add-on of the suite the customer’s plan belongs to. Changing the add-on (see
Change a published add-on) keeps its code, so the Stripe
Product’s oclavex_addon metadata still matches and nothing changes in Stripe.
How it relates
Section titled “How it relates”- Binds → a suite + features.
- Granted to → entitlements (an add-on grant).