Shopify fetch_stock APi can only use sku?

Solved
SpaceyLamb
Tourist
4 0 1

Hi everyone,

 

We are using 'fetch_stock' to keep updating the inventory of an individual SKU.

But a bit confused:

1. According to the docs, when Shopify calls a 'fetch_stock' api form our server, it the 'SKU' field to request for the stock.Isn't there be a problem when different apps have same 'SKU'?

2. Except using 'fetch_stock'(or 'SKU'), is there any other way to let Shopify to update the stock from our server?

Any feedback and help will be greatly appreciated.
Thanks

Accepted Solution (1)

Accepted Solutions
L_J_K
Shopify Staff
363 54 65

This is an accepted solution.

Hey @SpaceyLamb 

In the Fetch Stock API, The SKU is the only way that Shopify identifies the Product Variant when the fetch is made. SKU's should be unique. Hope that helps!

 

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 2 (2)
L_J_K
Shopify Staff
363 54 65

This is an accepted solution.

Hey @SpaceyLamb 

In the Fetch Stock API, The SKU is the only way that Shopify identifies the Product Variant when the fetch is made. SKU's should be unique. Hope that helps!

 

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

SpaceyLamb
Tourist
4 0 1

thanks, that's helps