Activates a promotion.
LiveOps API (2.0.0)
- Version: 2.0.0
- Servers:
https://store.xsolla.com/api - Contact Us by Email
- Contact URL: https://xsolla.com/
- Required TLS version: 1.2
LiveOps API provides endpoints to drive ongoing player engagement with dynamic promotions and personalized experiences. Use the endpoints to manage coupons, promo codes, discounts, bonuses, unique catalog offers, reward chains, daily chains, offer chains, and upsell.
Project ID. You can find this parameter in your Publisher Account next to the name of the project.
- Mock serverhttps://xsolla.redocly.app/_mock/api/liveops/v2/project/{project_id}/admin/promotion/{promotion_id}/activate
- https://store.xsolla.com/api/v2/project/{project_id}/admin/promotion/{promotion_id}/activate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/api/liveops/v2/project/44056/admin/promotion/111425/activateProject ID. You can find this parameter in your Publisher Account next to the name of the project.
- Mock serverhttps://xsolla.redocly.app/_mock/api/liveops/v2/project/{project_id}/admin/promotion/{promotion_id}/deactivate
- https://store.xsolla.com/api/v2/project/{project_id}/admin/promotion/{promotion_id}/deactivate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/api/liveops/v2/project/44056/admin/promotion/111425/deactivateProject ID. You can find this parameter in your Publisher Account next to the name of the project.
- Mock serverhttps://xsolla.redocly.app/_mock/api/liveops/v3/project/{project_id}/admin/promotion/redeemable/code/{code}
- https://store.xsolla.com/api/v3/project/{project_id}/admin/promotion/redeemable/code/{code}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://xsolla.redocly.app/_mock/api/liveops/v3/project/44056/admin/promotion/redeemable/code/WINTER2021Promotion was successfully received.
Unique promotion ID. The external_id may contain only lowercase and uppercase Latin alphanumeric characters, periods, dashes, and underscores.
Promotion validity periods. If multiple periods are specified, both date_from and date_until are required.
Name of promotion. Should contain key/value pairs where key is a locale with "^[a-z]{2}-[A-Z]{2}$" format, value is string.
Limits total numbers of coupons.
Limits total numbers of coupons redeemed by single user.
Number of redemptions per code.
Limits for each unique coupon code.
{ "promotion_periods": [ { … }, { … } ], "bonus": [], "is_enabled": true, "external_id": "falls2023", "name": { "ru": "Скидка по промокоду на Epic Fall Hammer", "en": "Promo Code discount for Epic Fall Hammer" }, "redeem_total_limit": 2, "redeem_user_limit": 3, "redeem_code_limit": null, "total_limit_state": { "available": 1, "reserved": 1, "used": 0 }, "discount": { "percent": null }, "discounted_items": [ { … } ] }
Personalized catalog
This API allows to specify rules for user attributes. If the user meets all conditions for a concrete rule, personalized items will be shown.
For personalized promotions see Promotions section.
To pass attributes before a purchase, you can use Xsolla Login API or pass them into user.attributes property while generating token using Pay Station API.