...
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} |
...
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인 경우만 생략 가능) | FloatInteger | 리뷰 평가 지표별 점수
| ||||||||||||||||
title | O | String |
| ||||||||||||||||
body | X | String |
| ||||||||||||||||
reviewed_at | O | DateTime | YYYY-MM-DD hh:mm
| reviewer_info | X | Object |
| X | String |
| phone | X | String |
| X | String |
|
3) Response
Name | Type | Description | |||
---|---|---|---|---|---|
channel_order_code | string |
|
Expand | ||
---|---|---|
| ||
|
...
Code Block curl -X 'POST' \ 'https://prod.ax-cloud.com/v1/channel/review/tour/886c434e-57a8-450c-8b02-8fdea38de821' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -d '{ "option_code": "55f2eaaf-154f-4552-adcd-d2542b4153eb", "review_code": "95ac32c5-7f11-41a1-a638-3874b9c3ccbc", "score_type": "ONE_FIVE", "score": 5, "title": "가이드 칭찬합니다.", "body": "친절한 가이드분 덕분에 즐거웠습니다.", "reviewed_at": "2022-01-21 10:00:00.000", "reviewer_info": { "name": "김민철", "phone": "010-1234-1234", "email": "ax@change.co" } }'
...