콘텐츠로 이동
앱 설치
한국어

[GET] 규칙 상세

AI 개요

ID로 출시 예정 규칙 한 건의 세부 정보를 반환하는 엔드포인트를 설명합니다.

  • 정수 coming_soon_id와 함께 GET /shop-api/coming-soon/get/{coming_soon_id}를 호출합니다. 속도 제한은 throttle:30,1입니다.
  • 응답에는 날짜, 카운트다운, apply_to 대상, 상태, 언어별 translations가 포함됩니다.
  • 오류에는 "ID is required"와 "Coming soon product not found"가 있습니다.

AI가 생성한 요약입니다. 오류가 있을 수 있으니 아래 전체 가이드를 확인하세요.

* 인증

필수 Authorization

제한 throttle:30,1

요청

엔드포인트 GET - /shop-api/coming-soon/get/{coming_soon_id}

경로 매개변수 : coming_soon_id // 출시 예정 규칙 ID (정수)

매개변수 유형 필수
coming_soon_id integer yes
GET /shop-api/coming-soon/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/coming-soon/get/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/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,
"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 => hiển thị countdown timer
"apply_to": "variant", // "all" | "product" | "variant" | "collection"
"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)
"translations": { // translate text with multiple language (nullable)
"default": {
"comingSoonAddToCartText": "Coming Soon", // (nullable)
"comingSoonAddToCartText": "", // (nullable)
"comingSoonBellowMessage": "" // (nullable)
}
// "en" : {...}, "jp" : {...}, "fr": {...}, ...
},
"status": true, // true => rule active, false => inactive
"created_at": "2026-07-01T10:00:00.000000Z",
"updated_at": "2026-07-03T10:00:00.000000Z"
}
}

실패

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

도움이 되었나요?

문제 신고