Bonus targets in bundles
What's new
Bundle nested items take a new optional is_bonus_target flag that picks which items receive the
bundle bonus. You can mark several items.
Impact
Until now the bundle bonus went to the featured item. With is_bonus_target the rule is:
- If any nested item has
is_bonus_targetset, the bonus applies to the quantity of the marked items only. Unmarked items get no bonus. - If no nested item has it set, the featured item gets the bonus, as before.
Changes
| Resource | Change |
|---|---|
| create_item | Added optional is_bonus_target to nested_items in the request and response |
| update_item | Added optional is_bonus_target to nested_items in the request and response |
| bulk_create_or_update_items | Added optional is_bonus_target to nested_items in the request and response |
| bulk_update_items | Added optional is_bonus_target to nested_items in the request and response |
| create_daily_reward | Added optional is_bonus_target to day reward items and extra reward items in the request and response |
| update_daily_reward | Added optional is_bonus_target to day reward items and extra reward items in the request and response |
| get_items, get_item, translate_item | Added is_bonus_target to nested_items in the response |
| get_daily_rewards, get_daily_reward, copy_daily_reward | Added is_bonus_target to nested items in the response |
| get_coupons, create_coupon, bulk_update_coupon, get_coupon, update_coupon, get_user_coupons | Added is_bonus_target to nested items in the response |
| get_loyalty_tiers, update_loyalty_tiers | Added is_bonus_target to nested items in the response |
| get_store_items, get_all_store_items, create_store_item, bulk_update_store_items, update_store_item | Added is_bonus_target to nested items in the response |
Upgrade
- No action is required. Bundles without
is_bonus_targetkeep giving the bonus to the featured item. - To spread the bonus across specific items, set
is_bonus_target: trueon each of them.
Need help?
Contact our integration team at [email protected]