Skip to content

Cookbook

Cookbook

Task-first recipes. Each uses real commands and endpoints from the app. They assume you have a running app and an API token (php artisan billing:token …) where an API call is shown — see API → Authentication.

Recipes

Recipe Task
Onboard a customer organization Provision an org and subscribe it.
Author a tiered plan Add a plan with a graduated/volume/package/stairstep price.
Meter usage on the hot path Reserve, work, commit against a meter.
Issue an invoice + credit note Generate an invoice and a credit note.
Configure Stripe + verify a webhook Bind the Stripe gateway and confirm settlement.
Issue / renew / revoke a license Mint an on-prem license and manage its lifecycle.
Set up smart-retry dunning Configure and run the failed-charge retry schedule.
Run a trial to conversion Open a trial and convert it.
Publish RBAC roles to Cbox ID Declare and publish the manifest.
Add a seller entity for a jurisdiction Register a new selling entity.
Read the analytics Where MRR/NRR/cohorts come from.