Promo codes and coupons

Promo codes

Promo codes and coupon promotions are a marketing tool used to provide users with codes for obtaining bonus items. Users can enter the promo code into a special field in the catalog to redeem it.

Promo codes redeemable at the time of purchase, and coupons — after the user enters a code.

Setting up a personalization is available with any authentication type: through User ID or Xsolla Login.

User flow

  1. The user goes to the landing page with Promocodes block.

  1. The user clicks Log in and authorizes through User ID or Xsolla Login.
  2. The user enters a code in a special field in the interface and clicks a button to the right of the field.

  1. Opens a modal window:
    • when activating a promo code – with info about discounts and bonuses;
    • coupon redemption – with info about discounts and bonuses that user already received.
Note
If the code is incorrect, under the field for entering the code, the error will be described.
Example: The redemption limit has been reached.

  1. For promo codes promotion:
    1. An updated catalog is displayed with discounts and bonus items using a promo code.

Before making a purchase, the user can cancel the promotional code, then the catalog will be updated and displayed without discounts and bonuses for the promo code. In this case, the promo code is not considered redeemed.

    1. User makes a purchase, after it promo code will be considered redeemed.

If bonus items are attached to the promo code, they are credited to the user.

How to get it

To add a code redemption block to your website:

Refer to the corresponding tab in the How it works section for detailed information on setting up coupons and promo codes.

Promo code promotions allow users to purchase items at a discount and receive bonus items configured in the promotion. The field for entering a promo code can be displayed in the catalog or the cart. Only one promo code can be applied to a purchase.

Notice

You can set up different types of promotions for an item: discounts, promo codes, and bonuses.

If several promotions are valid for an item at the time of purchase, discounts are applied to the item one by one. The order in which discounts are applied does not matter.

For example:

The price of a virtual item is $10. In Publisher Account, the following promotions have been created for the virtual items:

  • Black Friday discount promotion with a discount of 10% from November 4–30
  • Sale discount promotion with a discount of 20% from November 15 – December 15
  • promotion with a promo code for a 5% discount from November 4–30

If the item is purchased on November 20, both discount promotions and a promotion with a promo code are valid.

The total cost of the virtual item is then calculated as (($10 - 10%) - 20%) - 5% and will be $6.84.

Create new promo code promotion

To create a promo code promotion:

  1. In your project in Publisher Account, go to the LiveOps > Canvas section.
  1. In the project in your account for mobile games, go to the Operation > LiveOps section.
  1. Start creating a promotion in one of the following ways:
    • Option 1:
      1. In the toolbar, click the  icon.
      2. In the promotion list area, click the + icon.
      1. Select promo codes and click Create.
    • Option 2: In the toolbar, click the + icon and select Promo codes.
    • Option 3: Open the context menu anywhere on the canvas and select Promo codes.
  1. Specify the basic settings:
    • Promotion name.
    • External ID — a unique promotion ID used for managing promotions via API calls.
  2. Define when the user can redeem a promo code by selecting one of the options in the Redemption timeframe field:
    • Before purchase — the promo code can be redeemed without making a purchase. In this case, the user can only receive bonus items. Discount settings are not available for this option.
    • Anytime — the promo code can only be redeemed during a purchase. In this case, the user can receive bonus items, discounts on specific items, and/or a discount on the entire cart.
  3. Add bonus items:
    1. Set the Bonus items toggle to active.
    2. Click Select items.
    3. In the window that opens, check the boxes next to the required items and specify their quantity.
    4. Click Add items.
  1. To add a discount to the entire purchase (optional, unavailable for the Before purchase redemption type):
    1. Set the Apply discount to entire purchase toggle to active.
    2. Specify the discount percentage.
  2. To add a discount to specific items (optional, unavailable for the Before purchase redemption type):
    1. Set the Apply discount on selected items only toggle to active.
    2. Specify the discount percentage.
    3. Click Select items.
    4. In the window that opens, check the boxes next to the required items.
    5. Click Add items.
  1. Click Next.
  2. Add conditions and limitations (optional):
    1. To limit the total number of promo code redemptions, set the Promo code redemptions limit toggle to active and enter the required number.
    2. To limit the number of redemptions per user, set the Promo code redemptions limit per user toggle to active and enter the required number.
    3. To limit the number of redemptions per unique promo code, set the Unique promo code redemptions toggle to active and enter the required number.
  3. Click Next.
  4. Specify the promotion period.
  5. Click Next.
  6. Review the promotion settings.
  7. To activate the promotion immediately (optional), set the Create in Active status toggle to active.
  8. Click Create.
  1. To add the created promo code promotion to the site (optional):
    1. Open the site in the builder by clicking Open or Open in Site Builder on the banner in the editing form.
    2. Follow the instructions from the Set up promo code usage in your application or website section.

Promo code promotions are created in the deactivated state by default and don’t contain any promo codes for redemption.

On the canvas, visual links are displayed between the promotion card and the items in the promotion.

To manage their display, click the or icon to the right of any promotional item card, next to the  icon. If an item is included in multiple promotions, only one link can be displayed at a time.

Note

When setting up a promotion via the canvas, the following options are not available:

  • Setting up a promotion with game keys.
  • Setting a discount with fractional percentages.
  • Setting up a promotion with no end date.

Advanced options for configuring promo code promotions are available via Publisher Account and API calls.

Add promo codes

To add promo codes to promotion:

  1. Open the promotion for editing.
  1. Click Add promo codes.
  2. Add the required number of promo codes:
    • To generate promo codes automatically:
      1. Select Auto-generated and specify the number of promo codes.
      2. Click Generate.
    • To add a promo code manually:
      1. Select Manually entered.
      2. Click Create.
Note
Promo codes are case-sensitive. For example, winter2021 and WINTER2021 are different promo codes.
  1. To export a file with the promo code list (optional), click Download CSV.

Activate promotion

You can activate the promotion in following ways:

  • From the promotion card:
  • From the promotions list:
  • While editing the promotion:
Note
Active promotions can’t be edited. To change a promotion’s settings, first deactivate it.

Set up promo code usage in your application or website

Promo code usage on your UI

  1. In your application UI (in the catalog or cart), implement the following elements:
    • a promo code input field
    • UI elements to display promo code rewards and discounts
    • a selection form for promo code rewards (if applicable)
    • a button to apply the promo code
  2. Implement the promo code logic using the following client-side API calls:
TaskAPI call
Check if the promo code is valid.Verify promotion code.
Get a list of game distribution platforms to display to the user if a game key is provided as a promo code bonus.

Get promo code rewards.

If the response returns is_selectable=true, for each item with type=unit, you must display a selection form for the elements in the unit_items object. In this form, the user can select only one element for each unit type.

The type=unit parameter is passed for game keys. In this case, the user will need to select a game platform.

Display the updated catalog considering discounts and bonus items from a promo code.Use calls from the Catalog subsection. You need to pass the promo code in the promo_code request parameter.
Purchase a specific item directly (without adding it to the cart) and redeem a promo code.

Create order with specified item.

You need to pass the promo code in the promo_code request parameter.

Apply a promo code and update the cart content and total cost (apply discounts and add bonus items).

Redeem promo code.

You need to pass the promo code in the coupon_code request parameter.

Note
To additionally check how many more times a user can apply a promo code within a campaign, use the Get promo code limit for specified user server-side API call.
  1. Ensure that items are correctly granted to the user upon promo code redemption.
  1. If you have already implemented an in-game store in your application or on your website, no additional setup is required. Items linked to a promo code are granted to the user in the same way as a standard purchase.
Note
Game keys are sent to the user via email or to the entitlement system.

Promo code usage on website created with Xsolla

Notice
You can only add the coupon and promo code redemption feature to websites created using the Web Shop template.

To display the code entry field on your website:

  1. Open your project in Publisher Account and go to the Storefronts > Websites section.
  1. Open the project in your account and go to the Web Shop section.
  2. In the Sites section, select your site and click Open Site Builder.
  1. If your site includes multiple pages, select the one you need:
    1. Click the current page title at the top of the builder.
    2. Select the necessary page from the drop-down list.
  2. In the main area of the builder, choose a place where you want to add a new block and click Add block.
  3. Select the Promo codes block.
  4. Customize the block appearance (optional):
    • Edit the block’s header and description text.
    • Set a custom background for the block.
    • Change the button style.
    • Edit the text for the coupon redemption button.
Note
The default text for the coupon redemption or promo code activation button is Redeem. To change this text, double-click on it and enter the text that should be displayed on the site.
  1. To apply changes, publish the website:

    1. In the upper-right corner of the site builder, click Publish.
    1. Check the boxes next to the pages you want to publish.
    1. Click Publish.

Note

If site publication is not available, make sure all the conditions are met:

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: August 16, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].