Focusing on managing products, variants, and collections through the API.
Hello, with .net 6, I send a request to the API via httpclient to update the product and variant stock. Although the response returns 200 OK, the stock of the product is never updated.
When I try it with Shopifysharp, I call it with the asynchronous method and there is never a response.
The API responds to most of my requests, for example, fetching a list of products, fetching a specific product. In the App panel, I see that I have given all permissions to the API, but it does not update the product stock.
I'm waiting for your help, thank you in advance.
Solved! Go to the solution
This is an accepted solution.
Hi there 👋
Could you please provide the full API request you are making, and the full response you are receiving?
It is important to note that the inventory_quantity field on the Product Variant is a read-only field.
Instead you would need to use the Inventory Level resource.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi there 👋
Could you please provide the full API request you are making, and the full response you are receiving?
It is important to note that the inventory_quantity field on the Product Variant is a read-only field.
Instead you would need to use the Inventory Level resource.
To learn more visit the Shopify Help Center or the Community Blog.
Hello, thank you very much for your help. I made the necessary adjustments in the Inventory Level section.