创建订单
<p>创建订单</p>
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{host}}/api/open/order_add</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th>字段名</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>apikey</td>
<td>6519827339</td>
<td>是</td>
<td>string</td>
<td>apikey</td>
</tr>
<tr>
<td>timestamp</td>
<td>1724288542</td>
<td>是</td>
<td>string</td>
<td>时间戳</td>
</tr>
<tr>
<td>sign</td>
<td>2fb775334b02d663127a8a9fd1edbc64</td>
<td>是</td>
<td>string</td>
<td>签名</td>
</tr>
<tr>
<td>accept</td>
<td>application/json</td>
<td>是</td>
<td>string</td>
<td>accept</td>
</tr>
<tr>
<td>content-type</td>
<td>application/json;charset=UTF-8</td>
<td>是</td>
<td>string</td>
<td>content-type</td>
</tr>
<tr>
<td>lang</td>
<td>en-us</td>
<td>是</td>
<td>string</td>
<td>lang</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
&quot;reference_no&quot;: &quot;AW14587122891165522&quot;,
&quot;business_type&quot;: &quot;9610&quot;,
&quot;order_status&quot;: 0,
&quot;shipping_method&quot;: &quot;CNFED-IP5000B&quot;,
&quot;country_code&quot;: &quot;US&quot;,
&quot;order_weight&quot;: 1.25,
&quot;order_volume&quot;: null,
&quot;order_pieces&quot;: 1,
&quot;platform&quot;: &quot;Amazon&quot;,
&quot;platform_number&quot;: &quot;TDS-986548-630&quot;,
&quot;total_amount&quot;: 170.32,
&quot;total_amount_currency&quot;: &quot;CNY&quot;,
&quot;bg_currency_code&quot;: &quot;USD&quot;,
&quot;remark&quot;: null,
&quot;back_hand_type&quot;: &quot;返海外 仓&quot;,
&quot;shipper_name&quot;: &quot;张三&quot;,
&quot;shipper_company&quot;: &quot;张三公司&quot;,
&quot;shipper_country_code&quot;: &quot;CN&quot;,
&quot;shipper_province&quot;: &quot;广东省&quot;,
&quot;shipper_city&quot;: &quot;深圳市&quot;,
&quot;shipper_area&quot;: &quot;希望小区&quot;,
&quot;shipper_street&quot;: &quot;坂田街道吉华路509号&quot;,
&quot;shipper_postcode&quot;: &quot;51800&quot;,
&quot;shipper_telephone&quot;: &quot;0755-86858698&quot;,
&quot;shipper_mobile&quot;: &quot;13367154259&quot;,
&quot;shipper_email&quot;: &quot;81562632654@gmai.com&quot;,
&quot;consignee_name&quot;: &quot;Anri Kawatani&quot;,
&quot;consignee_company&quot;: &quot;Kawatani CO.&quot;,
&quot;consignee_doorplate&quot;: &quot;S5869&quot;,
&quot;consignee_province&quot;: &quot;Osaka Fu&quot;,
&quot;consignee_city&quot;: &quot;Matsubara Shi&quot;,
&quot;consignee_area&quot;: null,
&quot;consignee_street&quot;: &quot;6-3-33 Miyakenaka,Matsubara-shi,Osaka,Japan,580-0046&quot;,
&quot;consignee_street2&quot;: &quot;6-3-33 Miyakenaka,Matsubara-shi,Osaka,Japan,580-0046 -2&quot;,
&quot;consignee_street3&quot;: &quot;6-3-33 Miyakenaka,Matsubara-shi,Osaka,Japan,580-0046 -3&quot;,
&quot;consignee_mobile&quot;: &quot;13365245878&quot;,
&quot;consignee_telephone&quot;: &quot;85693411&quot;,
&quot;consignee_email&quot;: &quot;62554552144@d-rain.cn&quot;,
&quot;consignee_postcode&quot;: &quot;218600&quot;,
&quot;consignee_tax_no&quot;: &quot;218600&quot;,
&quot;user_id&quot;: 1,
&quot;create_time&quot;: &quot;2024-10-31 15:22:37&quot;,
&quot;update_time&quot;: &quot;2024-10-31 15:22:37&quot;,
&quot;is_pull_erp&quot;: false,
&quot;wh_code&quot;: &quot;东二区&quot;,
&quot;items&quot;: [
{
&quot;sku_code&quot;: &quot;TX-56985632&quot;,
&quot;art_no&quot;: &quot;HS7854&quot;,
&quot;cn_name&quot;: &quot;检测工具&quot;,
&quot;en_name&quot;: &quot;Car scanning detecto&quot;,
&quot;net_weight&quot;: 0.23,
&quot;cross_weight&quot;: 0.26,
&quot;quantity&quot;: 3,
&quot;unit&quot;: &quot;个&quot;,
&quot;unit_price&quot;: 12.56,
&quot;material&quot;: &quot;test&quot;,
&quot;use&quot;: &quot;self use&quot;,
&quot;brand&quot;: &quot;&quot;,
&quot;hg_info&quot;: {
&quot;hg_hs_code&quot;: &quot;87767890&quot;,
&quot;hg_cn_name&quot;: &quot;检测工具&quot;,
&quot;hg_en_name&quot;: &quot;Car scanning detecto&quot;,
&quot;hg_brand&quot;: &quot;维修&quot;,
&quot;hg_unit_price&quot;: 12.56,
&quot;hg_quantity&quot;: 3,
&quot;hg_total_amount&quot;: 100.9,
&quot;hg_unit_one&quot;: &quot;&quot;,
&quot;hg_unit_one_weight&quot;: 8.56,
&quot;hg_unit_second&quot;: &quot;个&quot;,
&quot;hg_unit_second_weight&quot;: 2,
&quot;hg_transaction_unit&quot;: &quot;个&quot;,
&quot;hg_source_of_goods&quot;: &quot;深圳&quot;,
&quot;hg_country_of_origin&quot;: &quot;中国&quot;,
&quot;hg_declaration_elements&quot;: &quot;1|0|汽车维修检测用|连 接汽车电脑诊断座,读取车辆数据|检测|品牌THINKCAR||型号TCBD6&quot;,
&quot;hg_exemption_method&quot;: &quot;一般征税&quot;
}
},
{
&quot;sku_code&quot;: &quot;TX-56985632-3&quot;,
&quot;art_no&quot;: &quot;HS7854&quot;,
&quot;cn_name&quot;: &quot;检测工具&quot;,
&quot;en_name&quot;: &quot;Car scanning detecto&quot;,
&quot;net_weight&quot;: 0.23,
&quot;cross_weight&quot;: 0.26,
&quot;quantity&quot;: 3,
&quot;unit&quot;: &quot;个&quot;,
&quot;unit_price&quot;: 12.56,
&quot;material&quot;: &quot;test&quot;,
&quot;use&quot;: &quot;self use&quot;,
&quot;brand&quot;: &quot;&quot;,
&quot;hg_info&quot;: {
&quot;hg_hs_code&quot;: &quot;87767890&quot;,
&quot;hg_cn_name&quot;: &quot;检测工具&quot;,
&quot;hg_en_name&quot;: &quot;Car scanning detecto&quot;,
&quot;hg_brand&quot;: &quot;维修&quot;,
&quot;hg_unit_price&quot;: 12.56,
&quot;hg_quantity&quot;: 3,
&quot;hg_total_amount&quot;: 100.9,
&quot;hg_unit_one&quot;: &quot;&quot;,
&quot;hg_unit_one_weight&quot;: 8.56,
&quot;hg_unit_second&quot;: &quot;个&quot;,
&quot;hg_unit_second_weight&quot;: 2,
&quot;hg_transaction_unit&quot;: &quot;个&quot;,
&quot;hg_source_of_goods&quot;: &quot;深圳&quot;,
&quot;hg_country_of_origin&quot;: &quot;中国&quot;,
&quot;hg_declaration_elements&quot;: &quot;1|0|汽车维修检测用|连 接汽车电脑诊断座,读取车辆数据|检测|品牌THINKCAR||型号TCBD6&quot;,
&quot;hg_exemption_method&quot;: &quot;一般征税&quot;
}
}
]
}</code></pre>
<h5>请求json字段说明</h5>
<table>
<thead>
<tr>
<th>字段名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>reference_no</td>
<td>是</td>
<td>string</td>
<td>客户单号</td>
</tr>
<tr>
<td>business_type</td>
<td>是</td>
<td>string</td>
<td>业务类型,如9610,1210</td>
</tr>
<tr>
<td>shipping_method</td>
<td>是</td>
<td>string</td>
<td>渠道代码</td>
</tr>
<tr>
<td>country_code</td>
<td>是</td>
<td>string</td>
<td>国家二字码</td>
</tr>
<tr>
<td>order_weight</td>
<td>是</td>
<td>string</td>
<td>订单重量</td>
</tr>
<tr>
<td>order_volume</td>
<td>否</td>
<td>object</td>
<td>订单体积</td>
</tr>
<tr>
<td>order_pieces</td>
<td>否</td>
<td>string</td>
<td>包裹数量</td>
</tr>
<tr>
<td>platform</td>
<td>否</td>
<td>string</td>
<td>来源,如Amazon,ebay等</td>
</tr>
<tr>
<td>platform_number</td>
<td>否</td>
<td>string</td>
<td>平台订单号</td>
</tr>
<tr>
<td>total_amount</td>
<td>是</td>
<td>string</td>
<td>订单总金额</td>
</tr>
<tr>
<td>total_amount_currency</td>
<td>是</td>
<td>string</td>
<td>订单总金额币种</td>
</tr>
<tr>
<td>bg_currency_code</td>
<td>否</td>
<td>string</td>
<td>报关币种</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>object</td>
<td>订单备注</td>
</tr>
<tr>
<td>back_hand_type</td>
<td>否</td>
<td>string</td>
<td>退货方式</td>
</tr>
<tr>
<td>shipper_name</td>
<td>是</td>
<td>string</td>
<td>发件人名称</td>
</tr>
<tr>
<td>shipper_company</td>
<td>否</td>
<td>string</td>
<td>发件人公司</td>
</tr>
<tr>
<td>shipper_country_code</td>
<td>是</td>
<td>string</td>
<td>发件人国家二字码</td>
</tr>
<tr>
<td>shipper_province</td>
<td>是</td>
<td>string</td>
<td>发件人省/州</td>
</tr>
<tr>
<td>shipper_city</td>
<td>是</td>
<td>string</td>
<td>发件人城市</td>
</tr>
<tr>
<td>shipper_street</td>
<td>是</td>
<td>string</td>
<td>发件人详细地址</td>
</tr>
<tr>
<td>shipper_postcode</td>
<td>是</td>
<td>string</td>
<td>发件人邮编</td>
</tr>
<tr>
<td>shipper_telephone</td>
<td>是</td>
<td>string</td>
<td>发件人联系电话</td>
</tr>
<tr>
<td>shipper_mobile</td>
<td>否</td>
<td>string</td>
<td>发件人联系手机</td>
</tr>
<tr>
<td>shipper_email</td>
<td>否</td>
<td>string</td>
<td>发件人邮编</td>
</tr>
<tr>
<td>consignee_name</td>
<td>是</td>
<td>string</td>
<td>收货人名称</td>
</tr>
<tr>
<td>consignee_company</td>
<td>是</td>
<td>string</td>
<td>收货人公司</td>
</tr>
<tr>
<td>consignee_doorplate</td>
<td>否</td>
<td>string</td>
<td>收货人门牌号</td>
</tr>
<tr>
<td>consignee_province</td>
<td>是</td>
<td>string</td>
<td>收货人省/州</td>
</tr>
<tr>
<td>consignee_city</td>
<td>是</td>
<td>string</td>
<td>收货人城市</td>
</tr>
<tr>
<td>consignee_street</td>
<td>是</td>
<td>string</td>
<td>收货人详细地址</td>
</tr>
<tr>
<td>consignee_street2</td>
<td>否</td>
<td>string</td>
<td>收货人详细地址2</td>
</tr>
<tr>
<td>consignee_street3</td>
<td>否</td>
<td>string</td>
<td>收货人详细地址3</td>
</tr>
<tr>
<td>consignee_mobile</td>
<td>是</td>
<td>string</td>
<td>收货人联系手机</td>
</tr>
<tr>
<td>consignee_telephone</td>
<td>否</td>
<td>string</td>
<td>收货人联系电话</td>
</tr>
<tr>
<td>consignee_email</td>
<td>是</td>
<td>string</td>
<td>收货人联系邮箱</td>
</tr>
<tr>
<td>consignee_postcode</td>
<td>是</td>
<td>string</td>
<td>收货人邮编</td>
</tr>
<tr>
<td>consignee_tax_no</td>
<td>否</td>
<td>string</td>
<td>收货人相关税号</td>
</tr>
<tr>
<td>wh_code</td>
<td>否</td>
<td>string</td>
<td>仓库代码</td>
</tr>
<tr>
<td>items</td>
<td>是</td>
<td>array</td>
<td>订单货物信息</td>
</tr>
<tr>
<td>items.sku_code</td>
<td>是</td>
<td>string</td>
<td>SKU代码</td>
</tr>
<tr>
<td>items.art_no</td>
<td>否</td>
<td>string</td>
<td>货号</td>
</tr>
<tr>
<td>items.cn_name</td>
<td>是</td>
<td>string</td>
<td>中文品名</td>
</tr>
<tr>
<td>items.en_name</td>
<td>是</td>
<td>string</td>
<td>英文品名</td>
</tr>
<tr>
<td>items.net_weight</td>
<td>是</td>
<td>string</td>
<td>商品净重</td>
</tr>
<tr>
<td>items.cross_weight</td>
<td>否</td>
<td>string</td>
<td>商品毛重</td>
</tr>
<tr>
<td>items.quantity</td>
<td>是</td>
<td>string</td>
<td>数量</td>
</tr>
<tr>
<td>items.unit</td>
<td>否</td>
<td>string</td>
<td>单位</td>
</tr>
<tr>
<td>items.unit_price</td>
<td>是</td>
<td>string</td>
<td>售价</td>
</tr>
<tr>
<td>items.material</td>
<td>否</td>
<td>string</td>
<td>材质</td>
</tr>
<tr>
<td>items.use</td>
<td>否</td>
<td>string</td>
<td>用途</td>
</tr>
<tr>
<td>items.brand</td>
<td>否</td>
<td>string</td>
<td>品牌</td>
</tr>
<tr>
<td>items.hg_info</td>
<td>否</td>
<td>object</td>
<td>申报信息</td>
</tr>
<tr>
<td>items.hg_info.hg_hs_code</td>
<td>否</td>
<td>string</td>
<td>海关编码</td>
</tr>
<tr>
<td>items.hg_info.hg_cn_name</td>
<td>否</td>
<td>string</td>
<td>申报中文名称</td>
</tr>
<tr>
<td>items.hg_info.hg_en_name</td>
<td>否</td>
<td>string</td>
<td>申报英文名称</td>
</tr>
<tr>
<td>items.hg_info.hg_brand</td>
<td>否</td>
<td>string</td>
<td>申报品牌</td>
</tr>
<tr>
<td>items.hg_info.hg_unit_price</td>
<td>否</td>
<td>string</td>
<td>申报单价</td>
</tr>
<tr>
<td>items.hg_info.hg_quantity</td>
<td>否</td>
<td>string</td>
<td>申报数量</td>
</tr>
<tr>
<td>items.hg_info.hg_total_amount</td>
<td>否</td>
<td>string</td>
<td>申报总金额</td>
</tr>
<tr>
<td>items.hg_info.hg_unit_one</td>
<td>否</td>
<td>string</td>
<td>申报法定第一单位</td>
</tr>
<tr>
<td>items.hg_info.hg_unit_one_weight</td>
<td>否</td>
<td>string</td>
<td>申报法定第一单位重量</td>
</tr>
<tr>
<td>items.hg_info.hg_unit_second</td>
<td>否</td>
<td>string</td>
<td>申报法定第二单位</td>
</tr>
<tr>
<td>items.hg_info.hg_unit_second_weight</td>
<td>否</td>
<td>string</td>
<td>申报法定第二单位重量</td>
</tr>
<tr>
<td>items.hg_info.hg_transaction_unit</td>
<td>否</td>
<td>string</td>
<td>成交单位</td>
</tr>
<tr>
<td>items.hg_info.hg_source_of_goods</td>
<td>否</td>
<td>string</td>
<td>货源</td>
</tr>
<tr>
<td>items.hg_info.hg_country_of_origin</td>
<td>否</td>
<td>string</td>
<td>原产国</td>
</tr>
<tr>
<td>items.hg_info.hg_declaration_elements</td>
<td>否</td>
<td>string</td>
<td>申报要素</td>
</tr>
<tr>
<td>items.hg_info.hg_exemption_method</td>
<td>否</td>
<td>string</td>
<td>征免方式</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;订单创建成功&quot;,
&quot;time&quot;: 1730451301,
&quot;data&quot;: {
&quot;order_no&quot;: &quot;DR306609013693208&quot;,
&quot;awb_no&quot;: &quot;DES456985112&quot;,
&quot;reference_no&quot;: &quot;AW14587122891165522&quot;
},
&quot;log_id&quot;: &quot;9bfb91de74ce19d38956db12cd2004b8&quot;
}</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>1:成功 ,0: 失败</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>提示信息</td>
</tr>
<tr>
<td>time</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>data.order_no</td>
<td>string</td>
<td>订单订单号</td>
</tr>
<tr>
<td>data.awb_no</td>
<td>string</td>
<td>转单号</td>
</tr>
<tr>
<td>data.reference_no</td>
<td>string</td>
<td>客户单号</td>
</tr>
<tr>
<td>log_id</td>
<td>string</td>
<td>日志ID</td>
</tr>
</tbody>
</table>
<h5>失败返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;Signature timeout&quot;,
&quot;data&quot;: [],
&quot;track_id&quot;: &quot;2bef4a39c5de410e170db134fbc7e686&quot;
}</code></pre>
<h5>失败返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>1:成功 ,0: 失败</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>提示信息</td>
</tr>
<tr>
<td>data</td>
<td>array</td>
<td>数据</td>
</tr>
<tr>
<td>track_id</td>
<td>string</td>
<td>日志ID</td>
</tr>
</tbody>
</table>