Adjustment types
Price adjustments are modeled as:- Percentage-based increases or decreases. For example, offer a 15% discount or add a 15% markup for a customer.
- Fixed amount increases or decreases. This is used to modify a price by a specific amount, for example, decreasing the price of a gigabyte of data by $0.50.
- Price override, which sets a specific price for an invoice charge. For example, you can set the price for a gigabyte of data to $0.35 for a single customer.
- Quantity override, which lets you set a specific quantity for a fixed charge. For example, an underlying plan may default to 1 developer license (a fixed charge). You can use a quantity override to set the number of licenses for a specific customer to 10.
Composite charges
You can also modify the value of a composite charge on a per-customer basis using price adjustments. The quantity on a composite charge can be used to enable or disable the charge. To enable a composite charge for a subset of customers on a plan, set the quantity to 0 during plan creation, then apply a quantity override during plan assignment to set the quantity to 1.Apply price adjustments with the API
Pass price adjustments in theprice_adjustments array when you add a plan to a customer. Each adjustment targets one charge on the plan: