...
Endpoint | product environment: https://prod.ax-cloud.com/v1/channel/orders/tour test environment: https://test.ax-cloud.com/v1/channel/orders/tour |
---|---|
Method | POST |
Description | 새 주문 등록 |
Content-Type | application/json |
Headers > Authorization | Token {api_key} |
2) Body Parameter
(1) Parameter
Name | Required | Type | Description | Example |
---|---|---|---|---|
depth_combinations | O | List[Depth Combination] |
| |
order | O | Order |
| |
purchaser | O | Purchaser |
| |
representative | O | Traveler |
|
...
(2) Type
Order
Name | Required | Type | Description |
---|
status_code
Integer
정상 처리 시 201
data
Object
채널측 주문 생성 요청에 대한 AX 주문 생성 값
channel_order_ |
id | O | String |
채널즉에서 생성한 주문의 식별자
channel_order_status
String
| |||
purchased_at | O | Datetime |
|
purchase_requested_at | X | Datetime |
|
reserved_at | X | Datetime |
|
reservation_requested_at | X | Datetime |
|
sub_total | O | String |
|
discount_method | X | String |
|
discount | X | String |
|
total | O | String |
|
status | O | String |
|
is_voucher | O | Boolean |
|
comment | X | String |
|
currency | O | String |
|
Depth Combination
Name | Required | Type | Description |
---|---|---|---|
channel_product_mapping_code | O | String |
|
dc_code | O | String |
|
quantity | O | Integer |
|
inventory_at | O | Datetime |
|
unit_selling_price | O | String |
|
discount | X | String |
|
discount_method | X | String |
|
amount_price | O | String |
|
tickets | O | List[Ticket] |
|
Purchaser
Name | Required | Type | Description |
---|---|---|---|
is_required_more_information | O | Boolean |
|
name | O | String |
|
national_code | O | String |
|
phone | O | String |
|
O | String |
| |
additional | X | Object |
|
extra | O | String |
|
Ticket
Name | Required | Type | Description |
---|---|---|---|
channel_code | O | String |
|
name | O | String |
|
national_code | O | String |
|
phone | O | String |
|
O | String |
| |
additional | X | Object |
|
extra | X | String |
|
3) Response
Name | Type | Description | Example | |||
---|---|---|---|---|---|---|
status_code | Integer |
|
| |||
data | Object |
| ||||
channel_order_code | String |
| ||||
channel_order_status | String |
|
| |||
depth_combinations | List[Object] | |||||
dc_code | string |
| ||||
inventory_at | Datetime |
| ||||
ax_order_code | string |
| ||||
ax_order_status | string |
|
| |||
quantity | Integer |
| ||||
tickets | List[Object] |
| ||||
ax_ticket_code | String |
| ||||
ax_ticket_status | String |
|
|
Expand | ||
---|---|---|
| ||
|
...
Code Block |
---|
curl -X 'POST' \ 'https://test.ax-cloud.com/v1/channel/orders/tour' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H "Authorization: Token api_key_secret" \ -d '{ "depth_combinations": [ { "channel_product_mapping_code": "af01c7c4-1637-46fb-b289-a090a9be0397", "dc_code": "d96b2ed4-12c5-4fb5-ae94-4f39b11ee980", "quantity": 2, "inventory_at": "2017-05-23 23:30:00", "unit_selling_price": 2222, "discount": 22, "discount_method": "쿠폰 할인", "amount_price": "2200", "tickets": [ { "channel_code": "d96b2td4-15c5-4fb5-ae94-4f36667ee980", "name": "first last", "national_code": "82", "phone": "01012345678", "email": "user@example.com", "additional": { "english_name": "first last", "korean_name": "성 이름" }, "extra": "소라 알레르기가 있습니다." }, { "channel_code": "d96b2td4-15c5-4fb5-ae94-4f36667ee981", "name": "first last", "national_code": "82", "phone": "01012345678", "email": "user@example.com", "additional": { "english_name": "first last", "korean_name": "성 이름" }, "extra": "소라 알레르기가 있습니다." } ] } ], "order": { "channel_order_code": "d96b3ed4-12c5-4fb5-ae22-4f39b11ee980", "purchased_at": "2017-05-23 23:30:00", "purchase_requested_at": "2017-05-23 23:30:00", "reserved_at": "2017-05-23 23:30:00", "reservation_requested_at": "2017-05-23 23:30:00", "sub_total": "4444", "discount_method": "주문 전체 10% 할인", "discount": "444", "total": "4000", "status": "New", "is_voucher": true, "comment": "string", "currency": "KRW" }, "purchaser": { "is_required_more_information": true, "name": "first last", "national_code": "82", "phone": "01012345678", "email": "user@example.com", "additional": { "english_name": "first last", "korean_name": "성이름" }, "extra": "폐쇄 공포증이 있습니다." }, "representative": { "name": "first last", "national_code": "82", "phone": "01012345678", "email": "user@example.com", "additional": { "english_name": "first last", "korean_name": "성이름" }, "extra": "폐쇄 공포증이 있습니다." } }' |
4. Type
1) Order
Name | Required | Type | Description |
---|---|---|---|
channel_order_id | O | String |
|
purchased_at | O | Datetime |
|
purchase_requested_at | X | Datetime |
|
reserved_at | X | Datetime |
|
reservation_requested_at | X | Datetime |
|
sub_total | O | String |
|
discount_method | X | String |
|
discount | X | String |
|
total | O | String |
|
status | O | String |
|
is_voucher | O | Boolean |
|
comment | X | String |
|
currency | O | String |
|
2) Depth Combination
Name | Required | Type | Description |
---|---|---|---|
channel_product_mapping_code | O | String |
|
dc_code | O | String |
|
quantity | O | Integer |
|
inventory_at | O | Datetime |
|
unit_selling_price | O | String |
|
discount | X | String |
|
discount_method | X | String |
|
amount_price | O | String |
|
tickets | O | List[Ticket] |
|
3) Purchaser
Name | Required | Type | Description |
---|---|---|---|
is_required_more_information | O | Boolean |
|
name | O | String |
|
national_code | O | String |
|
phone | O | String |
|
O | String |
| |
additional | X | Object |
|
extra | O | String |
|
4) Ticket
Name | Required | Type | Description |
---|---|---|---|
channel_code | O | String |
|
name | O | String |
|
national_code | O | String |
|
phone | O | String |
|
O | String |
| |
additional | X | Object |
|
extra | X | String |
|