5.1 预创建订单接口
<h3>5.1 预创建订单接口</h3>
<p>> - Url路径:/api/order/pre</p>
<h4>5.1.1 接口请求模型</h4>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>onlineOrderId </td>
<td>string </td>
<td>100 </td>
<td> </td>
<td>Y </td>
<td>平台订单号 </td>
</tr>
</tbody>
</table>
<h4>5.1.2 接口返回模型</h4>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>参数类型</th>
<th>必填</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>orderNo </td>
<td>string </td>
<td>Y </td>
<td>生成订单编号</td>
</tr>
</tbody>
</table>
<p>Demo:</p>
<pre><code>Request:
{
&quot;appKey&quot;: &quot;NepHealth&quot;,
&quot;nonce&quot;: &quot;793d4171-183b-4a80-8c00-fd8d70954a38&quot;,
&quot;timestamp&quot;: 1639121594,
&quot;sign&quot;: &quot;45e3cc54d144e513ef3999a06e4cf22aae9782a4&quot;,
&quot;input&quot;: {
{
&quot;addressUuid&quot;: &quot;8a69c560899a83290189a4ee2c5e0003&quot;,
&quot;couponUuid&quot;: &quot;&quot;,
&quot;deliverType&quot;: &quot;1&quot;,
&quot;drugUserUuid&quot;: &quot;&quot;,
&quot;items&quot;: [{
&quot;count&quot;: 1,
&quot;uuid&quot;: &quot;1c99f86576b3475286dc11b109eab199&quot;,
&quot;price&quot;: 70,
&quot;hasGift&quot;: false,
&quot;hasGroup&quot;: false,
&quot;isNew&quot;: false
}],
&quot;notes&quot;: &quot;&quot;,
&quot;storeUuid&quot;: &quot;2c9ee16779ebb9590179ee9dec570033&quot;,
&quot;drugUsageInfo&quot;: null,
&quot;useIntegral&quot;: true,
&quot;discountsAmount&quot;: 0,
&quot;hallCouponUuid&quot;: &quot;&quot;,
&quot;additionalProducts&quot;: [],
&quot;reduceDiscountAmount&quot;: &quot;0&quot;,
&quot;lastActivityType&quot;: &quot;&quot;,
&quot;groups&quot;: [],
&quot;timeBuyProducts&quot;: []
}
}
Response:
{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;nonce&quot;: &quot;793d4171-183b-4a80-8c00-fd8d70954a38&quot;,
&quot;output&quot;: {
&quot;orderNo&quot;: &quot;02000002057467745&quot;
}
}</code></pre>