Question:
I am using the eCommerce Create Order API, and it’s erroring out with HTTP status 500 with the response body below. Even after the error, the order is getting created without consuming the inventory. The product used in the call has the inventory.
Error response:
{
"message": "Insufficient inventory for order: c8b995e7-e5d9-4624-ba30-95186fe48ee2",
"details": {
"applicationError": {
"code": "INSUFFICIENT_INVENTORY"
}
}
}
Request:
I am specifying the product using the
{
"catalogReference": {
"catalogItemId": "add03708-022c-2694-b820-8b00aa018733",
"appId": "215238eb-22a5-4c36-9e7b-xxxxxxxxxxxx"
}
}
Product:
Wix eCommerce API. I am using POST https://www.wixapis.com/ecom/v1/orders endpoint.
What are you trying to achieve:
I am trying to create a Wix order using an API call.
What have you already tried:
The order creation works fine using the Wix studio. But it’s failing with an API call.
Additional information:
Please let me know if this is the right API to use for creating an order. The existing store Create Order API is deprecating Sep 2024, but I am not sure if the one I used is stable enough.