redemption_code
when:
applies_to_all: true
.
Item-scoped: Target specific items using item_id
filters. This is useful for applying discounts to particular products or services.
Price-scoped: Target specific prices using price_id
filters. This provides granular control over which charges receive adjustments.
Price type-scoped: Target prices by type using price_type
filters with values like:
usage
: Any usage-based price attached to a billable metricfixed_in_advance
: Fixed prices that bill in advancefixed_in_arrears
: Fixed prices that bill in arrearsfixed
: Any fixed fee (in advance or arrears)in_arrears
: Both usage and fixed fees that bill in arrearsapplies_to_all
, applies_to_item_ids
, or applies_to_price_ids
in a single adjustment. Or, use filters
instead to express more complex targeting logic.applies_to_price_ids
continues to work alongside the new systemapplies_to_price_ids
cannot be automatically remapped during migrations. Since these adjustments target specific price IDs, they become “orphaned” when those prices are replaced with new IDs.
Migration protection: To prevent unintended consequences, Orb will fail the migration for subscriptions that have ad-hoc adjustments targeting prices that are being modified. This ensures you don’t accidentally lose discount policies or create billing inconsistencies.
Manual intervention required: You’ll need to manually update these adjustments before or after the migration to target the new price IDs.
applies_to_all: true
or empty filters
array):
item_id
targeting):
price_type
targeting):