FROM CACHE - jp_header

Shopify APIにおける在庫数の更新について

IMD蛯名
訪問者
3 0 0

Shopify のAPIを利用して在庫数を更新しているのですが、
急に在庫数の更新ができなくなってしまいました。
 参考API資料:https://shopify.dev/docs/admin-api/rest/reference/products/product?api%5Bversion%5D=2021-07

リクエストでは、在庫数を「0(inventory_quantity = 0)」にしていますが、
レスポンスでは在庫数が更新されず「1(inventory_quantity = 1)」になっております。

一度在庫を変更できるアプリを利用していたので、そちらとの相性の問題かと思い
削除しているのですが更新ができない状態です。
 ※アプリを入れる前は正常に更新できていました。

こちらの原因について教えていただくことは可能でしょうか?
お手数ですが、ご確認いただけますと幸いです。

 

【リクエスト内容】


{
"product_id": null,
"title": "モンクレール スニーカー MONCLER 4M729 00 02SR9 MILIENⅡ 1 ホワイト メンズ 2021年春夏新作 【GO】",
"sku": "99025306-3000033373",
"position": null,
"grams": null,
"inventory_policy": "deny",
"fulfillment_service": null,
"inventory_item_id": null,
"inventory_management": "shopify",
"price": 53680,
"compare_at_price": 67100,
"option1": "ホワイト",
"option2": "41(3000033373)",
"option3": null,
"taxable": false,
"tax_code": null,
"requires_shipping": true,
"barcode": null,
"inventory_quantity": 0,
"weight": 0,
"weight_unit": "kg",
"metafields": null,
"presentment_prices": null,
"id": null,
"admin_graphql_api_id": null
}

【レスポンス内容】


{
"product_id": {product_id情報},
"title": "ホワイト / 41(3000033373)",
"sku": "99025306-3000033373",
"position": 2,
"grams": 0,
"inventory_policy": "deny",
"fulfillment_service": "manual",
"inventory_item_id": {inventory_item_id情報},
"inventory_management": "shopify",
"price": 53680,
"compare_at_price": 67100,
"option1": "ホワイト",
"option2": "41(3000033373)",
"option3": null,
"created_at": "2021-05-06T16:04:35+09:00",
"updated_at": "2021-06-14T11:15:31+09:00",
"taxable": false,
"tax_code": null,
"requires_shipping": true,
"barcode": null,
"inventory_quantity": 1,
"weight": 0,
"weight_unit": "kg",
"metafields": null,
"presentment_prices": null,
"id": {id情報},
"admin_graphql_api_id": "{admin_graphql_api_id情報}"
},

0件の返信0