跳到內容
安裝應用程式
繁體中文

[GET] 訂閱清單

AI 概覽

說明以分頁方式回傳商店到貨通知登記的端點。

  • 呼叫 GET /shop-api/back-in-stock/list,可選擇加上 page 參數。
  • 需要 Authorization Bearer 標頭;速率限制為 throttle:30,1。
  • 每筆登記包含商品和款式 ID、顧客電子郵件和電話、標題、SKU 以及時間戳記。
  • 補貨郵件待傳送時 status 為 0,已傳送時為 1。

摘要由 AI 產生,可能有誤,請以下方完整指南為準。

* 驗證

必要 Authorization: Bearer ••••••••••••••••••••••••••••••••••••

限制 throttle:30,1

請求

擷取商店的到貨通知 (BIS) 訂閱清單,支援分頁。

端點 GET - /shop-api/back-in-stock/list?page=1

參數 類型 必填
page number no
GET /shop-api/back-in-stock/list?page=1 HTTP/1.1
Host: preorder.globo.io
Authorization: ************
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/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/back-in-stock/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 ID
"product_id": 1234567890, // Shopify product ID without gid://shopify/Product/
"variant_id": 9876543210,// Shopify variant ID without gid://shopify/Variant/
"customer_email": "[email protected]",
"customer_phone": "+84123456789",
"product_title": "Product Name",
"variant_title": "Size M / Blue",
"sku": "SKU-001",
"status": 0, // 0 => pending send mail restock, 1 => sent
"created_at": "2026-07-03T10: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"
}

這個頁面有幫助嗎?

回報問題