LiveOps API (2.0.0)
- 版本: 2.0.0
- 服务器:
https://store.xsolla.com/api - 通过邮件联系我们
- 联系URL: https://xsolla.com/
- 必需的TLS版本: 1.2
LiveOps运营API是一套工具包,通过促销活动和个性化优惠推动玩家持续互动。
通过该API可管理以下功能:
- 促销活动 — 创建和管理优惠券、促销码、折扣及奖励活动。
- 个性化 — 指定商品目录显示和促销活动应用条件,仅面向特定授权用户。
- 促销活动限制 — 设置用户使用促销活动的次数限制,并配置限制的定期重置。
- 奖励链和奖励积分 — 配置与奖励积分累积关联的奖励进度。
- 每日奖励链 — 设置循环每日奖励,激励玩家定期登录。
- 优惠链 — 创建阶梯式连续购买优惠,每步提供不同定价和免费奖励选项。
- 追加销售 —向用户提供购买超值商品的销售方式。
API分为以下组别:
Admin — 用于创建、更新、激活和删除营销活动及奖励链配置。通过基本认证方式验证身份,需使用您的商户或项目凭据。Client — 用于检索可用促销活动、获取活跃奖励链、兑换码,以及代表最终用户(已完成身份认证)领取奖励。通过用户JWT进行身份认证。
个性化目录
此API可让您针对用户属性指定规则。如果用户满足具体规则的所有条件,则会显示个性化商品。
有关个性化促销活动的信息,请参阅促销活动部分。
要在购买前传递属性,您可以使用艾克索拉Login API或在使Pay Station API生成令牌时将它们传入user.attributes属性。
请求
Resets the value points balance and progress of all users in the reward chain.
The balance is tied to the value points type, not to a specific reward chain. If these value points are used in other chains, the balance will be reset in all chains that use these value points.
After the reset, you can update the reward chain’s validity period, and users will be able to progress through it again.
The clan balance is calculated as the sum of its members’ balances. Therefore, after the reset, the clan balance is also reset.
This request is irreversible and applies to all users of the project.
You should not reset the reward chain during its validity period. In this case, users may lose earned value points before they claim their reward.
- https://store.xsolla.com/api/v3/project/{project_id}/admin/reward_chain/id/{reward_chain_id}/reset
- Mock serverhttps://xsolla.redocly.app/_mock/zh/api/liveops/v3/project/{project_id}/admin/reward_chain/id/{reward_chain_id}/reset
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://store.xsolla.com/api/v3/project/44056/admin/reward_chain/id/101/reset- https://store.xsolla.com/api/v3/project/{project_id}/admin/reward_chain/id/{reward_chain_id}/toggle
- Mock serverhttps://xsolla.redocly.app/_mock/zh/api/liveops/v3/project/{project_id}/admin/reward_chain/id/{reward_chain_id}/toggle
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
https://store.xsolla.com/api/v3/project/44056/admin/reward_chain/id/101/toggle