[GET] 제품 목록
AI 개요
사전 주문 제품 및 이형 상품 행을 나열하고 각 이형 상품에 어떤 오퍼가 우선 적용되는지 보여 주는 엔드포인트를 설명합니다.
- 선택 사항인
keyword와page와 함께GET /shop-api/pre-order/products/list를 호출합니다. 페이지당 10행입니다. keyword는 Shopify를 통해 제목, SKU 등의 필드로 검색합니다.- 각 행에는 우선 적용 오퍼, 해당 이형 상품의 모든 오퍼 ID,
limit,end_quantity,units_sold가 표시됩니다. - 이형 상품이 여러 오퍼에 포함된 경우 수동 지정이 우선이고, 그다음
product,collection,all순이며, 그다음이 가장 최신 오퍼입니다.
AI가 생성한 요약입니다. 오류가 있을 수 있으니 아래 전체 가이드를 확인하세요.
* 인증
필수 Authorization
제한 throttle:30,1
요청
엔드포인트 GET - /shop-api/pre-order/products/list?page=1
헤더
| 헤더 | 필수 | 설명 |
|---|---|---|
Authorization | 예 | 스토어 공개 API 키 Bearer token |
1. 요청 페이로드
GET 쿼리 매개변수입니다(JSON 본문 없음).
| 매개변수 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
keyword | string | 아니요 | "" | Shopify를 통해 검색합니다(제목/SKU 등). 일치하는 제품/이형 상품 ID로 목록을 필터링합니다. |
page | integer | 아니요 | 1 | 페이지 번호(최소 1). |
예시
GET /shop-api/pre-order/products/list?keyword=hoodie&page=1Authorization: Bearer token2. 성공 응답 200
{ "success": true, "data": [ { "id": 5012, "product_id": 7890123456789, "variant_id": 4567890123456, "profile_id": 123, "priority_profile_id": 123, "priority_type": "product", "all_profile_ids": "123,456", "is_manual_assign": true, "limit": 100, "end_quantity": 5, "units_sold": 12, "updated_at": "2026-08-07 10:15:00" } ], "pagination": { "total": 42, "per_page": 10, "current_page": 1, "last_page": 5, "from": 1, "to": 10 }, "total_products": 42}3. 응답 키 및 필드
최상위
| 키 | 유형 | 설명 |
|---|---|---|
success | boolean | 성공 시 true |
data | array | 현재 페이지의 제품/이형 상품 행 |
pagination | object | 필터링된 목록의 페이지 매김 메타데이터 |
total_products | integer |
pagination
| 키 | 유형 | 설명 |
|---|---|---|
total | integer | 일치하는 그룹화된 행의 총 개수 |
per_page | integer | 항상 10 |
current_page | integer | 현재 페이지 |
last_page | integer | 마지막 페이지 |
from | integer | null | 이 페이지의 첫 번째 항목 인덱스 |
to | integer | null | 이 페이지의 마지막 항목 인덱스 |
data[] 항목
| 필드 | 유형 | 설명 |
|---|---|---|
id | integer | 우선순위 제품 레코드의 DB 행 ID |
product_id | integer | string | Shopify 제품 ID |
variant_id | integer | string | Shopify 이형 상품 ID |
profile_id | integer | 우선순위 오퍼 ID(priority_profile_id와 동일) |
priority_profile_id | integer | 이형 상품이 여러 오퍼에 포함된 경우 선택된 오퍼 |
priority_type | string | 우선순위 오퍼의 적용 유형: product, collection 또는 all |
all_profile_ids | string | 이 이형 상품을 포함하는 오퍼 ID를 쉼표로 구분한 값 |
is_manual_assign | boolean | 우선순위 지정이 수동인지 여부 |
limit | integer | null | 우선순위 행의 사전 주문 수량 제한 |
end_quantity | integer | null | 우선순위 행의 종료 수량 임계값 |
units_sold | integer | null | 우선순위 행에서 판매된 수량 |
updated_at | string | 그룹화된 행 중 가장 최근의 updated_at(정렬에 사용) |
우선순위 오퍼 선택
이형 상품이 여러 오퍼에 속한 경우 우선순위는 다음과 같습니다.
- 수동 지정(
is_manual_assign = true)이 먼저입니다 - 그다음 적용 유형 가중치:
product(1) →collection(2) →all(3) - 그다음 가장 최근의 오퍼
updated_at
4. 실패 응답
예기치 않은 서버 오류 — HTTP 200
{"success": false,"message": "Something went wrong"}빈 결과(성공으로 처리됨)
{"success": true,"data": [],"pagination": {"total": 0,"per_page": 10,"current_page": 1,"last_page": 1,"from": null,"to": null},"total_products": 0}도움이 되었나요?
의견을 보내 주셔서 감사합니다! 부족한 내용을 알려 주세요
문제 신고