[GET] 登録済み商品の一覧
AI による概要
顧客が登録したバリエーションを、バリエーションごとの待機中、送信済み、失敗、配信停止の顧客数とともに一覧表示するエンドポイントを説明します。
GET /shop-api/back-in-stock/productsを呼び出します。レート制限はthrottle:60,1です。- オプションのパラメーターは、
page、per_page(1~100、デフォルトは 10)、query、state、stock、sortです。 stateはready、waiting、notified、problemで絞り込み、stockはin_stockまたはout_of_stockで絞り込みます。sortにはwaiting:descのようなキーを最大 3 つ指定できます。デフォルトは登録者数の多い順です。- メールアドレスがある登録のみがカウントされます。
waiting、sent、failed、unsubscribedの合計がsubscribersになります。
AI が生成した要約です。誤りが含まれる場合があるため、下記のガイド全文をご確認ください。
* 認証
必須 Authorization: Bearer ••••••••••••••••••••••••••••••••••••
制限 throttle:60,1
リクエスト
顧客が登録したバリエーションを、バリエーションごとに1行で取得します。待機中の顧客数、再入荷メールの送信済み数、失敗数、登録解除数も確認できます。ページネーション、検索、フィルター、並べ替えに対応しています。
エンドポイント GET - /shop-api/back-in-stock/products?page=1&per_page=10
| パラメーター | 型 | 必須 |
|---|---|---|
| page | number | no |
| per_page | number | no |
| query | string | no |
| state | string | no |
| stock | string | no |
| sort | string | no |
page— ページ番号(1から)。デフォルトは1です。per_page— 1ページあたりのバリエーション数(1~100)。デフォルトは10です。query— 商品タイトル、バリエーションタイトル、またはSKUで検索します。state— 次のいずれかです。all(デフォルト)ready— 待機中の顧客がいて、バリエーションが再入荷しているwaiting— 待機中の顧客がいて、バリエーションがまだ在庫切れであるnotified— 待機中の顧客がもういないproblem— 再入荷メールの送信に1件以上失敗している
stock—all(デフォルト)、in_stock、out_of_stock。sort— カンマで区切った最大3つのキー。それぞれkey:ascまたはkey:descの形式で指定します。キー:product、waiting、notified、subscribers、last_added。デフォルトは登録者数の多い順です。例:waiting:desc,last_added:desc。
メールアドレスのある登録のみがカウントされます。
GET /shop-api/back-in-stock/products?page=1&per_page=10&state=waiting&sort=waiting:desc HTTP/1.1Host: preorder.globo.ioAuthorization: ************const myHeaders = new Headers();myHeaders.append("Authorization", "************");const requestOptions = { method: "GET", headers: myHeaders, redirect: "follow"};fetch("https://preorder.globo.io/shop-api/back-in-stock/products?page=1&per_page=10&state=waiting&sort=waiting:desc", 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/products?page=1&per_page=10&state=waiting&sort=waiting:desc', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Authorization: ************' ),));$response = curl_exec($curl);curl_close($curl);echo $response;成功時のレスポンス 200
waiting、sent、failed、unsubscribedは重複せず、合計は常にsubscribersと一致します。
{ "success": true, "data": [ { "product_id": 1234567890, // Shopify product ID without gid://shopify/Product/ "variant_id": 9876543210, // Shopify variant ID without gid://shopify/ProductVariant/ "product_title": "Product Name", "variant_title": "Size M / Blue", // "Default Title" if the product has no variants "sku": "SKU-001", // nullable "inventory_available": 0, // Latest available quantity recorded for the variant, null if not recorded yet "state": "waiting", // ready => waiting customers + in stock, waiting => waiting customers + out of stock, notified => nobody waiting "subscribers": 41, // Total sign-ups for this variant "waiting": 39, // Not sent the restock email yet "sent": 1, // Restock email sent "failed": 1, // Restock email failed to send "unsubscribed": 0, // Unsubscribed before the restock email was sent "opened": 0, // Customers who opened the restock email "clicked": 0, // Customers who clicked the restock email "last_subscribed_at": "2026-07-03 10:00:00", // Latest sign-up "last_sent_at": "2026-07-05 08:30:00" // Latest restock email, null if none sent } ], "pagination": { "total": 25, // Total variants "per_page": 10, "current_page": 1, "last_page": 3, "from": 1, // null if the page is empty "to": 10 // null if the page is empty }}失敗
{ "success" => false, "message" => "The selected state is invalid."}| Message | 発生する場合 |
|---|---|
The page must be at least 1. |
pageが1未満 |
The per page may not be greater than 100. |
per_pageが範囲外 |
The selected state is invalid. |
stateが上記の値のいずれでもない |
The selected stock is invalid. |
stockが上記の値のいずれでもない |
Something went wrong |
予期しないエラー |
このページは役に立ちましたか?
フィードバックありがとうございます。 足りなかった情報を教える
問題を報告