...
2. API spec
1) Request
...
Endpoint | 구현 예정product environment: https://prod.ax-cloud.com/v1/channel/question/tour/<product_code> test environment: https://test.ax-cloud.com/v1/channel/question/tour/<product_code> |
---|---|
Method | POST |
Description | 특정 Product의 문의를 생성 합니다. |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
Headers > Channel | Code {channel_code} |
2) Query Parameter
구현 예정
3) Response
구현 예정
4) Response Example
구현 예정
5) Error Spec
2) Body Parameter
Name | Required | Type | Description |
---|---|---|---|
question_code | O | String | 답변을 식별할 수 있도록 채널에서 생성한 질문의 식별자
|
option_code | X | UUID | 질문이 옵션 관련 질문인 경우 상품 옵션 코드가 필요함 |
title | O | String | 문의 제목 |
body | X | String | 문의 본문. |
is_public | O | Bool | 공개질문/비공개질문(판매자, 문의자만 조회) 여부 |
quested_at | O | Datetime | YYYY-MM-DD hh:mm:ss
|
3) Response
Name | Type | Description | |||
---|---|---|---|---|---|
question_code | string |
|
Expand | ||
---|---|---|
| ||
|
4) Error Spec
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
3. Request Example
1) CURL
...
Code Block curl -X 'POST' \ 'https://prod.ax-cloud.com/v1/channel/question/tour' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -d '{ "question_code": "6ecf4685-ca60-4a7d-843c-479329ca8789", "option_code": "5a8b34ec-1a32-4b70-a5ba-8f2c81ec4c09", "title": "투어상품 관련문의", "body": "준비물은 없나요?", "is_public": true, "quested_at": "2022-01-21 10:00:00", }'
...