Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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 103

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 103

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
104 7 27

Would you please add barcode?