Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 14 Current »


1. Get Answer

1) Purpose

  • 채널이 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/<question_code>

Method

GET

Description

특정 Product의 문의 답변을 조회 합니다.

Content-Type

application/json

Headers > Authorization

Token {api_key}

2) Path Parameter

Name

Required

Type

Description

question_code

O

string

답변을 식별할 수 있도록 채널에서 생성한 질문의 식별자

3) Response

Name

Type

Description

question_code

string

답변을 식별할 수 있도록 채널에서 생성한 질문의 식별자

answer

string

문의 질문에 대한 답변

 Status Code : 200 Response: AX Cloud 에 생성된 문의
{
  "question_code": "090a9be0397",
  "answer": "답변입니다."
}
 Status Code : 204 Response: AX Cloud 에 아직 답변이 없는 경우
{
  "detail": "공급자로부터 아직 답변을 받지 못했습니다."
}

5) Error Spec

 Status Code : 400 Cause: 유효하지 않은 요청 값
{'body': '이 필드는 null일 수 없습니다.'}
 Status Code : 403 Cause: 유효하지 않은 API Key 혹은 Channel Code
{'message': '이 작업을 수행할 권한(permission)이 없습니다.'}

3. Request Example

1) CURL

curl -X 'GET' \
  'https://prod.ax-cloud.com/v1/channel/question/tour/090a9be0397' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Token api_key_secret" \

  • No labels