跳至主要内容

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

ResourceChange
get_items, get_item, create_item, update_item, bulk_update_items, translate_itemAdded 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_itemsAdded 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_rewardAdded 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_bonus when you need the post-bonus total; otherwise continue to use quantity as before.

需要技术支持?
联系我们的集成技术团队: [email protected]