/
상품 - 등록 투어상품 매핑 요청

상품 - 등록 투어상품 매핑 요청


1. Product Registration

1) Purpose

  • 상품 최초 등록과 등록 이후 발생한 상품 업데이트를 채널에 적용합니다.

  • 주문 처리를 위해 채널의 상품 데이터와 매핑하는 용도입니다.

2) Detail

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

  • 상품 - 투어상품 상세정보 조회 을 통해 가져온 Product Data를 채널에 업로드 한 이후, AX에 업로드 완료된 정보를 전송합니다.

  • 상품 업데이트 이후, 이 API를 통해 옵션 매핑데이터를 다시 전달해주셔야 합니다.

 

2. API spec

1) Request

Endpoint

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

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

Method

POST

Description

상품 등록 및 옵션 매핑

Content-Type

application/json

Headers > Authorization

Token {api_key}

Headers > Channel

Code {channel_code}

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) Request Body

Name

Required

Type

Description

Example

Name

Required

Type

Description

Example

mapping_data

O

Object

channel_product_name

O

String

  • 채널에 업로드된 상품 이름(여행자 노출 기준)

  • “[프랑스]루브르 박물관 투어“

channel_product_link

O

String

  • 업로드된 상품을 확인할 수 있는 페이지 URL

  • “https://*“

channel_product_id

O

String

  • 채널에서 사용하는 상품 고유 ID

  • “channel-1231231“

(1) Mapping Data

  • AX의 옵션 데이터를 이용해 채널의 옵션과 매핑합니다.

  • 옵션 이름은 여행자에게 노출되는 이름입니다.

    • 한 상품에서 같은 옵션명을 사용해서는 안됩니다.

    • AX의 모든 옵션 데이터를 매핑해야 합니다.

{ <option_code>: <채널에서 설정한 옵션 이름(여행자에게 노출되는 이름)>, <option_code>: <채널에서 설정한 옵션 이름(여행자에게 노출되는 이름)>, <option_code>: <채널에서 설정한 옵션 이름(여행자에게 노출되는 이름)>, <option_code>: <채널에서 설정한 옵션 이름(여행자에게 노출되는 이름)>, ... }

4) Response

{ "product_code": <string>, "channel_product_mapping_data_code": <string> }

5) Error Spec

{'error': "product not found.")]}

3. Request Example

1) CURL

Related content

상품 - 투어상품 상세정보 조회
상품 - 투어상품 상세정보 조회
More like this
상품 - 투어상품 조회
상품 - 투어상품 조회
More like this
상품 - 투어상품 최신 정보 조회
상품 - 투어상품 최신 정보 조회
Read with this
상품 - 날짜지정형 입장권 조회
상품 - 날짜지정형 입장권 조회
More like this
주문 - 투어상품 주문 생성
주문 - 투어상품 주문 생성
Read with this
인벤토리 - 가용성 정보 조회
인벤토리 - 가용성 정보 조회
More like this