...
2. API spec
1) Request
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/inventory/tour/{product_code} test environment: https://test.ax-cloud.com/v1/channel/inventory/tour/<product{product_id>code} |
---|---|
Method | GET |
Description | 특정 Product의 Inventory를 조회합니다. |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
Headers > Channel | Code {channel_code} |
2) Path Parameter
Name | Required | Type | Description |
---|---|---|---|
product_code | O | UUID | Product ID(UUID) |
3) Query Parameter
Name | Required | Type | Description |
---|---|---|---|
page | X | Integer | Page number(default : 1) |
page_size | X | Integer | Size per page(default : 25) |
3) Response
Name | Type | Description | |||||
---|---|---|---|---|---|---|---|
status_code | Integer | 정상 처리 시 200 | data|||||
option_codes | Object | ||||||
{option_code} | List[Object] | 인벤토리 리스트 | id | Integer | 인벤토리 아이디상품의 옵션 식별자 | ||
inventory_code | String | 상품의 인벤토리 식별자 | |||||
date | Date | 날짜 | |||||
start_time | Time | 투어 시작 시간 | |||||
day_of_the_week | String | 요일 | |||||
is_order | Boolean | 판매 유무 | |||||
max_quantity | Integer | 최초 생성 재고 | |||||
min_quantity | Integer | 최소 출발 인원으로 ordered_quantity가 이 값 보다 높아야 Tour가 진행된다. | |||||
remain_quantity | Integer | 남은 재고 | |||||
ordered_quantity | Integer | 주문 갯수 | depth_combination_id | String | 인벤토리 연관된 옵션 아이디 |
4) Response Example
Expand | |||||
---|---|---|---|---|---|
| |||||
|
5) Error Spec
Expand | ||
---|---|---|
| ||
|
...
Code Block |
---|
curl -X 'POST' \ 'https://prod.ax-cloud.com/v1/channel/inventory/tour/15a8b34ec-1a32-4b70-a5ba-8f2c81ec4c09' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Token api_key_secret' \ -H 'Channel: Code code_secret' |
...