Product type: B2B or D2C
Each product has a type that decides who the customer is:
You choose the type when you create the product. It is fixed once the product has a subscription.
The product slug
Each product has a slug, such asacme-workspace. If you sell more than one product, pass it as productSlug to scope a call to one product:
- the hosted pricing page shows only that product’s plans
canAccess, credit balances and credit consumption look only at that product’s subscription
Lifecycle: draft, published, archived
Products, plans and add-ons share one lifecycle:
Publishing a product publishes all of its draft plans with it, in one step. If any draft plan has no price yet, nothing is published and the dashboard names the plan to fix. Unarchiving returns an item to draft, so it is reviewed before it is sold again.