Coupons
How it works
Coupon campaigns allow users to receive bonus items set up in the campaign without making a purchase. The coupon entry field is displayed in the catalog.
Main difference is that promo codes are redeemed during a purchase, while coupons are redeemed independently with no purchase requirement.
- game key
- virtual currency package
- virtual item including a bundle or time-limited items
Main features:
- limiting the total number of redemptions of the coupon within the campaign
- limiting the number of coupon redemptions for one user within the campaign
- generating multiple coupon codes
- applying regional sale restrictions for promotions and items that are linked to a coupon
Restrictions:
- If game keys are attached as bonus items to a coupon, after the coupon is redeemed, the key will be sent to the user’s email address. If the campaign runs out of keys, the user will not be able to redeem the coupon.
- If regional restrictions are applied to a coupon promotion, users from that region will not be able to redeem the coupon.
- If the coupon includes an item with regional sale restrictions, a user from a region where these items are unavailable won’t be able to receive these items.
Example: a shield and sword are offered as a bonus with the coupon. The shield has a regional restriction and is available for purchase only in the USA. If a user outside the USA enters the coupon code, an error will be returned in the response to the Verify promotion code or Redeem coupon code methods. The user will not be able to obtain any of the items from the coupon.
Integration flow
- In your store, display a field where the user can enter the coupon code.
- Use the Verify promotion code method to validate the entered coupon code.
- Use Redeem coupon code method to redeem coupon. If a game key is provided as a bonus, it is delivered to the user's email address.
How to get it
Prerequisites
- Register in Publisher Account.
- Connect the Store and set up Virtual Items and Virtual Currency modules.
Setting up a promotion with a coupon
You can set up coupon promotions in one of the following ways:
- via Publisher Account
- via API methods
In any option for setting up a promotion, it is necessary to implement calls to API methods to check the correctness of the coupon code and redeem the coupon code.
Set up via Publisher Account
If you set up bonus promotions via Publisher Account, you can:
- set up the promotion’s validity period
- limit the number of times the promotion can be used by the user
- set up promotions that apply to any types of items:
- virtual currency packages
- virtual items (including time-limited items)
- game keys
- bundles
Editing coupon promotions with an Active status isn’t currently available in Publisher Account.
You can use API methods to enhance your coupon promotions configuration options.
- Open your project in Publisher Account.
- In the side menu, click Store.
- In the Promotions and rewards panel click:
- Connect – if you don’t have promotions
- Configure – if you previously connected promotions
- Click Create promotion.
- Specify the following parameters:
- Enter the promotion name.
- Choose Coupon as the promotion type.
- Create an External ID — a unique promotion identifier used to manage promotions via API methods.
- Choose the bonus item that the user receives when they redeem a coupon:
- Virtual currency package.
- Game key.
- Virtual item (one or several, including bundles and time-limited items).
- Specify the total number of redemptions and the number of redemptions per user.
- Set the campaign start and end dates.
- Check the settings and save the promotion.
- Go to the promotion editing menu.
- In the Codes menu, choose the method for how the coupons are generated.
- Generate the coupon code or enter it manually.
- Save changes.
- Activate the promotion.
Coupon with a virtual currency package
You should specify the currency package for a virtual currency package coupon. To create a virtual currency package:- Go to the Virtual currency module settings and specify the following parameters:
- Image
- SKU
- Currency name
- Price of one unit of virtual currency
- Default currency
- Create a required number of currency packages and specify the following parameters for every one of them:
- Image
- SKU
- Name
- Description
- Used currency
- Amount of currency in a package
- Price
- Default currency
- Enable the currency packages display in Store.
Coupon with a game key
You should specify a game key SKU and DRM info for a game key coupon. There are 2 options:- Generate coupons for the already set DRM. The parameter is set when generating coupons.
- Choose a DRM when using a coupon.
Coupon with virtual items
You should specify the virtual item SKU and its quantity for a virtual items coupon. You can choose one or several items with different SKUs for one coupon including bundles and time-limited items.Generating coupons
A campaign may include one or several coupons. The coupon format has 2 options:- Manually entered string — suitable for a campaign with only one coupon that can be used many times (maximum is 128 characters).
- Generated string — line of numerals and Latin symbols (10 characters). Suits the campaign with many coupons.
winter2021
and WINTER2021
are 2 different coupons.Regional restrictions
Regional restrictions apply to the whole promotion campaign. The regional restrictions are applied on demand via email to Xsolla.Set up via API methods
To work with coupon code promotions, you can use the methods from the Coupons subsection of the Promotions method group.
Promotion setup:
Task | API method |
---|---|
Create a promotion with a coupon | Create coupon promotion |
Activate promotion with coupon | Activate coupon promotion |
Edit promotion | Update coupon promotion with new promotion options. Promotions editing is also available for promotions with Active status |
Deactivate promotion | Deactivate coupon promotion |
Set up an indefinite promotion | Create coupon promotion or Update coupon promotion. Pass the “date_end”:null parameter to the specified method. |
Task | API method |
---|---|
Check if the coupon is correct | Verify promotion code |
Redeem coupon | Redeem coupon code |
Get a list of game distribution platforms to display to the user if a game key is provided as a bonus for a coupon | Get coupon rewards |
Task | API method |
---|---|
Get the remaining number of uses of a coupon for a specific user | Get coupon limit for specified user |
Increase the remaining number of uses of the coupon for a specific user | Increase coupon limit for specified user |
Set a new limit on the use of a coupon code for a specific user | Set coupon limit for specified user |
Decrease the remaining number of uses of the coupon code for a specific user | Decrease coupon limit for specified user |
Found a typo or other text error? Select the text and press Ctrl+Enter.