This method has been replaced with Create Order, and will be removed on September 4, 2024.
Deprecation Notice:
This endpoint has been replaced with eCommerce Create Order and will be removed on September 4, 2024.
Creates a new order.
Notes:
paymentStatus
parameter set as "PAID"
or "NOT_PAID"
will show up in the site owner's Stores Orders tab in their dashboard.billingInfo.paymentProviderTransactionId
and billingInfo.paymentMethod
parameters can only be passed when paymentStatus is PAID.billingInfo
.address parameter is required unless channelInfo.type: "POS"
.shippingInfo.shipmentDetails.address
parameter is required unless one of the following is true:
shippingInfo.pickupDetails
is passed insteadchannelInfo.type: "POS"
lineItems.lineItemType: "DIGITAL"
.lineItems.variantId
, lineItems.options
is required.lineItems.productId
, lineItem.lineItemType
is limited to "PHYSICAL"
.lineItems.productId
, lineItem.lineItemType
is limited to "CUSTOM_AMOUNT_ITEM"
.You can only call this method when authenticated as a Wix app or Wix user identity.
curl 'https://www.wixapis.com/stores/v2/orders' \
--data-binary '{
"order": {
"totals": {
"subtotal": "10",
"total": "10"
},
"billingInfo": {
"address": {
"email": "Ivanushka@example.com"
}
},
"shippingInfo": {
"shipmentDetails": {
"address": {
"email": "Ivanushka@example.com"
}
}
},
"paymentStatus": "PAID",
"lineItems": [
{
"quantity": 1,
"name": "my product",
"priceData": {
"price": "10"
}
}
],
"channelInfo": {
"type": "WEB"
}
}
}' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
{
"order": {
"totals": {
"subtotal": "7",
"total": "10"
},
"billingInfo": {
"address": {
"email": "tomj5@example.com"
}
},
"paymentStatus": "PAID",
"lineItems": [
{
"quantity": 1,
"price": "5",
"name": "my product"
}
],
"channelInfo": {
"type": "WEB"
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.