Solved

Product, Variant quantity is not updated

EmrullahYilmaz
Tourist
4 1 0

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.

Accepted Solution (1)

lizk
Shopify Staff
246 58 71

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.

View solution in original post

Replies 2 (2)

lizk
Shopify Staff
246 58 71

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.

EmrullahYilmaz
Tourist
4 1 0

Hello, thank you very much for your help. I made the necessary adjustments in the Inventory Level section.