支付宝小程序充值
<p>[TOC]</p>
<h4>支付宝小程序充值</h4>
<h5>请求URL</h5>
<ul>
<li><code>v1/alipay/getPreOrder</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>请求Header参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数位置</th>
<th>类型</th>
<th>是否必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>header</td>
<td>string</td>
<td>否</td>
<td>-</td>
</tr>
</tbody>
</table>
<h5>请求Body参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数位置</th>
<th>类型</th>
<th>是否必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>price</td>
<td>body</td>
<td>integer</td>
<td>是</td>
<td>充值金额</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code class="language-json">{
&quot;success&quot;: true,
&quot;code&quot;: 200,
&quot;data&quot;: [
{
&quot;code&quot;: &quot;10000&quot;,
&quot;msg&quot;: &quot;Success&quot;,
&quot;out_trade_no&quot;: &quot;202306161704449981&quot;,
&quot;trade_no&quot;: &quot;2023061622001487171447062709&quot;
}
]
}</code></pre>