批量核销接口
<p><strong>接口描述:</strong> </p>
<ul>
<li>批量核销优惠券</li>
<li>最大仅支持单次100个优惠券核销</li>
</ul>
<p><strong>接口URL:</strong> </p>
<ul>
<li><code>https://open.gdyfsk.com/yfpay/coupon/wfBatch</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>请求头部:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">标签</th>
<th style="text-align: left;">必填</th>
<th>内容</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Content-Type</td>
<td style="text-align: left;">是</td>
<td>application/json</td>
</tr>
</tbody>
</table>
<p><strong>请求参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">必填</th>
<th style="text-align: left;">说明</th>
<th>参数示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">inst_no</td>
<td style="text-align: left;">string(8)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">机构号</td>
<td>900024</td>
</tr>
<tr>
<td style="text-align: left;">merchant_no</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">商户号</td>
<td>851811130002</td>
</tr>
<tr>
<td style="text-align: left;">shop_no</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">门店号</td>
<td>862010110001</td>
</tr>
<tr>
<td style="text-align: left;">ts</td>
<td style="text-align: left;">string(14)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">时间戳</td>
<td>20200406005530</td>
</tr>
<tr>
<td style="text-align: left;">channel_type</td>
<td style="text-align: left;">string(5)</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">通道类型</td>
<td>10001.东福,10005.苏打优选,10006.熊猫优福,10007.品诺福利</td>
</tr>
<tr>
<td style="text-align: left;">notify_url</td>
<td style="text-align: left;">string(128)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">异步通知地址</td>
<td><a href="http://localhost:8080/openpay/coupon/notify">http://localhost:8080/openpay/coupon/notify</a></td>
</tr>
<tr>
<td style="text-align: left;">coupon_list</td>
<td style="text-align: left;">string(1000)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">批量核销优惠券的list JSONARRAY 字符串格式传递</td>
</tr>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">签名</td>
<td>51c7d68424e5492199cf7f4734a2b977</td>
</tr>
</tbody>
</table>
<p>couponListJsonStr示例</p>
<pre><code class="language-json">&quot;[
{
\&quot;coupon_code\&quot;:\&quot;679533922928\&quot;, --优惠券code
\&quot;amount\&quot;:\&quot;1000\&quot; --优惠金额
},
{
\&quot;coupon_code\&quot;:\&quot;458797611097\&quot;,
\&quot;amount\&quot;:\&quot;1000\&quot;
},
{
\&quot;coupon_code\&quot;:\&quot;925372304962\&quot;,
\&quot;amount\&quot;:\&quot;1000\&quot;
},
{
\&quot;coupon_code\&quot;:\&quot;189051733270\&quot;,
\&quot;amount\&quot;:\&quot;1000\&quot;
}
]</code></pre>
<p><strong>请求示例:</strong></p>
<ul>
<li>批量核销优惠券</li>
</ul>
<pre><code class="language-json">{
&quot;inst_no&quot;: &quot;60000001&quot;,
&quot;merchant_no&quot;: &quot;851811130002&quot;,
&quot;shop_no&quot;:&quot;862010110001&quot;,
&quot;channel_type&quot;: &quot;10001&quot;,
&quot;sign&quot;: &quot;7069994f1541bc2b2ab8ab9f99a19064&quot;,
&quot;ts&quot;: &quot;20211120154500&quot;,
&quot;notify_url&quot;:&quot;http://localhost:8080/openpay/coupon/notify&quot;,
&quot;coupon_list&quot;:&quot;[
{
\&quot;coupon_code\&quot;:\&quot;210141717841324\&quot;,
\&quot;amount\&quot;:\&quot;1000\&quot;
},
{
\&quot;coupon_code\&quot;:\&quot;210110926512616\&quot;,
\&quot;amount\&quot;:\&quot;1000\&quot;
}
]&quot;
}</code></pre>
<p><strong>返回参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">必含</th>
<th style="text-align: left;">说明</th>
<th>参数示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">return_code</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">响应码:SUCCESS成功,FAIL失败,响应码仅代表通信或参数</td>
<td>SUCCESS</td>
</tr>
<tr>
<td style="text-align: left;">return_msg</td>
<td style="text-align: left;">string(128)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">返回信息提示,“操作成功”,“参数不合法” 等</td>
<td>操作成功</td>
</tr>
<tr>
<td style="text-align: left;">result_code</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">业务结果:SUCCESS ,FAIL,只有在return_code为SUCCESS时才会返回</td>
<td>SUCCESS</td>
</tr>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: left;">string(32)</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">签名</td>
<td>51c7d68424e5492199cf7f4734a2b977</td>
</tr>
</tbody>
</table>
<p><strong>返回示例:</strong> </p>
<ul>
<li>成功返回结果:</li>
</ul>
<pre><code class="language-json">{
&quot;return_code&quot;: &quot;SUCCESS&quot;,
&quot;return_msg&quot;: &quot;批量核销线程启动成功&quot;,
&quot;result_code&quot;: &quot;SUCCESS&quot;,
&quot;sign&quot;: &quot;7d4d8b2d215ef74fef14d31d20165581&quot;
}
</code></pre>