Integration with secondary market (DMarket)
How it works
A secondary market allows gamers to exchange, sell, and buy in-game items. To attract gamers and boost income, integrate
Main features:
- secure exchange and purchase of in-game items
- paying with real currency (USD)
The flow of user’s interaction with
- The user logs in to the service.
- The service gets the list of items available for selling from their Xsolla player inventory.
- The user adds items from their player inventory to the service.
- The user sells or purchases items.
- The user withdraws items from the service to their in-game inventory.
Who can use it
- Partners who have already connected Store and want to integrate the secondary market.
- Partners who want to attract or motivate gamers by providing them with an opportunity to get value from selling in-game items.
How to get it
To integrate
- Create an account in
DMarket and get access to your profile. - Get the
Partner ID in yourDMarket account.

- Generate the private and public keys with the help of the Etd25519 algorithm.
- In your
DMarket account, insert your public key into thePartner public key field.

- Generate a new
DMarket public key in yourDMarket account.

- After you have submitted the contact form and received a reply, pass this information in the response letter:
- your
Partner ID - the private key generated with the Ed25519 algorithm
- the public key generated in your
DMarket account
- your
- Set up the catalog.
- Synchronize the user inventory.
- Use methods to work with the
DMarket service.
Setting up catalog
At this stage, the product catalog is not synchronized automatically. To ensure its correct operation, do the following:
- Configure the product catalog in Xsolla Publisher Account.
- Configure the items inventory in your DMarket account.
- Set up items. To set up the list of items available for selling on DMarket, fill out the contact form.
Synchronizing user inventory
Follow the instructions to integrate the Xsolla Login widget and enable synchronization between the Xsolla player inventory and the
To enable synchronization, the user has to:
- Create a
DMarket account. - Synchronize their Xsolla player inventory with the
DMarket inventory by inputting their data into the Xsolla Login widget.
User authentication and synchronization flow:

Methods for working with DMarket
Getting items list
To get the list of user inventory items available for selling on https://store.xsolla.com/v2/project/{project_id}/secondary_market/user_inventory
into the

Moving items
To enable moving items between the Xsolla player inventory and the user’s https://store.xsolla.com/v2/project/{project_id}/secondary_market/user_inventory/task
into the

Getting task
https://store.xsolla.com/v2/project/{project_id}/secondary_market/user_inventory/task/{task_id}
into the
- the project_id is the ID of the project in your Xsolla Publisher Account
- the
task_id is the ID of the process on theDMarket side

To integrate the secondary market service, fill out the contact form:
Was this article helpful?
Rate this page
Don’t want to answer
Thank you for your feedback!
Found a typo or other text error? Select the text and press Ctrl+Enter.