[GET] 오퍼 상세
AI 개요
ID로 사전 주문 오퍼 한 건의 전체 세부 정보를 반환하는 엔드포인트를 설명합니다.
GET /shop-api/pre-order/get/{offer_id}를 호출합니다. 속도 제한은throttle:30,1입니다.- 목록 엔드포인트와 달리 이형 상품별
limit과units_sold를 포함한 전체products목록을 반환합니다. markets,sellingPlans,start_condition,end_condition, 사용자 지정message텍스트도 반환하며, 모두 읽기 전용입니다.status는 활성이면 1, 초안이면 0입니다. 다른 스토어의 ID를 지정하면 "Offer not found"가 반환됩니다.
AI가 생성한 요약입니다. 오류가 있을 수 있으니 아래 전체 가이드를 확인하세요.
* 인증
필수 Authorization
제한 throttle:30,1
엔드포인트 GET - /shop-api/pre-order/get/{offer_id}
헤더
| 헤더 | 필수 | 설명 |
|---|---|---|
Authorization | 예 | 스토어 공개 API 키 Bearer token |
Content-Type | 예 | application/json |
1. 요청 페이로드
경로 매개변수입니다(JSON 본문 없음).
| 매개변수 | 위치 | 유형 | 필수 | 설명 |
|---|---|---|---|---|
id | path | integer | string | 예 | 오퍼(프로필) ID |
예시
GET /shop-api/pre-order/get/123Authorization: Bearer token ************2. 성공 응답 200
{ "success": true, "data": { "id": 123, "offer_name": "Summer Pre-order", "start_date": "2026-08-01 00:00:00", "end_date": "2026-09-30 23:59:59", "countdown_before_preorder_start": true, "countdown_before_preorder_end": false, "apply_to": "product", "preorder_condition_inventory": "outofstock", "start_condition": { "stock": "outofstock", "stock_value": 0 }, "end_condition": { "stock_value": -10 }, "fulfillment_status": "ON_HOLD", "fulfillment_shipping_date": "2026-10-15", "turn_on_continue_selling_when_preorder_start": true, "turn_off_continue_selling_when_preorder_end": true, "use_purchase_option": true, "status": 1, "markets": { "active": true, "selected": [ { "id": "123456789", "name": "Vietnam", "handle": "vn" } ] }, "sellingPlans": [ { "id": 4444444444, "name": "Full Payment", "position": 1, "description": null }, { "id": 5555555555, "name": "Partial Payment", "position": 2, "description": "You will be charged the remaining balance when the product is released on {{ released }}" } ], "products": [ { "product_id": 7890123456789, "variant_id": 4567890123456, "limit": 100 }, { "product_id": 7890123456790, "variant_id": 4567890123457, "limit": null } ], "full_payment_discount_type": "percentage", "full_payment_discount_value": 10, "partial_payment_value": 30, "partial_payment_value_type": "percentage", "partial_payment_discount_value": 5, "partial_payment_discount_type": "percentage", "partial_payment_remaining_balance_charge_date": "2026-10-01" }}목록과의 차이점: 상세 조회는 오퍼에 저장된 전체 products 목록을 반환합니다. 목록 조회는 apply_to = product일 때 첫 번째 제품 샘플만 반환합니다.
3. 응답 키 및 필드
최상위
| 키 | 유형 | 설명 |
|---|---|---|
success |
boolean | 오퍼를 찾으면 true |
data |
object | 오퍼 상세 객체 |
data 오퍼 객체
| 필드 | 유형 | 설명 |
|---|---|---|
id |
integer | 오퍼 ID |
offer_name |
string | 오퍼 이름 |
start_date |
string | null | 사전 주문 시작 일시 |
end_date |
string | null | 사전 주문 종료 날짜 및 시간. 무제한이거나 설정하지 않은 경우 null |
countdown_before_preorder_start |
boolean | 시작 전 카운트다운 사용 여부 |
countdown_before_preorder_end |
boolean | 종료 전 카운트다운 사용 여부 |
apply_to |
string | product | collection | all |
preorder_condition_inventory |
string | 재고 트리거. 예: now, outofstock, instock |
fulfillment_status |
string | null | ON_HOLD | UNFULFILLMENT | SCHEDULED |
fulfillment_shipping_date |
string | 처리에 정확한 배송 날짜를 사용하는 경우에 포함됩니다 |
fulfillment_after_checkout |
mixed | 처리에 체크아웃 후 일수를 사용하는 경우에 포함됩니다 |
turn_on_continue_selling_when_preorder_start |
boolean | 오퍼 시작 시 계속 판매 자동 켜기 |
turn_off_continue_selling_when_preorder_end |
boolean | 오퍼 종료 시 계속 판매 자동 끄기 |
use_purchase_option |
boolean | 오퍼에 구매 옵션(판매 플랜) 활성화 여부. 기본값은 true |
status |
integer | null | 오퍼 상태 |
| markets | object | null | 오퍼의 시장 타기팅. 읽기 전용 |
| sellingPlans | array | 오퍼의 판매 플랜. 스토어가 판매 플랜을 사용하고 오퍼에 판매 플랜 그룹이 있는 경우에만 포함됩니다. 읽기 전용 |
products |
array | apply_to = product일 때만 포함 |
collection_id |
integer | apply_to = collection일 때만 포함 |
collection_name |
string | 오퍼에 저장된 경우의 선택적 컬렉션 제목 |
full_payment_discount_type |
string | 전액 결제 할인 유형 percentage fixed |
full_payment_discount_value |
number | 전액 결제 할인 값 |
partial_payment_value |
number | null | 보증금 / 부분 결제 금액(부분 결제를 사용하는 경우에만) |
partial_payment_value_type |
string | 부분 결제 금액 유형(percentage | fixed) |
partial_payment_discount_value |
number | 부분 결제 할인 |
partial_payment_discount_type |
string | 부분 결제 할인 유형(percentage | fixed) |
partial_payment_remaining_balance_charge_date |
string | null | 잔액 청구 날짜(정확한 시간 트리거) |
start_condition |
object | 사전 주문을 시작하는 재고 조건. 읽기 전용 |
end_condition |
object | 사전 주문을 종료하는 재고 조건. 읽기 전용 |
message |
object | null | 로케일별 오퍼의 사용자 지정 사전 주문 텍스트. 읽기 전용 |
products
| Products 필드 | 유형 | 설명 |
|---|---|---|
product_id |
integer | Shopify 제품 ID |
variant_id |
integer | Shopify 이형 상품 ID |
limit |
integer | null | 수량 제한. null = 무제한 |
units_sold |
integer | 이 이형 상품에 대해 이미 사전 주문된 수량. 읽기 전용 |
markets
| 필드 | 유형 | 설명 |
|---|---|---|
active |
boolean | false = 오퍼가 모든 시장에 적용됨 |
selected |
array | active가 true일 때 오퍼가 제한되는 시장. 각 항목: id(Shopify 시장 ID), name |
sellingPlans:
| 필드 | 유형 | 설명 |
|---|---|---|
id |
integer | Shopify 판매 플랜 ID(숫자, gid:// 접두사 제외) |
name |
string | 판매 플랜 이름. 예: Full Payment, Partial Payment |
position |
integer | 표시 순서 |
description |
string | null | 고객에게 표시되는 설명 |
apply_to에 따른 조건부 필드
apply_to |
포함되는 필드 |
|---|---|
product |
products |
collection |
collection_id (+ 선택 사항 collection_name) |
all |
없음 |
조건부 처리 / 결제 필드
| 조건 | 필드 |
|---|---|
| 정확한 배송 날짜 | fulfillment_shipping_date |
| 체크아웃 후 일수 | fulfillment_after_checkout |
| 상호 배타성 | 두 처리 시점 필드 중 하나만 사용 |
| 부분 결제 활성화 | partial_payment_* 필드 |
start_condition
| 필드 | 유형 | 설명 |
|---|---|---|
stock |
string | now | outofstock | instock (preorder_condition_inventory와 동일) |
stock_value |
integer | null | 재고 임계값: instock은 재고가 이 값보다 클 때, outofstock은 재고가 이 값 이하일 때 시작됩니다. 설정하지 않으면 null |
end_condition
| 필드 | 유형 | 설명 |
|---|---|---|
stock_value |
integer | null | 재고가 이 값에 도달하면 사전 주문이 종료됩니다. null = 무제한 |
message
| 필드 | 유형 | 설명 |
|---|---|---|
customSetting |
boolean | true = 오퍼가 아래의 자체 텍스트를 사용함. false = 스토어 번역을 사용함(Settings API 참고) |
default |
object | 기본 언어의 텍스트: preorderButton, aboveMessage, bellowMessage, naMessage, soldoutText, preorderedItemlabel |
<locale> |
object | 다른 언어에 대한 동일한 키. 예: fr |
4. 실패 응답
권한 없음 — 401
{"success": false,"message": "Unauthorized"}ID 누락 — HTTP 200
{"success": false,"message": "ID is required"}오퍼를 찾을 수 없음 — HTTP 200
ID가 존재하지 않거나 다른 스토어에 속한 경우에 반환됩니다.
{"success": false,"message": "Offer not found"}예기치 않은 서버 오류 — HTTP 200
{"success": false,"message": "Something went wrong"}도움이 되었나요?
의견을 보내 주셔서 감사합니다! 부족한 내용을 알려 주세요
문제 신고