...
2. API spec
1) Request
Endpoint | 구현 예정https://prod.ax-cloud.com/v1/channel/review/day-ticket/<product_id> |
---|---|
Method | POST |
Description | 채널의 리뷰 정보를 생성 합니다. |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
Headers > Channel | Code {channel_code} |
2)
...
구현 예정
3) Response
구현 예정
4) Response Example
구현 예정
5) Error Spec
...
Body Parameter
Name | Required | Type | Description | |
---|---|---|---|---|
channel_order_code | X | String |
| |
review_score_type | O | Choice from { ONE_FIVE_STAR, ZERO_FIVE_STAR,GOOD_OR_BAD, NO_SCORE } |
| |
review_score | X | Integer |
| |
title | X | String |
| |
body | O | String |
| |
reviewed_at | O | DateTime | YYYY-MM-DD hh:mm
| |
reviewer_info | X | Object |
| |
name | X | String |
| |
phone | X | String |
| |
X | String |
|
3) Response
Name | Type | Description | |||
---|---|---|---|---|---|
status_code | Integer |
|
Expand | ||
---|---|---|
| ||
|
4) Error Spec
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
3. Request Example
1) CURL
- 구현 예정
Code Block curl -X 'POST' \ 'https://prod.ax-cloud.com/v1/channel/review/day-ticket' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -H "Channel: Code code_secret" \ -d '{ "channel_order_code": "090a9be0397", "review_score_type": "ONE_FIVE", "review_score": 100, "title": "즐거운 경험이었습니다.", "body": "친절한 가이드분 덕분에 즐거웠습니다.", "reviewed_at": "2022-01-21T10:00:00.000Z", "reviewer_info": { "name": "홍길동", "phone": "01012341234", "email": "ABC@abc.com" } }'
...