Question:
I want to use ecom/create order rest api of wix to create a order on wix store but using this api everything is working fine and order is created but in wix store order description page it is not mention the option of product for which order is created i.e color,size etc.
Product:
Wix Rest Api
ecommerce/ create order
I’m using below payload to create order
{
“order”: {
“lineItems”: [
{
“productName”: { “original”: “Variant Test” },
“catalogReference”: {
“catalogItemId”: “62f69e45-e12c-8e93-6178-e2a75cf47c7b”,
“appId”: “215238eb-22a5-4c36-9e7b-e7c08025e04e”,
“options”: {
“variantId”: “3995da13-7d26-4d0f-8fb8-d058b7277416”
}
},
“quantity”: 2,
“itemType”: { “preset”: “PHYSICAL” },
“price”: { “amount”: “90” },
“taxInfo”: {
“taxAmount”: { “amount”: “0” },
“taxableAmount”: { “amount”: “0” },
“taxRate”: “0”,
“taxIncludedInPrice”: false
}
}
],
“buyerInfo”: { “email”: “anikesh@yahoo.com” },
“paymentStatus”: “NOT_PAID”,
“taxIncludedInPrices”: false,
“priceSummary”: {
“subtotal”: { “amount”: “180” },
“shipping”: { “amount”: “0” },
“tax”: { “amount”: “0” },
“discount”: { “amount”: “0” },
“total”: { “amount”: “180” }
},
“billingInfo”: {
“address”: {
“country”: “IN”,
“subdivision”: “UP”,
“city”: “Noida”,
“postalCode”: “201301”,
“addressLine”: “h-28 Sector 63”
},
“contactDetails”: { “firstName”: “Sharma” }
},
“shippingInfo”: {
“logistics”: {
“shippingDestination”: {
“address”: {
“country”: “IN”,
“subdivision”: “UP”,
“city”: “Noida”,
“postalCode”: “201301”,
“addressLine”: “h-28 Sector 63”,
“countryFullname”: “India”,
“subdivisionFullname”: “Uttar Pradesh”
},
“contactDetails”: { “firstName”: “Sahai” }
}
}
},
“status”: “APPROVED”,
“archived”: false,
“channelInfo”: { “type”: “OTHER_PLATFORM” }
}
}
please help me to get rid of this.
Thanks & Regards
Shivam