[GET] 구독 제품 목록
AI 개요
고객이 신청한 이형 상품을, 이형 상품별 대기 중, 전송 완료, 실패, 수신 거부 고객 수와 함께 나열하는 엔드포인트를 설명합니다.
GET /shop-api/back-in-stock/products를 호출합니다. 속도 제한은throttle:60,1입니다.- 선택 매개변수는
page,per_page(1~100, 기본값 10),query,state,stock,sort입니다. state는ready,waiting,notified,problem으로 필터링하고,stock은in_stock또는out_of_stock으로 필터링합니다.sort에는waiting:desc와 같은 키를 최대 3개까지 사용할 수 있으며, 기본값은 구독자가 많은 순입니다.- 이메일 주소가 있는 신청만 집계됩니다.
waiting,sent,failed,unsubscribed의 합계가subscribers입니다.
AI가 생성한 요약입니다. 오류가 있을 수 있으니 아래 전체 가이드를 확인하세요.
* 인증
필수 Authorization: Bearer ••••••••••••••••••••••••••••••••••••
제한 throttle:60,1
요청
고객이 신청한 이형 상품을 이형 상품별 한 행으로 조회합니다. 대기 중인 고객, 재입고 이메일을 받은 고객, 실패한 고객, 구독을 취소한 고객의 수가 함께 표시됩니다. 페이지 나누기, 검색, 필터, 정렬을 지원합니다.
엔드포인트 GET - /shop-api/back-in-stock/products?page=1&per_page=10
| 매개변수 | 유형 | 필수 |
|---|---|---|
| page | number | no |
| per_page | number | no |
| query | string | no |
| state | string | no |
| stock | string | no |
| sort | string | no |
page— 페이지 번호이며1부터 시작합니다. 기본값은1입니다.per_page— 페이지당 이형 상품 수이며1~100입니다. 기본값은10입니다.query— 제품 제목, 이형 상품 제목 또는 SKU로 검색합니다.state— 다음 중 하나입니다.all(기본값)ready— 대기 중인 고객이 있고 이형 상품이 재입고되었습니다waiting— 대기 중인 고객이 있고 이형 상품이 아직 품절입니다notified— 더 이상 대기 중인 고객이 없습니다problem— 재입고 이메일이 하나 이상 발송에 실패했습니다
stock—all(기본값),in_stock,out_of_stock.sort— 쉼표로 구분된 최대 3개의 키이며, 각 키는key:asc또는key:desc형식으로 작성합니다. 키:product,waiting,notified,subscribers,last_added. 기본값: 구독자가 많은 순. 예시:waiting:desc,last_added:desc.
이메일 주소가 있는 신청만 집계됩니다.
GET /shop-api/back-in-stock/products?page=1&per_page=10&state=waiting&sort=waiting:desc 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/back-in-stock/products?page=1&per_page=10&state=waiting&sort=waiting:desc", 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/products?page=1&per_page=10&state=waiting&sort=waiting:desc', 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
waiting, sent, failed, unsubscribed는 서로 겹치지 않으며 합계는 항상 subscribers와 같습니다.
{ "success": true, "data": [ { "product_id": 1234567890, // Shopify product ID without gid://shopify/Product/ "variant_id": 9876543210, // Shopify variant ID without gid://shopify/ProductVariant/ "product_title": "Product Name", "variant_title": "Size M / Blue", // "Default Title" if the product has no variants "sku": "SKU-001", // nullable "inventory_available": 0, // Latest available quantity recorded for the variant, null if not recorded yet "state": "waiting", // ready => waiting customers + in stock, waiting => waiting customers + out of stock, notified => nobody waiting "subscribers": 41, // Total sign-ups for this variant "waiting": 39, // Not sent the restock email yet "sent": 1, // Restock email sent "failed": 1, // Restock email failed to send "unsubscribed": 0, // Unsubscribed before the restock email was sent "opened": 0, // Customers who opened the restock email "clicked": 0, // Customers who clicked the restock email "last_subscribed_at": "2026-07-03 10:00:00", // Latest sign-up "last_sent_at": "2026-07-05 08:30:00" // Latest restock email, null if none sent } ], "pagination": { "total": 25, // Total variants "per_page": 10, "current_page": 1, "last_page": 3, "from": 1, // null if the page is empty "to": 10 // null if the page is empty }}실패
{ "success" => false, "message" => "The selected state is invalid."}| Message | 발생 시점 |
|---|---|
The page must be at least 1. |
page가 1보다 작은 경우 |
The per page may not be greater than 100. |
per_page가 범위를 벗어난 경우 |
The selected state is invalid. |
state가 위의 값 중 하나가 아닌 경우 |
The selected stock is invalid. |
stock이 위의 값 중 하나가 아닌 경우 |
Something went wrong |
예기치 않은 오류 |
도움이 되었나요?
의견을 보내 주셔서 감사합니다! 부족한 내용을 알려 주세요
문제 신고