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 6 Next »


1. Latest List

1) Purpose

  • 채널에 최초 상품을 등록한 이후, 채널에서 등록한 상품들 중, Supplier에 의해 상품 정보에 변경이 발생한 상품의 간략한 정보를 확인할 수 있습니다.

2) Detail

2. API Spec

1) Request

Endpoint

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

Method

GET

Description

업데이트된 상품정보 확인

Content-Type

application/json

Headers > Authorization

Token {api_key}

Headers > Channel

Code {channel_code}

2) Query Parameter

Name

Required

Type

Description

page

X

Integer

default : 1

page_size

X

Integer

default : 25

3) Response

 Status Code : 201 Response: 업데이트된 정보가 있는 product info
{
  "data": [
    {
      "product_id" : <int>,
      "title": <string>,
      "version": <int>
    },
    {
      "product_id" : <int>,
      "title": <string>,
      "version": <int>
    },
    ...
  ]
}

4) Error Spec

 Status Code : 400 Cause: 유효하지 않은 요청 값
{'detail': "유효하지 않은 query입니다.")]}
 Status Code : 403 Cause: 유효하지 않은 API Key 혹은 Channel Code
{'detail': ErrorDetail(string='이 작업을 수행할 권한(permission)이 없습니다.', code='permission_denied')}

3. Request Example

1) CURL

curl -X 'GET' \
  'https://prod.ax-cloud.com/v1/channel/product/day-ticket/update' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Token api_key_secret" \
  -H "Channel: Code code_secret"

  • No labels