Bill a seat plan, a setup fee, and metered usage from one bundle
Define a price bundle that contains the monthly subscription, the one-time setup fee, and the metered usage price. Within that bundle, mark each optional add-on with required: false. At checkout, pass the bundle reference and any quantity overrides. Billing then creates the subscriptions, charges the one-time items, attaches the usage meters, and applies any coupon on the bundle, all within that one request.
Impact
In the sample, when a customer clicks Start subscription on the Westmere Analytics pricing page, the server makes one activate call for the Growth plan with 25 editor seats. That call returns the subscription ID, which the pricing route then passes to the welcome route.
Prompt for a coding agent: Start the Growth plan with 25 editor seats, the onboarding fee, and metered API usage in one checkout.
Select a file to view its contents