Getting "Unable to claim inventory" error

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

I would first try updating your API version as 2023-07 is extremely out of date. If you update to the latest and ensure your payload is still valid that may help.

Is the inventory available in a location managed by a fulfillment app or Shopify? As this might affect this.

Also is the inventory you can see in available state or on hand?

1 Like