Skip to main content
The Package model charges a fixed price for each pack of units instead of for each unit. By default, a started pack counts as a full pack. Example: An API service charges $5 per 100 API calls. If a customer makes 450 API calls in a billing period, that is 4.5 packs. With the default transform_quantity.round: "up" setting, they round up to 5: 5 packs × $5 = $25 To round down, set transform_quantity.round to "down" in the API request. The 4.5 packs then round down to 4: 4 packs × $5 = $20 In the dashboard, set the Price per package and the Units per package on the charge. If you configured this Package charge to round down through the API, saving an edit in the dashboard resets rounding to up, even if you only change the price. To keep rounding down, update the charge through the API and include both divide_by and round: "down" in transform_quantity. It is best for businesses that sell usage in fixed blocks, such as messages, credits or API calls, rather than per unit.
To charge per pack in only some ranges of usage, use a package size in a tier.
Add charge dialog with a package of 100 units for $5