Bonus quantity fields on item responses
What's new
Public item responses now expose two new optional fields, quantity_bonus_value and quantity_after_bonus, describing the bonus quantity added on top of an item's base quantity and the resulting total. The fields propagate through every endpoint that returns items, including nested items inside lootbox groups.
Impact
You can render the bonus portion of an item separately from the base quantity (for example, "100 + 20 bonus = 120") without having to derive it from store-side rules.
Changes
| Resource | Change |
|---|---|
| get_items, get_item, create_item, update_item, bulk_update_items, translate_item | Added optional quantity_bonus_value and quantity_after_bonus on item responses |
| get_all_store_items, get_store_items, get_campaign_store_items, get_user_store_items, create_store_item, update_store_item, bulk_update_store_items | Added optional quantity_bonus_value and quantity_after_bonus on item, nested lootbox items, and lootbox fallback items |
| get_daily_rewards, get_daily_reward, create_daily_reward, update_daily_reward, copy_daily_reward | Added optional quantity_bonus_value and quantity_after_bonus on reward items, extra reward items, and nested lootbox items |
Upgrade
- No action required. Read
quantity_after_bonuswhen you need the post-bonus total; otherwise continue to usequantityas before.
需要技术支持?
联系我们的集成技术团队: [email protected]