创建订单接口
<h4>接口方法:</h4>
<ul>
<li>order.create</li>
</ul>
<h4>接口名称:</h4>
<ul>
<li>创建订单接口</li>
</ul>
<h4>请求方式:</h4>
<ul>
<li>POST</li>
</ul>
<h4>数据格式:</h4>
<ul>
<li>application/json</li>
</ul>
<h1>请求地址</h1>
<table>
<thead>
<tr>
<th>环境</th>
<th>HTTPS地址</th>
</tr>
</thead>
<tbody>
<tr>
<td>正式环境</td>
<td></td>
</tr>
<tr>
<td>沙箱环境</td>
<td><a href="https://test.jpsdt.com/openapi/api/getway">https://test.jpsdt.com/openapi/api/getway</a></td>
</tr>
</tbody>
</table>
<h1>公共请求参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>customerId</td>
<td>string</td>
<td>是</td>
<td>9</td>
<td>1648051962</td>
<td>客户ID(平台分配)</td>
</tr>
<tr>
<td>method</td>
<td>string</td>
<td>是</td>
<td>128</td>
<td>order.create</td>
<td>接口方法名称</td>
</tr>
<tr>
<td>timestamp</td>
<td>string</td>
<td>是</td>
<td>192</td>
<td>2023-12-19 10:23:06</td>
<td>时间戳,格式为:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>version</td>
<td>string</td>
<td>是</td>
<td>3</td>
<td>1.0</td>
<td>调用的接口版本</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>是</td>
<td>344</td>
<td>详见示例</td>
<td>签名串,签名规则详见左侧菜单:接口规范->签名规则</td>
</tr>
<tr>
<td>bizContent</td>
<td>string</td>
<td>是</td>
<td></td>
<td>"{\"customerOrderNo\":\"1814284908584300544\",\"goodsId\":\"20000173\",\"account\":\"13971115867\",\"num\":\"1\",}"</td>
<td>请求参数集合<br>注意:该参数是以json字符串的形式传输</td>
</tr>
</tbody>
</table>
<h1>请求参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>customerOrderNo</td>
<td>String</td>
<td>是</td>
<td>32</td>
<td>1814284908584300544</td>
<td>客户订单号</td>
</tr>
<tr>
<td>goodsId</td>
<td>String</td>
<td>是</td>
<td>9</td>
<td>20000173</td>
<td>商品ID</td>
</tr>
<tr>
<td>account</td>
<td>String</td>
<td>是</td>
<td>32</td>
<td>13971115867</td>
<td>充值账号</td>
</tr>
<tr>
<td>num</td>
<td>String</td>
<td>是</td>
<td>9</td>
<td>1</td>
<td>购买数量</td>
</tr>
</tbody>
</table>
<h1>公共响应参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>String</td>
<td>是</td>
<td>6</td>
<td>0</td>
<td>返回码,详见《业务场景码》</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>是</td>
<td></td>
<td>接口调用成功</td>
<td>返回码描述,详见《业务场景码》</td>
</tr>
<tr>
<td>data</td>
<td>Object</td>
<td>是</td>
<td></td>
<td></td>
<td>响应结果集</td>
</tr>
</tbody>
</table>
<h1>响应参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderId</td>
<td>String</td>
<td>是</td>
<td>17</td>
<td>20240719210328642</td>
<td>平台订单ID</td>
</tr>
<tr>
<td>customerOrderNo</td>
<td>String</td>
<td>是</td>
<td></td>
<td>1814284908584300544</td>
<td>客户订单号</td>
</tr>
<tr>
<td>goodsId</td>
<td>String</td>
<td>是</td>
<td></td>
<td>20000173</td>
<td>商品ID</td>
</tr>
<tr>
<td>goodsName</td>
<td>String</td>
<td>是</td>
<td></td>
<td>美团外卖代金券直充5元</td>
<td>商品名称</td>
</tr>
<tr>
<td>num</td>
<td>String</td>
<td>是</td>
<td></td>
<td>1</td>
<td>购买数量</td>
</tr>
<tr>
<td>price</td>
<td>String</td>
<td>是</td>
<td></td>
<td>3.9500</td>
<td>商品单价</td>
</tr>
<tr>
<td>amount</td>
<td>String</td>
<td>是</td>
<td></td>
<td>3.9500</td>
<td>扣款金额</td>
</tr>
</tbody>
</table>
<h1>请求示例</h1>
<pre><code>{
&quot;customerId&quot;:&quot;1648051962&quot;,
&quot;method&quot;:&quot;goods.info&quot;,
&quot;timestamp&quot;:&quot;2024-07-22 14:15:44&quot;,
&quot;version&quot;:&quot;1.0&quot;,
&quot;sign&quot;:&quot;f039a52dc39e0d32a6d856fd26b01bec&quot;,
&quot;bizContent&quot;:&quot;{\&quot;goodsId\&quot;:\&quot;20000102\&quot;}&quot;
}</code></pre>
<h1>响应示例</h1>
<pre><code>{
&quot;code&quot;: &quot;0&quot;,
&quot;message&quot;: &quot;请求成功!&quot;,
&quot;data&quot;: {
&quot;orderId&quot;: &quot;20240719210328642&quot;,
&quot;customerOrderNo&quot;: &quot;1814284908584300544&quot;,
&quot;goodsId&quot;: &quot;20000173&quot;,
&quot;goodsName&quot;: &quot;美团外卖代金券直充5元&quot;,
&quot;num&quot;: &quot;视频影音&quot;,
&quot;parvalue&quot;: &quot;1&quot;,
&quot;price&quot;: &quot;3.9500&quot;,
&quot;amount&quot;: &quot;3.9500&quot;
}
}</code></pre>
<h1>异常示例</h1>
<pre><code>{
&quot;code&quot;: -1,
&quot;message&quot;: &quot;请求异常&quot;,
&quot;data&quot;: &quot;&quot;,
}</code></pre>