post

/sandbox/orders/create

Create test orders.

Simulates the purchase of given products by a single user in one transaction. The number of created orders will be equal to the length of items array in the request body. All created orders will have the same transactionId.

Conditions

Can only be used in sandbox environment.

Product variants used for order creation must be available for purchase. If one of the products in items field of request body is unavailable for purchase, an error with HTTP code 404 (Not Found) will be returned.

Returns

The created order.

Request Body

Schema
object
items
array[object]

Items to buy

required

Responses

Schema
object
data
object

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host