POST api/Order/FromDouyin/AddOrder?client_key={client_key}×tamp={timestamp}
抖音方请求该方法进行门票预订下单
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| client_key | string |
Required |
|
| timestamp | string |
Required |
Body Parameters
AddOrderFromDouyinParm| Name | Description | Type | Additional information |
|---|---|---|---|
| order_id |
抖音订单ID |
string |
None. |
| sku_id |
抖音商品ID |
string |
None. |
| third_product_id |
第三方商品ID |
string |
None. |
| count |
发码数量 |
integer |
None. |
| third_sku_id |
三方服务商侧的商品ID |
string |
None. |
| order_type |
订单类型 21-团购 31-预售 41-配送 |
integer |
None. |
| original_amount |
原始金额,单位分(含税) |
integer |
None. |
| currency_code |
货币类型(默认人民币CNY) |
string |
None. |
| create_order_time |
订单创建时间 时间戳(秒) |
integer |
None. |
| contact |
已弃用,联系人信息 |
ContactParm |
None. |
| tourists |
出行人信息 |
Collection of TouristsParm |
None. |
Request Formats
application/json, text/json
Sample:
{
"order_id": "sample string 1",
"sku_id": "sample string 2",
"third_product_id": "sample string 3",
"count": 4,
"third_sku_id": "sample string 5",
"order_type": 6,
"original_amount": 7,
"currency_code": "sample string 8",
"create_order_time": 9,
"contact": {
"name": "sample string 1",
"complete_phone": "sample string 2",
"phone": "sample string 3"
},
"tourists": [
{
"name": "sample string 1",
"phone": "sample string 2",
"id_card": "sample string 3"
},
{
"name": "sample string 1",
"phone": "sample string 2",
"id_card": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<AddOrderFromDouyinParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Douyin">
<contact>
<complete_phone>sample string 2</complete_phone>
<name>sample string 1</name>
<phone>sample string 3</phone>
</contact>
<count>4</count>
<create_order_time>9</create_order_time>
<currency_code>sample string 8</currency_code>
<order_id>sample string 1</order_id>
<order_type>6</order_type>
<original_amount>7</original_amount>
<sku_id>sample string 2</sku_id>
<third_product_id>sample string 3</third_product_id>
<third_sku_id>sample string 5</third_sku_id>
<tourists>
<TouristsParm>
<id_card>sample string 3</id_card>
<name>sample string 1</name>
<phone>sample string 2</phone>
</TouristsParm>
<TouristsParm>
<id_card>sample string 3</id_card>
<name>sample string 1</name>
<phone>sample string 2</phone>
</TouristsParm>
</tourists>
</AddOrderFromDouyinParm>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
抖音方请求该方法进行门票预订下单
OrderReturnResult| Name | Description | Type | Additional information |
|---|---|---|---|
| data |
返回结果 |
ReturnCommonResult |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"error_code": 1,
"description": "sample string 2",
"ext_order_id": "sample string 3"
}
}
application/xml, text/xml
Sample:
<OrderReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Douyin">
<data>
<description>sample string 2</description>
<error_code>1</error_code>
<ext_order_id>sample string 3</ext_order_id>
</data>
</OrderReturnResult>