Xsolla-logo

Create order with all items from particular cart

post/v2/project/{project_id}/distribution_hub/payment/cart/{cart_id}

Creates an order with all items from the particular cart. The created order will get a new order status.

SecurityAuthForClient
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
cart_id
required
string

Cart ID.

Example: custom_id
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 cart. Check that cart exists, not empty, and all items in it are not free.

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