[GET] 規則清單
AI 概覽
說明以分頁方式回傳商店即將推出規則的端點。
- 傳送
GET請求,可選擇加上page參數,並帶上Authorization標頭;速率限制為throttle:30,1。 - 每條規則包含其名稱、開始和結束日期、
show_countdown、status和時間戳記。 apply_to為all、product、variant或collection,並附上對應的商品 ID、款式 ID 或商品系列 ID。- 回應包含分頁總數和頁碼。
摘要由 AI 產生,可能有誤,請以下方完整指南為準。
* 驗證
必要 Authorization
限制 throttle:30,1
請求
擷取商店的到貨通知 (BIS) 訂閱清單,支援分頁。
端點 GET - /shop-api/back-in-stock/list?page=1
| 參數 | 類型 | 必填 |
|---|---|---|
| page | number | no |
GET /shop-api/coming-soon/list?page=1 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/coming-soon/list?page=1", 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/coming-soon/list?page=1',
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
{ "success": true, "data": [ { "id": 1, // Unique coming soon rule ID "name": "Summer Launch", // Name rule coming soon "start_date": "2026-07-01T00:00:00.000000Z", // Start date (nullable) "end_date": "2026-08-01T00:00:00.000000Z", // End date (nullable) "show_countdown": true, // true | false => show countdown timer "apply_to": "variant", // "all" | "product" | "variant" | "collection" — rule apply to "product_ids": [1234567890], // Array Shopify product IDs when apply_to="product" (nullable) "variant_ids": [9876543210], // Array Shopify variant IDs when apply_to="variant" (nullable) "collection_id": null, // Shopify collection ID when apply_to="collection" (nullable) "status": true, // true => active, false => inactive "created_at": "2026-07-01T10:00:00.000000Z", "updated_at": "2026-07-03T10:00:00.000000Z" } ], "pagination": { "total": 25, "per_page": 10, "current_page": 1, "last_page": 3, "from": 1, "to": 10 }}失敗
{ "success" => false, "message" => "Something went wrong"}這個頁面有幫助嗎?
感謝您的意見回饋! 告訴我們缺少了什麼
回報問題