주문서
주문서 조회
만들어 둔 주문서를 돌려준다. 응답은 주문서 생성과 같다. 셀러가 관리 API로 만든 주문서(셀러 작성 주문서)는 이 id가 결제 링크다 — 링크를 가진 구매자가 이 주문서로 배송비 미리보기·금액 미리보기·결제 시작을 그대로 부른다. 셀러 작성 주문서는 셀러가 쿠폰·적립금 사용을 막을 수 있다(`couponsEnabled` false, `points` null). 만료 시각이 지나면 409 `CHECKOUT_EXPIRED`다.
GET
만들어 둔 주문서를 돌려준다. 응답은 주문서 생성과 같다. 셀러가 관리 API로 만든 주문서(셀러 작성 주문서)는 이 id가 결제 링크다 — 링크를 가진 구매자가 이 주문서로 배송비 미리보기·금액 미리보기·결제 시작을 그대로 부른다. 셀러 작성 주문서는 셀러가 쿠폰·적립금 사용을 막을 수 있다(couponsEnabled false, points null). 만료 시각이 지나면 409 CHECKOUT_EXPIRED다.
header
AuthorizationBearer <JWT>회원 accessToken
checkoutId*string성공
application/json- response
meta*data*error*|nullcurl -X GET 'https://api.sayren.io/storefront/v1/checkout/string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"checkoutId": "string",
"currency": "KRW",
"items": [
{
"lineId": "string",
"productId": "string",
"productName": "string",
"thumbnailUrl": "http://example.com",
"optionId": "string",
"optionName": "string",
"optionSelections": [],
"customInputs": [],
"stay": {
"checkIn": "string",
"checkOut": "string",
"nights": [
{
"date": "string",
"price": 0
}
]
},
"quantity": 0,
"unitPrice": 0,
"totalPrice": 0,
"fulfillment": {
"type": "string",
"requiresShipping": true,
"method": "string"
}
}
],
"amounts": {
"productAmount": 0,
"deliveryFee": 0,
"totalAmount": 0,
"couponDiscountAmount": 0,
"deliveryDiscountAmount": 0,
"pointAmount": 0
},
"points": null,
"couponsEnabled": true,
"additionalPayment": false,
"orderPasswordRequired": false,
"memberOrder": false,
"delivery": {
"baseFee": 0,
"remoteSurcharge": 0,
"remoteArea": "NONE",
"remoteAreaLabel": "string",
"bundleCount": 0,
"freeByThreshold": true,
"zipCode": "string"
},
"requiresShipping": true,
"expiresAt": "string",
"paymentOptions": [
{
"label": "string",
"pgName": "string",
"logoUrl": "string",
"pg": "tosspayments",
"method": "CARD"
}
],
"testPayment": true
},
"error": null
}