리뷰 - 투어상품 리뷰 생성
- 1 1. Create Review
- 1.1 1) Purpose
- 1.2 2) Detail
- 2 2. API spec
- 2.1 1) Request
- 2.2 2) Path Parameter
- 2.3 3) Body Parameter
- 2.4 3) Response
- 2.5 4) Error Spec
- 3 3. Request Example
- 3.1 1) CURL
1. Create Review
1) Purpose
채널에서 특정 상품에 생성된 리뷰를 AX Cloud 에 등록 합니다.
리뷰를 AX Cloud 에서 관리할 수 있습니다.
2) Detail
상품 별로 리뷰를 등록할 수 있습니다.
유효한 API Key를 Request Header에 토큰으로 입력해야만 호출 가능합니다.
2. API spec
1) Request
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/review/tour/<product_code> test environment: https://test.ax-cloud.com/v1/channel/review/tour/<product_code> |
---|---|
Method | POST |
Description | 채널의 리뷰 정보를 생성 합니다. |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
2) Path Parameter
Name | Required | Type | Description | |
---|---|---|---|---|
product_code | X | UUID |
|
3) Body Parameter
Name | Required | Type | Description |
---|---|---|---|
option_code | X | UUID |
|
review_code | O | String |
|
score_type | O | Choice from {“ZERO_FIVE_STAR”, “ONE_FIVE_STAR”, “GOOD_OR_BAD”, “NO_SCORE” } | 리뷰의 평가 지표 종류
|
score | X(score_type=NO_SCORE인 경우만 생략 가능) | Integer | 리뷰 평가 지표별 점수
|
title | O | String |
|
body | X | String |
|
reviewed_at | O | DateTime | YYYY-MM-DD hh:mm
|
3) Response
Name | Type | Description | |||
---|---|---|---|---|---|
channel_order_code | string |
|
4) Error Spec
3. Request Example
1) CURL