Inventory_levels set API return with "not found" error. All other APIs working correctly

Topic summary

A user encountered a “not found” error when attempting to update inventory levels via the Shopify API, despite other API operations (like price updates) working correctly. The issue persisted across multiple API versions (2024-04 and 2023-07) and occurred even when testing through Postman, while manual updates through the Shopify admin console worked fine.

Root Cause Identified:
The inventory_levels API only functions when using the default Shopify domain format (e.g., store.myshopify.com). Requests made using custom domains or Shopify subdomains fail with the “not found” error.

Resolution:

  • Verify that API requests use the shop’s default Shopify domain
  • Switch from custom domains back to the *.myshopify.com format for API calls

Status: The original poster resolved their issue by identifying the domain requirement. Another user encountered the same problem, confirming this is a recurring issue. No official response from Shopify support was received despite initial contact attempts.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

We have a stock and price update service, which is trying to update the stock of an item through API. But, it fails with a message “not found”.

The same service was working fine with a test account. Price and stock were updating correctly. When we switched credentials to the actual site, only the price update worked and the stock update failed with “not found” message.
This happens every time. It happens even if I try the same request from Postman.

We tried with API versions 2024-04 and 2023-07.

Is it happening only via the API. We can directly update the stock by logging in to the shopify admin console.

Request
/admin/api/2024-04/inventory_levels.json?inventory_item_ids=51191952113953
Response

{
“inventory_levels”: [
{
“inventory_item_id”: 51191952113953,
“location_id”: 76281872673,
“available”: 2,
“updated_at”: “2024-06-04T11:52:50+03:00”,
“admin_graphql_api_id”: “gid://shopify/InventoryLevel/112663920929?inventory_item_id=51191952113953”
}
]
}

Please find the below request where it failed to update the inventory level

Request
/admin/api/2024-04/inventory_levels/set.json

{
“inventory_item_id”: 51191952113953,
“location_id”: 76281872673,
“available”: 3
}

Response

{
“errors”: “Not Found”
}

Please note that I contacted Shopify support team and there is no response from them after the initial email.

Hello, I also encountered the same problem as yours. I wonder if you have solved it. I see that it has been a long time since the problem was solved.

I wanted to share that I’ve been able to identify and resolve the problem.

The Issue:

It turns out the API currently only works when using the default Shopify domain (e.g., abcd123.shopify.com). When using a custom domain, whether it’s a Shopify subdomain (e.g., customsite.shopify.com) or a completely different domain (e.g., customsite.com), the API calls will fail.

The Resolution:

While I didn’t receive direct support from Shopify, I was able to troubleshoot and determine the API’s behavior with different domain configurations.

Key Takeaway:

For now, it seems using the default Shopify domain is necessary for successful API calls.

If you’re facing a similar issue:

Double-check the domain you’re using in your API requests. Ensure it matches your shop’s default Shopify domain.