Creates a list of virtual currency packages and adds them to Backpack of the specified user.
X-HOST-ID required | string <uuid> A unique header issued by Xsolla. To obtain it, please contact the integration team at integration@xsolla.com or your Customer Success Manager at csm@xsolla.com. Provide them with the project ID and merchant ID. Keep X-HOST-ID confidential, as it is part of the authentication key. |
A JSON object containing virtual currency packages information.
image_url required | string The URL pointing to the item's image, which is displayed to the user in the Metaframe widget. Note An image should have an aspect ratio of 8 x 3, meaning that the width to height ratio should be approximately 2.67 (e.g., width = 400 px and height = 150 px). In this case, the image scales with minimal cropping at the edges, so the content remains visible. Optimum minimal resolution is 620 x 233 px (1240 x 466 px for Retina display). |
item_sku required | string The item's Stock Keeping Unit (SKU) from the Publisher Account. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores. |
item_name required | string The item's name from the Publisher Account. Currently, only English names are supported, and this information is displayed to the user in the Metaframe widget. |
price required | number The price of the virtual currency item in the specified currency ( |
currency required | string The currency which prices are displayed in ( |
quantity required | integer <uint32> The quantity for the virtual currency package. |
description | string The item's description from the Publisher Account. Currently, only English descriptions are supported, and this information is displayed to the user in the Metaframe widget. |
game_name | string The name of the game associated with the item. Refer to endpoints under the Game tag for additional details. |
game_image_url | string The URL pointing to the image representing the associated game. |
external_game_id | string The external identifier uniquely assigned by you to represent the game. |
platform | string The game platform associated with the item. If specified, the user needs to link their game platform account to Backpack to get the item. |
Virtual currencies were successfully created.
Bad request.
Internal server error.
[- {
- "item_sku": "string",
- "item_name": "string",
- "image_url": "string",
- "description": "string",
- "price": 0,
- "currency": "string",
- "quantity": 0,
- "game_name": "string",
- "game_image_url": "string",
- "external_game_id": "string",
- "platform": "steam"
}
]
[- {
- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "description": "string",
- "image_url": "string",
- "item_sku": "string",
- "game_name": "string",
- "external_game_id": "string",
- "item_type": "virtual_currency",
- "created_at": "string",
- "item_status": "string",
- "item_name": "string",
- "platform": "steam",
- "project_id": 0,
- "merchant_id": 0,
- "price": 0,
- "currency": "string",
- "quantity": 0,
- "is_external_vc": true
}
]