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


1. Latest List

1) Purpose

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

2) Detail

  • 고유한 채널 코드와 유효한 API Key를 request Header에 정해진 형식으로 입력해야만 호출 가능합니다.

  • 변경이 발생한 상품의 상세 정보는 Product - Detail 에서 확인하여 채널에 반영하도록 합니다. 업데이트 이후 옵션 매핑에 변경이있었다면, Product - Registration 에서 다시 옵션 정보를 매핑하도록 합니다.

2. API Spec

1) Request

Endpoint

https://prod.ax-cloud.com/v1/channel/product/tour/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/tour/update' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'X-CSRFTOKEN: gVNVnmaKfzEovZJFYXnxVkZsluzfXFWJDDj9lyq1WuSHuKPpBdgv1bVTiAVrgNqu' \
  -H "Authorization: Token api_key_secret" \
  -H "Channel: Code code_secret"

  • No labels