Welcome to the Backpack API, an essential tool to enhance your item-selling strategy and promotional campaigns.
With Backpack, users can store information about the items they purchased or received for free. When receiving items, users don’t need to use their game ID or go to the game from the distributor site — they can keep items in the Backpack and redeem them later.
All items purchased or received for free on the distributor website are available to the user in the Metaframe widget or Xsolla Wallet.
User flow:
To get started with Backpack, check out our detailed guide on Setting up Backpack. This guide will walk you through the process of configuring Backpack to suit your needs.
Backpack revolves around three major entities:
To interact with the Backpack API, you need to set up authorization.
For authorization, you have to provide 2 kinds of headers:
It is 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.
You can find the merchant ID parameter in your Publisher Account:
https://publisher.xsolla.com/<merchant ID>/<Publisher Account section>
.You can find the project ID parameter in your Publisher Account next to the name of the project.
Set up user authentication via Xsolla account on Xsolla Wallet by following this guide. This process involves actions in the Publisher Account and assistance from our integration team.
Once the Xsolla account client is set up, use this endpoint to generate a token. The token is valid for 1 hour, after which you'll need to invoke the endpoint again for a new token.
Use the obtained token by providing the Authorization header with the Bearer token string.
Webhook notifications associated with the Backpack are listed under the Webhooks tag. For more in-depth information about working with webhooks, refer to our main webhook documentation.
To set up webhooks:
https://example.com
format.If you have set up a Metaframe webhook, please contact the integration team at integration@xsolla.com or your Customer Success Manager at csm@xsolla.com. They will assist you in setting up a second webhook for the project.