跳转到内容
安装应用
简体中文

[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"
}

此页面对您有帮助吗?

报告问题