특정 상품에 대한 등록된 모든 옵션 정보를 조회하기 위해 사용합니다.
요청
GET /v1/store/product/option?productId={productId}
<요청 패러미터>
| 키 | 타입 | 필수여부 | 설명 |
|---|---|---|---|
| productId | Long | 필수 | 상품번호 |
응답
조회 결과 응답 바디 내용은 옵션 유형에 따라 다르므로, Option 영역의 요청예시를 참고해 주세요.
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"type": "SIMPLE",
"simpleSortType": "CREATE",
"simples": [
{
"id":1,
"name": "옵션1",
"value": "옵션값1",
"usable": true
},
{
"id":2,
"name": "옵션2",
"value": "옵션값2",
"usable": true
},
{
"id":3,
"name": "옵션3",
"value": "옵션값3",
"usable": true
},
{
"id":4,
"name": "옵션4",
"value": "옵션값4",
"usable": true
},
{
"id":5,
"name": "옵션5",
"value": "옵션값5",
"usable": true
}
]
}
<일정형 옵션 응답 샘플>
일정형(SCHEDULE) 상품은 schedule 에 일정 설정과 일정가격 전체(사용안함·지난 날짜 포함)가 담깁니다. 필드 설명은 OptionRequest 의 Schedule 을 참고해 주세요. schedule.baseModifiedAt 은 옵션 등록 및 수정 요청의 baseModifiedAt 에 그대로 사용할 수 있습니다.
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"type": "SCHEDULE",
"schedule": {
"dateSelectionType": "RANGE",
"dateAxisLabel": "날짜",
"dateInputType": "PERIOD",
"axes": [
{
"order": 0,
"name": "날짜",
"values": [
{
"value": "20261105000000"
},
{
"value": "20261106000000"
}
],
"dateAxis": true
},
{
"order": 1,
"name": "객실타입",
"values": [
{
"value": "스탠다드"
},
{
"value": "디럭스"
}
],
"dateAxis": false
}
],
"prices": [
{
"scheduleOptionId": 17331,
"scheduleDate": "20261105000000",
"axes": [
{
"key": "객실타입",
"value": "스탠다드"
}
],
"price": 0,
"availableQuantity": 5,
"usable": true,
"updatedAt": "20261002101530123456"
},
{
"scheduleOptionId": 17332,
"scheduleDate": "20261105000000",
"axes": [
{
"key": "객실타입",
"value": "디럭스"
}
],
"price": 30000,
"availableQuantity": 3,
"usable": true,
"managedCode": "DLX",
"updatedAt": "20261002101530123456"
},
{
"scheduleOptionId": 17333,
"scheduleDate": "20261106000000",
"axes": [
{
"key": "객실타입",
"value": "스탠다드"
}
],
"price": 20000,
"availableQuantity": 0,
"usable": true,
"updatedAt": "20261002101530123456"
},
{
"scheduleOptionId": 17334,
"scheduleDate": "20261106000000",
"axes": [
{
"key": "객실타입",
"value": "디럭스"
}
],
"price": 50000,
"availableQuantity": 2,
"usable": false,
"managedCode": "DLX",
"updatedAt": "20261002101530123456"
}
],
"baseModifiedAt": "20261002101530123456"
},
"simples": [],
"combinationAttributes": [],
"combinations": [],
"customs": [],
"useShippingDueDate": false,
"deliveryScheduledPerOption": false
}