...
1. Request Refund
1) Purpose
채널에서 발생한 환불에 대해 구매자에 의해 발생한 주문 취소 건에 대한 환불을 AX Cloud 에 요청합니다.
채널에서 미리 정해진 환불 규정에 따라 요청할 수 있습니다AX Cloud로 단방향 요청을 합니다.
2) Detail
채널에서 정해진 환불 규정에 따라 진행된 환불 정보를 포함하여 요청합니다.
고유한 채널 코드와 유효한 API Key를 Request Header에 정해진 형식으로 입력해야만 호출 가능합니다.
...
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/orders/tour/{ax_order_code}/tickets/{ticket_code}/refundsrefund | ||
---|---|---|---|
Method | POST | ||
Description | 채널에서 특정 주문의 환불이 진행된 건에 대해 AX Cloud와 동기화 합니다. | ||
Content-Type | application/json | ||
Headers > Authorization | Token {api_key} | Headers > Channel | Code {channel_code} |
2) Body Parameter
Name | Required | Type | Description |
---|---|---|---|
channel_refunded_price | O | String |
|
channel_canceled_datetimeat | O | Datetime |
|
channel_refunded_datetimeat | O | Datetime |
|
channel_policy | O | Object |
|
3) Response
Name | Type | Description |
---|---|---|
status_code | Integer | 정상 처리 시 200 |
...
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
3. Request Example
...
Code Block |
---|
curl -X 'PATCH' \ 'https://prod.ax-cloud.com/v1/channel/orders/tour/b9872ed4-12c5-4fb5-ae18-4f39b11ee912/tickets/915c1218-f41c-492b-bb0b-96177ff4d2ee/refunds' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -d '{ \ "refund_price": "5000", "channel_canceled_datetime": "2021-01-20 21:13:13", "channel_refunded_datetime": "2021-01-20 23:24:29", "policy": {"0%0": "Use date 1일 전부터는 환불 불가1", "50%50": "Use date 3일 전3", "100%100": “Use date 7일 전“7"} }' |