...
유효한 API Key를 Request Header에 토큰으로 입력해야만 호출 가능합니다.
상품 - 날짜지정형티켓 날짜지정형 입장권 상세정보 조회 을 통해 가져온 Product Data를 채널에 업로드 한 이후, AX에 업로드 완료된 정보를 전송합니다.
상품 업데이트 이후, 이 API를 통해 옵션 매핑데이터를 다시 전달해주셔야 합니다.
...
2. API spec
1) Request
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/products/day-ticket/registration/{product_code} |
---|---|
Method | POST |
Description | 상품 등록 및 옵션 매핑 |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
Headers > Channel | Code {channel_code} |
2)
...
Path Parameter
Name | Required | Type | Description | Example |
---|---|---|---|---|
product_idcode | O | String | Product ID(UUID) |
|
3) Request Body
Name | Required | Type | Description | Example |
---|---|---|---|---|
mapping_data | O | Object |
| |
channel_product_name | O | String |
| |
channel_product_link | O | String |
| |
channel_product_id | O | String |
|
...
Code Block |
---|
curl -X 'POST' \
'https://prod.ax-cloud.com/v1/channel/products/day-ticket/registration/e99f822f-42a8-4d3f-890e-77c5a9bc9cf2' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Token api_key_secret" \
-H "Channel: Code code_secret" \
-d '{
"mapping_data":{
"d96b3ed4-12c5-4fb5-ae22-4f39b11ee980": "파리출발-식사제공-하절기-성인",
"f7sa8f7s-gds8-6fa6-ng7d-fanjefr32n32": "파리출발-식사제공-하절기-아동"
},
"channel_product_name": "[프랑스파리]나른한 저녁 밤산책투어"
"channel_product_link": "https://www.*****.com/ko/product/*******",
"channel_product_id": "channel-214292"
}'
|