Shopify fetch_stock APi can only use sku?

Solved

Shopify fetch_stock APi can only use sku?

SpaceyLamb
Shopify Partner
8 1 6

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)

Luke_K
Shopify Staff
402 66 102

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!

 

 

| 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 3 (3)

Luke_K
Shopify Staff
402 66 102

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!

 

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
SpaceyLamb
Shopify Partner
8 1 6

thanks, that's helps

guest4
Shopify Partner
101 7 24

Would you please add barcode?