Xsolla-logo

Create order with specified item

post/v2/project/{project_id}/distribution_hub/payment/item/{item_sku}

Creates an order with a specified item. The created order will get a new order status.

SecurityAuthForClient
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
item_sku
required
string

Item SKU.

Example: booster_mega_1
Request Body schema: application/json

Object with order creation data.

geotype
required
number

Distributor partner ID on the Xsolla's side.

currency
required
string

Preferred payment currency. Three-letter currency code per ISO 4217.

quantity
integer

Item quantity.

Responses
200

Order was successfully created.

422

Invalid item. Check that item exists, not turned off, deleted, and not free.

Request samples
application/json
{
  • "geotype": 13038
}
Response samples
application/json
{
  • "order_id": 641,
  • "billing_info": {
    }
}