Manage user Backpack
You can use the Backpack with virtual currency packages, virtual items, and game keys. Data about each item must also be added to the server of the game to which the item corresponds.
Implement adding and removing items from a user’s Backpack using the API endpoint in the table below. When creating the item, link the item with a specific game using the external_game_id
parameter.
Task | API method | User flow of receiving the item |
---|---|---|
Create a list of game keys and add them to the Backpack of the specified user. | Create game keys | The user copies the game key from Backpack and enters it on the gaming platform or in the game. |
Create a list of virtual items and add them to the Backpack of the specified user. | Create virtual item | Depending on the project settings and item parameters, one of the following user flows is automatically selected:
|
Create a list of virtual currency packages and add them to the Backpack of the specified user. | Create virtual currency | Depending on the project settings and item parameters, one of the following user flows is automatically selected:
|
Create a list of promo codes with items and add them to the Backpack of the specified user. | Create promo codes | The user copies the promo code from Backpack and enters it on the gaming platform or in the game. |
Delete the specified item from the Backpack of the specified user. | Deletes item from Backpack | - |
Retrieve the list of items from Backpack of a specified user. Items can be game keys, virtual items, and virtual currency packages. | Get user’s Backpack items | - |
Information about added promo codes and related items must also be added on the server of the game to which the item corresponds.
The interface for entering a promo code and the logic for redeeming the promo code and granting items to the user must be implemented in the game that the item corresponds to.
“is_external_vc”: false
in the response when calling the Create virtual currency API.Found a typo or other text error? Select the text and press Ctrl+Enter.