/
상품 - 투어상품 가격 정보 조회

상품 - 투어상품 가격 정보 조회


1. Get Price

1) Purpose

  • 채널에 등록된 상품의 최신 가격 정보를 조회 합니다.

  • 가장 최근에 조회한 가격일 수록 최신의 가격 정보입니다.

2) Detail

  • 가격 정보는 자주 주기적으로 조회해야 최신의 가격을 취득할 수 있습니다.

  • 여행자가 결제할 시기에 가까울 수록 최신 가격 정보 입니다.

  • 유효한 API Key 를 Request Header에 정해진 형식으로 입력해야만 호출 가능합니다.

2. API Spec

1) Request

Endpoint

product environment: https://prod.ax-cloud.com/v1/channel/price/tour/{product_code}

test environment: https://test.ax-cloud.com/v1/channel/price/tour/{product_code}

Method

GET

Description

상품의 최신 가격 정보 조회

Content-Type

application/json

Headers > Authorization

Token {api_key}

2) Path Parameter

Name

Required

Type

Description

Example

Name

Required

Type

Description

Example

product_code

O

String

Product ID(UUID)

  • “c1f891f7-3f22-4b2c-a4a9-e7754c20be23”

3) Response

Name

Type

Description

Example

Name

Type

Description

Example

status_code

Integer

정상 처리 시 200

 

prices

List

 

 

 

option_code

String

상품의 옵션에 해당하는 식별자

“c1f891f7-3f22-4b2c-a4a9-e7754c20be23“

 

unit_selling_price_usd

Float

유닛당 판매 가격 USD

“100.0“

 

selling_price_per_person_usd

Float

인당 판매 가격 USD

“100.0“

 

unit_selling_price_krw

Float

유닛당 판매 가격 KRW

“100.0“

 

selling_price_per_person_krw

Float

인당 판매 가격 KRW

“100.0“

4) Response Example

{ "status_code": 200, "prices": [ { "option_code": "d96b2ed4-12c5-4fb5-ae94-4f39b11ee980", "unit_selling_price_usd": 80.00, "selling_price_per_person_usd": 75.00, "unit_selling_price_krw": 88000.00, "selling_price_per_person_krw": 82500.00, } ] }

5) Error Spec

{'message': '찾을 수 없습니다.'}
{'detail': ErrorDetail(string='이 작업을 수행할 권한(permission)이 없습니다.', code='permission_denied')}

3. Request Example

1) CURL

 

Related content

상품 - 투어상품 상세정보 조회
상품 - 투어상품 상세정보 조회
Read with this
상품 - 투어상품 최신 정보 조회
상품 - 투어상품 최신 정보 조회
Read with this
인벤토리 - 가용성 정보 조회
인벤토리 - 가용성 정보 조회
Read with this
상품 - 등록 투어상품 매핑 요청
상품 - 등록 투어상품 매핑 요청
Read with this
상품 - 투어상품 조회
상품 - 투어상품 조회
Read with this
API - 시작하기
API - 시작하기
Read with this