Hi, I am trying to create an order using Shopify Admin REST API, but I am hit with the following error with status code 422:
{
"errors": "Unable to claim inventory"
}
The endpoint I am hitting is POST: https://<my-shop>.myshopify.com/admin/api/2023-07/orders.json
I have checked that I do have valid inventory available for all the lineItems. And even if there were low inventory I should have got the following error instead of the one mentioned above:
{
"errors": {
"line_items": [
"Unable to reserve inventory"
]
}
}
Can someone please help me determining whats the issue here?
Request ID for reference: 3c37901f-3bff-41c7-ac3a-2b694f0acb16-1751358468