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

[GET] 订阅详情

AI 概览

介绍按 ID 返回单个到货提醒订阅详情的端点。

  • 使用整数 submission_id 调用 GET /shop-api/back-in-stock/get/{submission_id}。
  • 需要 Authorization Bearer 标头;速率限制为 throttle:30,1。
  • 响应包含产品、多属性、客户、SKU、库存、电子邮件状态、取消订阅、打开和点击数据。
  • content 是包含自定义表单数据的 JSON 字符串;status 为 1 表示补货邮件已发送。
  • 错误包括“ID is required”和“Back in stock product not found”。

摘要由 AI 生成,可能有误,请以下方完整指南为准。

* 身份验证

必需 Authorization: Bearer ••••••••••••••••••••••••••••••••••••

限制 throttle:30,1

请求

端点 GET - /shop-api/back-in-stock/get/{submission_id}

路径参数:submission_id // Submission ID (integer)

参数类型是否必需
submission_idintegeryes
GET /shop-api/back-in-stock/get/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/get/1323", 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/get/' . $id,
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,
"message": "",
"data": {
"id": 12345, // Unique submission ID
"product_id": 1234567890, // Shopify product ID (numeric, not include gid://shopify/Product/)
"variant_id": 9876543210, // Shopify variant ID (numeric, not include gid://shopify/Variant/)
"customer_email": "[email protected]", // Email register restock notification
"customer_phone": "+84123456789", // Phone number (nullable)
"product_title": "Product Name", // Product name at the time of registration
"variant_title": "Size M / Blue", // Variant name (possibly "Default Title")
"sku": "SKU-001", // SKU variant (nullable)
"inventory_id": "45678901234", // Shopify inventory_item_id, used for inventory matching
"status": 0, // 0 => email not sent, 1 => restock email sent
"last_sent": "2026-07-03T10:00:00.000000Z", // Last email sent (nullable)
"unsubscribe": 0, // 0 => still receiving notifications, 1 => unsubscribed
"content": "{\"source\":\"manual\",\"keyLabel\":\"...\"}", // JSON string — Custom form data during signup (nullable)
"locale": "default", // Locale use in template email notification
"opened": 0, // 0 => email not opened; if opened, it's a datetime string according to the shop timezone.
"clicked": 0, // 0 => The link in the email hasn't been clicked yet; if it has been clicked, then it's a datetime string.
"note": "VIP customer", // Internal notes (nullable)
"created_at": "2026-07-03T10:00:00.000000Z",
"updated_at": "2026-07-03T10:00:00.000000Z"
}
}

失败

// Missing ID
{
"success": false,
"message": "ID is required"
}
// Not found
{
"success": false,
"message": "Back in stock product not found"
}
// catch
{
"success": false,
"message": "Something went wrong"
}

此页面对您有帮助吗?

报告问题