Using the Inventory API

Step 1 - Query product variants (
Get Inventory Variants endpoint)

コピー
1

From the result, you can see whether inventory is being tracked for this product:

コピー
1

Step 2 - Update a specific variant of a product (
Update Inventory Status endpoint)

Update whether the product inventory is tracked:

コピー
1

For a non-tracked product, you should update inStock:

コピー
1

For tracked products, you should update quantity:

コピー
1
役に立ちましたか?
はい
いいえ