Skip to main content
Sometimes you need to give a customer a product without charging them - comps, promotional offers, or support access. Use grantProduct on the server. There is no grant-product button in the dashboard — from the dashboard, use Create checkout (even in test mode) or adjust item quantities. A grant creates a real subscription or one-time product on the customer. It does not honor a configured free trial — access starts immediately. Pass quantity for stackable products (defaults to 1).

Granting a configured product

If you already have a reference to a server user or team object (for example from hexclaveServerApp.getUser(userId)), you can also call user.grantProduct({ productId, quantity }) directly. This method is server-only.

Inline products

You can also grant products with an inline definition - no pre-configured product needed. This is useful for one-off grants like bonus credits: