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:
- If you want to perform a test on the API documentation website, click
Try it to open the interface for creating a request. - In the
Security block, in theBearer Token field, enter the token obtained while passing the authentication procedure. - In the
Body block, pass order details, e.g., quantity of item quantity. To access sandbox mode, pass"sandbox": true
. - In the
Parameters block, pass:project_id
— project ID that you can find in Publisher Account.item_sku
— item SKU.
Note
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
Found a typo or other text error? Select the text and press Ctrl+Enter.