Create order

An order is an item that a user wants to buy in the store. After an order is paid, the user receives the item. To test the payment flow, create an order using the Create order with specified item API call:

  1. If you want to perform a test on the API documentation website, click Try it to open the interface for creating a request.
  2. In the Security block, in the Bearer Token field, enter the token obtained while passing the authentication procedure.
  3. In the Body block, pass order details, e.g., quantity of item quantity. To access sandbox mode, pass "sandbox": true.
  4. In the Parameters block, pass:

To call the Xsolla API, you can use the ready-made SDK methods for game engines and platforms:

In the response, you will receive data you need for further work:

  • token — payment token

Your progress
Thank you for your feedback!
Last updated: February 16, 2023

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!