Virtual items

How it works

Virtual items are in-game items that users can purchase for real or virtual currency or receive as a bonus. They have no physical form and are used only within the game. Examples of virtual items include skins, potions, weapons, and other elements that affect gameplay or a character’s appearance.

Main features:

  • Flexible pricing configuration:
    • Setting a price for a single item in real and/or virtual currency.
    • Creating free items.
  • Automatic detection of the user’s country and currency.
  • Availability configuration:
    • Restricting item sales in specific region.
    • Limiting the number of items available for purchase.
    • Limiting the display time of items in the store.
    • Configuring items that are not available for purchase. An item can be hidden from the catalog but still be available as part of a bundle or as a bonus for another item.
Note
Virtual items can be created via Publisher Account, via API calls, or by importing a catalog. This guide describes manual creation of virtual items and working with API calls. For detailed information about creating other item types, see the Items catalog section.
Note
Virtual items can be created via your account, via API calls, or by importing a catalog. This guide describes manual creation of virtual items and working with API calls. For detailed information about creating other item types, see the Items catalog section.
Note
Virtual items can be created in the account for mobile games, via API calls, or by importing a catalog. This guide describes manual creation of virtual items and working with API calls. For detailed information about creating other item types, see the Items catalog section.

How to set up

Set up in Publisher Account

Note
Before configuring items, it’s recommended to create groups to help you sort items and manage how they’re displayed in your store.

Set up in your account

Note
Before configuring items, it’s recommended to create groups to help you sort items and manage how they’re displayed in your store.
  1. Open your project in Publisher Account and go to the Items catalog > All items > Virtual items section.
  1. Open the project in your account and go to the Items catalog > All items > Virtual items section.
  1. Open the project in your account and go to the Items catalog > All items > Virtual items section.
  1. Open the project in your account and go to the Items catalog > All items > Virtual items section.
  1. Open your project in the account for mobile games and go to the Catalog section.
  1. Click Create manually and select Virtual item from the drop-down list.
  1. In the General settings section, specify the following:
    • SKU
    • One or several groups the item should belong to (optional)
    • Name
    • Short description
    • Extended description — to add it, turn on the corresponding toggle (optional)
  1. In the Media section, upload one or more images or videos (optional) — from your device or via a link. In the store created with the Xsolla site editor, all item cards display the file marked as Main, while the remaining files are available only in item cards with a media gallery. The file marked as Main is also returned in the responses of the catalog retrieval API calls.
  1. In the Price settings section, set prices or create a free item:
    • To set a price, select Paid item, turn on the Pricing in real currency and/or Pricing in virtual currency toggle, and specify the price. If needed, configure regional prices.
    • To create a free item, select Free item.
Note

An item can have prices in several real and virtual currencies. In this case, you must specify a default currency for each type — one among the real currencies and one among the virtual currencies.

You can specify a price in virtual currency only if the virtual currency has already been created in the project.

  1. To limit the number of items available for purchase:
    1. Turn on the toggle in the Limits section and specify the quantity.
    2. Configure the limit reset frequency. To do this, select a period from the drop-down list:
      • Daily.
      • Weekly.
      • Monthly.
      • Custom interval. The interval is calculated from the item’s display start date in the store.
      • No regular refresh.
    3. Set up the reset schedule by specifying the parameters that correspond to the selected period.
Note
By default, an item is hidden from the catalog once the purchase limit is reached. If automatic limit reset is configured, the Show item even after users reach the purchase limit checkbox lets you keep the item visible until the next reset cycle begins.
  1. To configure a display time limit for the item (optional):

    1. Turn on the toggle in the Add specific display period section.
    2. Specify the time zone and the beginning and the end of the period.

    To leave the end of the item’s display period unspecified, turn on the No end date toggle.

Note
To add another display period for the item in the catalog, click +. If an item has multiple display periods, each must have an end date. The display period ends at the last second of the specified minute. For example, if an end time is set to 12:00, the display period runs until 12:00:59.
  1. Configure attributes using one of the following options (optional):
    1. Add attributes and their values in JSON format.
    2. Manually create attributes and their values, and link them to items.
  1. If the paid item will be used in any mechanics with a random reward (e.g., loot boxes or gacha), enable the Mark as paid randomized reward toggle.
Note
This parameter may be required for games distributed in countries with legal restrictions on such mechanics.
  1. Click Create.

  2. In the window that opens, select the item status and click Continue.

The created item will appear in the All items section.

Set up via API

To set up virtual items, you can use the calls from the Admin subsection in the Virtual items and currency group.

Notice
Calls from the Admin subsection aren’t intended for building a store catalog on the front end. You shouldn’t use them for landing pages, web stores, and in-game logics.
TaskAPI call
Create a virtual item.Create virtual item.
Get virtual item information.Get virtual item.
Get a list of virtual items.Get list of virtual items.
Get a list of virtual items by specified group.In the Get list of virtual items by specified group external id API call pass the parameter external_id.
Get a list of virtual items by group for administration.In the Get list of virtual items by specified group id API call pass the parameter group_id.
Update a virtual item.Update virtual item.
Delete a virtual item.Delete virtual item.
Limit the number of virtual items available for purchase.In the Create virtual item or Update virtual item API calls, pass the following parameters:
  • limits — specifies the maximum quantity of virtual items available for purchase.
  • limits.recurrent_schedule — defines how often the limit resets.

Display virtual items in store

The display of virtual items depends on how the catalog is implemented — through the site editor or via API.

Display via site editor

To display a virtual item on your website:

  1. Create a virtual item.

Note
To display virtual items in site editor, create groups in advance – virtual items are displayed in the store catalog only as part of a group.
  1. In your project in Publisher Account, go to the Storefronts > Websites section.

  2. In the pane of the desired site, click Open Site Builder.

  1. In the project in your account, go to the Storefronts > Websites section.

  2. In the pane of the desired site, click Open Site Builder.

  1. In the project in your account, go to the Storefronts > Websites section.

  2. In the pane of the desired site, click Open Site Builder.

  1. In the project in your account, go to the Storefronts > Websites section.

  2. In the pane of the desired site, click Open Site Builder.

  1. In your project in the account for mobile games, go to the Web Shop section.

  2. Click the pane of the desired site.

  1. If your site includes multiple pages, select the one you need:

    1. Click the current page title at the top of the editor.
    2. Select the necessary page from the drop-down list.

  2. In the Store block section, select Virtual items in the Item type field and select the item group you want to sell on the website in the Item group field.

  1. Set an item card layout.

  2. After making all necessary changes and preparing your website for launch:

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

Notice

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

Once the site is published, a section with a virtual item group will become available. If no items are displayed, check that their status is set to Available and that no time-based display limit is active.

Get virtual item information via API

To retrieve the virtual items catalog on the client side, use the methods from the Catalog subsection of the Virtual items and currency method group. Authorization is not required to use these methods.

TaskAPI call
Get a virtual item by SKU.In the Get virtual item by SKU API call pass the parameter item_sku.
Get a list of virtual items.Get virtual items list.
Get a list of virtual items by specified group.In the Get items list by specified group API call pass the parameter external_id.
Get a full list of virtual items in the project.Get all virtual items list.

Grant virtual items to users

Depending on the item type and integration settings, the virtual item is granted to the user in one of the following ways:

  • If you’ve integrated PlayFab, virtual currency and items are granted to the user’s PlayFab inventory automatically.
  • If you use a custom delivery system, all virtual items and currency are granted on your side. We recommend setting up a webhook handler to receive order data on your backend. The necessary data is included in the Successful payment for order webhook.

Refer to the Set up order status tracking section for more details on this and other methods of retrieving purchase data.

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.

Useful links

Last updated: July 6, 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].