...
2. API Spec
1) Request
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/price/day-ticket/{product_code} |
---|---|
Method | GET |
Description | 상품의 최신 가격 정보 조회 |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
Headers > Channel | Code {channel_code} |
...
Name | Required | Type | Description |
---|---|---|---|
product_code | O | StringUUID | Product ID(UUID) |
3) Response
Name |
---|
Type | Description | ||
---|---|---|---|
status_code | Integer | 정상 처리 시 200 | |
prices |
List |
option_code |
UUID | 상품의 옵션에 해당하는 식별자 |
currency | String |
|
|
| |||
price | String |
|
4) Response Example
Expand | |||||
---|---|---|---|---|---|
| |||||
|
5) Error Spec
Expand | ||
---|---|---|
| ||
|
...
Code Block |
---|
curl -X 'POST' \ 'https://prod.ax-cloud.com/v1/channel/price/day-ticket/481d654b-967f-47fb-8989-e20a9ba8477a' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -H "Channel: Code code_secret" \ -d '{ "status_code": 200, "prices": [ { "option_code": "d96b2ed4-12c5-4fb5-ae94-4f39b11ee980": { "currency": "KRW", "price": "71200.00000" }, { "option_code": "90c2e47c-c1e2-4d9f-8b91-1073fd929255": { "currency": "KRW", "price": "70000.00000" }, { "option_code": "fb0a4845-7566-4c0b-8b68-23d822dff020": { "currency": "KRW", "price": "69800.00000" } }] }' |