Liquid、JavaScriptなどに関する質問
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情報}"
},
~
Shopifyのチェックアウトは世界一コンバージョン率が高いチェックアウトです。2023年4月に実施された世界3大手マネジメントコンサルティング会社の共同調査によると、Sho...
By Minami_ Apr 11, 2024Shopifyのルーツ Shopifyは、スノーボードをオンラインで販売したいという夢を叶えるために2004年に誕生しました。当時は大企業だけがインターネットで販売す...
By JapanGuru Apr 7, 2024リエンゲージメントの自動化で売り上げ向上へ!素敵なオンラインストアを作成し、見込み顧客の携帯へ広告を直接に送信する、またはSNSなどで宣伝すると、お客様がストアに行き着...
By Mirai Mar 24, 2024