Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. API spec

1) Request

Endpoint

product environment: https://prod.ax-cloud.com/v1/channel/products/day-ticket

Method

GET

Description

Product List 를 조회합니다.

Content-Type

application/json

Headers > Authorization

Token {api_key}

Headers > Channel

Code {channel_code}

...

Name

Type

Description

status_code

Integer

정상 처리 시 200

dataproducts

List[Object]

판매 가능한 상품 리스트

product_idcode

StringUUID

상품 아이디식별자

title

String

상품 제목

category

String

상품 카테고리

ticketdetail_category_code

String

AX 카테고리 코드

[티켓 카테고리 데이터는 문의]

keyword상품 세부 카테고리

start_date_of_the_sale

Date

판매 기간 시작 날짜

end_date_of_the_sale

Date

판매 기간 종료 날짜

cancellation_type

String

주문 취소 타입

main_country_and_city

String

티켓 대표 주 국가 및 도시

[국가-도시 데이터는 문의]

4) Response Example

Expand
titleStatus Code : 200 정상 처리 시
Code Block
languagejson
{
  "status_code": 200,
  "dataproducts": [
    {
      "idproduct_code": 1"1f373f00-ecb0-485a-beed-63529d61703f",
      "title": "TestLouvre Highlight Ticket",
      "category": "TestTicket-Day",
      "detail_category": "Museum",
      "ticket_category_codestart_date_of_the_sale": "Test2023-03-01",
       "keyword"end_date_of_the_sale": "2024-03-31",
      "main_country_and_city": "Test52-18"
    }
  ]
}

5) Error Spec

Expand
titleStatus Code : 403 Cause: 유효하지 않은 API Key 혹은 Channel Code
Code Block
{'detail': ErrorDetail(string='이 작업을 수행할 권한(permission)이 없습니다.', code='permission_denied')}

...

Code Block
curl -X 'GET' \
  'https://prod.ax-cloud.com/v1/channel/products/day-ticket' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Token api_key_secret' \
  -H 'Channel: Code code_secret'
  -d '{
  "status_code": 200,
  "dataproducts": [
    {
      "idproduct_code": 1"1f373f00-ecb0-485a-beed-63529d61703f",
      "title": "TestLouvre Highlight Ticket",
      "category": "TestTicket-Day",
      "detail_category": "Museum",
      "ticket_category_codestart_date_of_the_sale": "Test2023-03-01",
      "end_date_of_the_sale": "2024-03-31",
 "keyword     "main_country_and_city": "Test52-18"
    }
  ]
}
'

...