FROM CACHE - jp_header

商品更新APIについて

IMD
Shopify Partner
9 0 0

下記内容で商品更新APIにアクセスしたのですが、
レスポンスがずっと返ってきません。

 

原因をお教えいただいてもよろしいでしょうか?

 

〇リクエストBody
{
"title": "最高級霜降りロースすきやきセット",
"body_html": "綺麗な霜降りのロース肉を使った、最高級のすき焼き用のお肉です。\r\n脂の濃厚な旨みと、口の中でとろける柔らな味わいがすき焼きにぴったりです。\r\n化学調味料無添加のオリジナル割下400mlをギフト用箱に入れてご用意いたします。\r\n重さは二種類ご用意しております。g数をお選びください。\r\n<b><span style=\"color:brown;\">【560g】(2~5人前)7,000円\r\n【940g】(5~7人前)11,000円</b></span>\r\n<span class=\"small\">※配送タイプは、冷蔵便・冷凍便どちらでもナマ肉をご用意します。輸送段階で冷蔵又は冷凍庫内で運ばれていくようになります。予めご了承ください。\r\n完全な冷凍状態を希望される場合は、その旨お問い合わせ欄にご記入ください。冷凍庫で凍らせてから発送いたします。但し、その際はお届け日に2日以上の余裕が必要です。</span>",
"published_at": "2020-04-02T18:57:48.135759+09:00",
"vendor": null,
"product_type": "",
"handle": "544",
"template_suffix": null,
"published_scope": "web",
"tags": null,
"variants": [
{
"product_id": null,
"title": "最高級霜降りロースすきやきセット",
"sku": "8900-44",
"position": null,
"grams": null,
"inventory_policy": "deny",
"fulfillment_service": null,
"inventory_item_id": null,
"inventory_management": "shopify",
"price": 11000,
"option1": "選択してください",
"option2": "560g",
"option3": null,
"taxable": false,
"tax_code": null,
"requires_shipping": true,
"barcode": "",
"inventory_quantity": 0,
"old_inventory_quantity": null,
"inventory_quantity_adjustment": null,
"weight": 1666,
"weight_unit": "g",
"metafields": null,
"presentment_prices": null,
"id": null,
"admin_graphql_api_id": null
},
{
"product_id": null,
"title": "最高級霜降りロースすきやきセット",
"sku": "8900-43",
"position": null,
"grams": null,
"inventory_policy": "deny",
"fulfillment_service": null,
"inventory_item_id": null,
"inventory_management": "shopify",
"price": 11000,
"option1": "選択してください",
"option2": "940g",
"option3": null,
"taxable": false,
"tax_code": null,
"requires_shipping": true,
"barcode": "",
"inventory_quantity": 0,
"old_inventory_quantity": null,
"inventory_quantity_adjustment": null,
"weight": 1666,
"weight_unit": "g",
"metafields": null,
"presentment_prices": null,
"id": null,
"admin_graphql_api_id": null
}
],
"options": [
{
"product_id": null,
"name": "選択してください",
"position": 1,
"values": [
"選択してください"
],
"id": null,
"admin_graphql_api_id": null
},
{
"product_id": null,
"name": "重量",
"position": 2,
"values": [
"560g",
"940g"
],
"id": null,
"admin_graphql_api_id": null
}
],
"images": [
{
"product_id": null,
"position": 1,
"created_at": null,
"updated_at": null,
"src": "https://v2.raku2han.jp/images/1828/cabinet/item/5d26cf0120aa4.jpg",
"attachment": null,
"variant_ids": null,
"height": null,
"width": null,
"alt": null,
"metafields": null,
"id": null,
"admin_graphql_api_id": null
},
{
"product_id": null,
"position": 2,
"created_at": null,
"updated_at": null,
"src": "https://v2.raku2han.jp/images/1828/cabinet/item/5d29213b5e909.jpg",
"attachment": null,
"variant_ids": null,
"height": null,
"width": null,
"alt": null,
"metafields": null,
"id": null,
"admin_graphql_api_id": null
},
{
"product_id": null,
"position": 3,
"created_at": null,
"updated_at": null,
"src": "https://v2.raku2han.jp/images/1828/cabinet/item/5d2924599bcb0.jpg",
"attachment": null,
"variant_ids": null,
"height": null,
"width": null,
"alt": null,
"metafields": null,
"id": null,
"admin_graphql_api_id": null
},
{
"product_id": null,
"position": 4,
"created_at": null,
"updated_at": null,
"src": "https://v2.raku2han.jp/images/1828/cabinet/item/5d2921461b574.jpg",
"attachment": null,
"variant_ids": null,
"height": null,
"width": null,
"alt": null,
"metafields": null,
"id": null,
"admin_graphql_api_id": null
}
],
"metafields": null,
"id": null,
"admin_graphql_api_id": null
}

2件の返信2

junichiokamura
Community Manager
1200 280 506

商品更新APIのリクエスト先のURLを教えていただけますか? 

レスポンスがずっと返ってきません。

 

レスポンスが返ってこないの詳細を教えていただけますか? プログラム内から呼び出してタイムアウトしている、もしくはcurlコマンドや何かのToolで呼び出してしばらく待ってタイムアウトになっているということでしょうか?(その場合どれくらいの時間でしょうか?)

 

リクエストだけではなくて、同時に送っているHTTP ヘッダー(Access Token,  content-typeなど)も教えていただけますか?

Senior Partner Solutions Engineer
junichiokamura
Community Manager
1200 280 506

AccessTokenと接続先のURLのショップドメインは、適当に改竄してわからないようにしていただいて構いません。構成が正しいか確認したいです。

Senior Partner Solutions Engineer