Learn how to customize pricing for specific subscriptions by overriding plan prices with custom amounts, quantities, billing models, and tier structures.
price_id
: References the plan price to override (must exist in the selected plan)quantity
: Custom quantity for this line itemamount
: New price amount that overrides the original pricebilling_model
: Override the billing model for this pricetier_mode
: Change how tiered pricing is calculatedtiers
: Define custom pricing tierstransform_quantity
: Apply quantity transformationsFLAT_FEE
, you must provide either an amount
or quantity
:
TIERED
, you must provide either tier_mode
or tiers
:
VOLUME
: All units priced based on the final tier reachedSLAB
: Tiers apply progressively as quantity increasesup_to
: Quantity threshold (null for the last tier)unit_amount
: Price per unit in this tierflat_amount
: Additional flat fee for this tier (optional)PACKAGE
, you must provide transform_quantity
:
divide_by
: Number of units per package (must be > 0)round
: Rounding behavior ("up"
or "down"
)tier_mode
or tiers
tiers
provided, each tier must have a valid unit_amount
unit_amount
must be a valid decimal numberflat_amount
(if provided) must be a valid decimal numbertransform_quantity.divide_by
must be greater than 0transform_quantity.round
must be either "up"
or "down"
"up"
if not specifiedamount
or quantity
up_to: null