[PUT] 登録を別の登録に移行
AI による概要
再入荷通知の登録を別の商品とバリエーションに移すエンドポイントを説明します。
PUT /shop-api/back-in-stock/updateを呼び出します。レート制限はthrottle:30,1です。submission_id、new_product_id、new_variant_idは必須です。noteとpendingは任意です。- ステータスはデフォルトでは変わりません。
pending = trueにすると、再入荷メールの送信前の状態に戻ります。 - 商品タイトル、バリエーションタイトル、SKU、在庫 ID は、新しい Shopify 商品から同期されます。顧客のメールアドレスと電話番号は変わりません。
AI が生成した要約です。誤りが含まれる場合があるため、下記のガイド全文をご確認ください。
* 認証
必須 Authorization
制限 throttle:30,1
リクエスト
エンドポイント PUT - /shop-api/back-in-stock/update
ペイロード本文
デフォルトでは、登録のステータスは変更されません。
pending = trueの場合、登録のステータスは再入荷メールが送信される前の状態に戻ります。
| パラメーター | 型 | 必須 |
|---|---|---|
| submission_id | integer | yes |
| new_product_id | number | yes |
| new_variant_id | number | yes |
| note | string | no |
| pending | boolean true false | no |
PUT /shop-api/back-in-stock/update HTTP/1.1Host: globo.preorder.ioContent-Type: application/jsonAuthorization: ************Content-Length: 123
{ "submission_id": 1, "new_product_id": 9697898955032, "new_variant_id": 49921014628632, "note" : "ok"}const myHeaders = new Headers();myHeaders.append("Content-Type", "application/json");myHeaders.append("Authorization", "************");
const raw = JSON.stringify({ "submission_id": 1, "new_product_id": 9697898955032, "new_variant_id": 49921014628632, "note": "ok"});
const requestOptions = { method: "PUT", headers: myHeaders, body: raw, redirect: "follow"};
fetch("https://preorder.globo.io/shop-api/back-in-stock/update", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error));$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL => 'https://preorder.globo.io/shop-api/back-in-stock/update', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'PUT', CURLOPT_POSTFIELDS =>'{ "submission_id": 1, "new_product_id": 9697898955032, "new_variant_id": 49921014628632, "note" : "ok"}', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: ••••••' ),));
$response = curl_exec($curl);
curl_close($curl);echo $response;成功時のレスポンス 200
{ "success": true, "message": "Submission updated successfully", "data": { "id": 12345, "product_id": 7891234567890, // changed to new product_id "variant_id": 43900910010999, // changed to new variant_id "customer_phone": "+84123456789", // Not change "product_title": "Product Name", // Sync new product Shopify "variant_title": "Size L / Red", // Sync new product Shopify "sku": "SKU-002", // Sync new product Shopify "inventory_id": "45678901234", // Sync new product Shopify inventory_item_id "status": 0, // Leave as is if not submitted pending "last_sent": null, // Leave as is if not submitted pending "opened": 0, // Leave as is if not submitted pending "clicked": 0, // Leave as is if not submitted pending "note": "test", // Update if necessary. "created_at": "2026-07-06T10:00:00.000000Z", "updated_at": "2026-07-06T15:00:00.000000Z" }}失敗
{ "success": false, "message": "Back in stock product not found" }{ "success": false, "message": "Variant not found" }{ "success": false, "message": "The submission id field is required." }{ "success": false, "message": "Something went wrong" }このページは役に立ちましたか?
フィードバックありがとうございます。 足りなかった情報を教える
問題を報告