...
Drawio | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
2) Detail
고유한 채널 코드와 유효한 API Key 를 Request Header에 정해진 형식으로 입력해야만 호출 가능합니다.
AX에서 해당 주문의 상태와 Channel에서 해당 주문의 상태를 동기화하기 위해 두 개의 주문 상태를 각각 변경합니다.
...
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/orders/tour/{ax_order_code} test environment: https://test.ax-cloud.com/v1/channel/orders/tour/{ax_order_code} | ||
---|---|---|---|
Method | PATCH | ||
Description | 주문 취소 | ||
Content-Type | application/json | ||
Headers > Authorization | Token {api_key} | Headers > Channel | Code {channel_code} |
2) Body Parameter
Name | Required | Type | Description |
---|---|---|---|
ax_status | O | String |
|
channel_status | O | String |
|
comment | X | String |
|
...
Code Block |
---|
curl -X 'PATCH' \
'https://prod.ax-cloud.com/v1/channel/orders/tour/915c1218-f41c-492b-bb0b-96177ff4d2ee' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Token api_key_secret" \
-H "Channel: Code code_secret" \
-d '{
"channel_order_code": "915c1218-f41c-492b-bb0b-96177ff4d2ee",
"channel_order_status": "Traveler cancel",
"ax_order_code": "b9872ed4-12c5-4fb5-ae18-4f39b11ee912",
"ax_order_status": "Traveler cancel",
"comment": "여행자의 개인 사정으로 인한 취소"
}' |
...