团购购买
<p><strong>简要描述:</strong> </p>
<ul>
<li>团购购买接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/commodity/{id}/groupon</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 style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>商品ID</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>授权类型:wechat_open:开放平台;wechat_app: app应用;balance:余额</td>
</tr>
<tr>
<td style="text-align: left;">groupon_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>团ID</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"error_code": 0,
"data": {
"return_code": "SUCCESS",
"return_msg": "OK",
"appid": "wx2421b1c4390ec4sb",
"mch_id": "10000100",
"nonce_str": "IITRi8Iabbblz1J",
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeSs6o",
"sign": "7921E432F65EB8ED0CE9755F0E86D72F2",
"result_code": "SUCCESS",
"prepay_id": "wx201411102639507cbf6ffd8b0779950874",
"trade_type": "JSAPI"
}
}</code></pre>