2.5开通权益卡接口
<h2>接口说明</h2>
<p>路径:/api/order/autoPlaceOrder</p>
<p>方法: POST</p>
<h2>公共请求参数</h2>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>Authorization</td>
<td>String</td>
<td></td>
<td>是</td>
<td>Bearer 客户访问令牌/会员访问令牌</td>
</tr>
</tbody>
</table>
<h2>请求参数</h2>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>thirdOrderNo</td>
<td>String</td>
<td></td>
<td>是</td>
<td>客户订单号</td>
</tr>
<tr>
<td>payOrderId</td>
<td>String</td>
<td></td>
<td>否</td>
<td>客户支付平台流水号</td>
</tr>
<tr>
<td>payType</td>
<td>String</td>
<td></td>
<td>是</td>
<td>ALI.支付宝 WX.微信</td>
</tr>
<tr>
<td>incomeType</td>
<td>String</td>
<td></td>
<td>是</td>
<td>收款方:平台收款 0 客户收款 1</td>
</tr>
<tr>
<td>refundType</td>
<td>String</td>
<td></td>
<td>是</td>
<td>退款方:平台退款 0 客户退款 1</td>
</tr>
<tr>
<td>payFlowNo</td>
<td>String</td>
<td></td>
<td>否</td>
<td>客户收款,烈熊退款必传字段,商户交易单号</td>
</tr>
<tr>
<td>thirdTradeNo</td>
<td>String</td>
<td></td>
<td>否</td>
<td>客户收款,烈熊退款必传字段,支付平台流水号</td>
</tr>
<tr>
<td>goodsItem</td>
<td>Array</td>
<td></td>
<td>是</td>
<td>商品组字段说明点击查看</td>
</tr>
</tbody>
</table>
<h3>goodsItem组</h3>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>goodsItem.salesDetailId</td>
<td>商品ID</td>
<td>String</td>
<td>Y</td>
<td>商品id</td>
</tr>
<tr>
<td>goodsItem.buyNum</td>
<td>Integer</td>
<td></td>
<td>是</td>
<td>购卡数量,当前仅支持1</td>
</tr>
<tr>
<td>goodsItem.buyPrice</td>
<td>String</td>
<td></td>
<td>是</td>
<td>客户实收金额单位(分)</td>
</tr>
<tr>
<td>goodsItem.onTime</td>
<td>String</td>
<td></td>
<td>是</td>
<td>开通时间格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
</tbody>
</table>
<h2>响应参数</h2>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderNo</td>
<td>String</td>
<td></td>
<td>烈熊订单号</td>
</tr>
<tr>
<td>thirdOrderNo</td>
<td></td>
<td></td>
<td>客户订单号</td>
</tr>
<tr>
<td>goodsItem</td>
<td>Array</td>
<td></td>
<td>商品信息</td>
</tr>
<tr>
<td>goodsItem.salesDetailId</td>
<td>String</td>
<td></td>
<td>商品ID</td>
</tr>
<tr>
<td>goodsItem.userCardInfo</td>
<td>Array</td>
<td></td>
<td>用户权益卡信息</td>
</tr>
</tbody>
</table>
<h3>Item.userCardInfo 组</h3>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>goodsItem.userCardInfo.userCardId</td>
<td>String</td>
<td></td>
<td>用户权益卡id</td>
</tr>
<tr>
<td>goodsItem.userCardInfo.startTime</td>
<td>String</td>
<td></td>
<td>用户权益卡生效时间</td>
</tr>
<tr>
<td>goodsItem.userCardInfo.startTime</td>
<td>String</td>
<td></td>
<td>用户权益卡失效时间</td>
</tr>
</tbody>
</table>
<h2>请求示例</h2>
<pre><code class="language-json">{
&quot;thirdOrderNo&quot;: &quot;202108310000080000001215&quot;,
&quot;thirdTradeNo&quot;: &quot;4200001619202208262144915917&quot;,
&quot;payFlowNo&quot;: &quot;202208240000610000022813&quot;,
&quot;payOrderId&quot;: &quot;1432627310944247810&quot;,
&quot;payType&quot;: &quot;ALI&quot;,
&quot;incomeType&quot;: &quot;1&quot;,
&quot;refundType&quot;: &quot;1&quot;,
&quot;goodsItem&quot;: [
{
&quot;buyPrice&quot;: &quot;10000&quot;,
&quot;salesDetailId&quot;: &quot;1428284459796115458&quot;,
&quot;buyNum&quot;: 1,
&quot;onTime&quot;: &quot;2021-09-03 19:14:21&quot;
}
]
}</code></pre>
<h2>响应示例</h2>
<pre><code class="language-json">{
&quot;code&quot;: &quot;0&quot;,
&quot;data&quot;: {
&quot;goodsItem&quot;: [
{
&quot;salesDetailId&quot;: &quot;1572046864730546178&quot;,
&quot;userCardInfo&quot;: [
{
&quot;endTime&quot;: &quot;2022-10-02 23:59:59&quot;,
&quot;startTime&quot;: &quot;2022-09-22 10:57:34&quot;,
&quot;userCardId&quot;: &quot;1572782122870497282&quot;
}
]
}
],
&quot;orderNo&quot;: &quot;202209220000000000000746&quot;,
&quot;thirdOrderNo&quot;: &quot;0008fda5-b646-4547-b95a-6d84ded824aa&quot;
},
&quot;message&quot;: &quot;请求成功&quot;,
&quot;service&quot;: &quot;&quot;,
&quot;success&quot;: true
}</code></pre>
<h2>支付枚举值</h2>
<table>
<thead>
<tr>
<th style="text-align: left;">枚举值</th>
<th style="text-align: left;">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">ALI</td>
<td style="text-align: left;">支付宝</td>
</tr>
<tr>
<td style="text-align: left;">WX</td>
<td style="text-align: left;">微信</td>
</tr>
<tr>
<td style="text-align: left;">BF</td>
<td style="text-align: left;">宝付</td>
</tr>
<tr>
<td style="text-align: left;">YB</td>
<td style="text-align: left;">易宝</td>
</tr>
<tr>
<td style="text-align: left;">HSQ</td>
<td style="text-align: left;">慧收钱</td>
</tr>
<tr>
<td style="text-align: left;">OTHER</td>
<td style="text-align: left;">其他</td>
</tr>
</tbody>
</table>
<h2>错误</h2>
<table>
<thead>
<tr>
<th style="text-align: left;">codes</th>
<th style="text-align: left;">问题描述</th>
<th style="text-align: left;">解决</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">401</td>
<td style="text-align: left;">Bearer令牌不允许为空/token无效</td>
<td style="text-align: left;">请检查Authorization参数</td>
</tr>
<tr>
<td style="text-align: left;">INTERESTS_10055</td>
<td style="text-align: left;">三方订单号不可重复下单</td>
</tr>
<tr>
<td style="text-align: left;">400</td>
<td style="text-align: left;">缺少参数</td>
<td style="text-align: left;">具体内容查阅返回的message字段</td>
</tr>
</tbody>
</table>