支付宝红包
<h3>支付宝红包</h3>
<p><strong>URL:</strong> /v1/openapi/order/alipay/transfer</p>
<p><strong>Type:</strong> POST</p>
<p><strong>Content-Type:</strong> application/json; charset=utf-8</p>
<p><strong>Description:</strong> 下发支付宝B2C红包,转账到用户支付宝零钱中</p>
<p><strong>Request-headers:</strong></p>
<table>
<thead>
<tr>
<th>Header</th>
<th>Type</th>
<th>Description</th>
<th>Required</th>
<th>Since</th>
</tr>
</thead>
<tbody>
<tr>
<td>businessId</td>
<td>string</td>
<td>业务ID,由平台提供</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>nonce</td>
<td>string</td>
<td>随机字符串,需保证每次请求不同</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>timestamp</td>
<td>string</td>
<td>时间戳,毫秒值</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>签名值</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>signType</td>
<td>string</td>
<td>签名方式:SHA256-RSA、MD5。默认:SHA256-RSA</td>
<td>false</td>
</tr>
</tbody>
</table>
<p><strong>Body-parameters:</strong></p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Description</th>
<th>Required</th>
<th>Since</th>
</tr>
</thead>
<tbody>
<tr>
<td>merchantId</td>
<td>string</td>
<td>商家ID</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>businessId</td>
<td>string</td>
<td>业务ID</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>bizCode</td>
<td>string</td>
<td>商家订单号</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>productCode</td>
<td>string</td>
<td>产品编码</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>amount</td>
<td>double</td>
<td>转账金额,最小0.01,支持小数点后两位,商品可配成固定面额/指定面额,固定面额的充值金额为商品面值,指定面额时使用接口中amount金额</td>
<td>true</td>
<td>-</td>
</tr>
<tr>
<td>account</td>
<td>string</td>
<td>支付宝登录号,支持邮箱和手机号格式</td>
<td>false</td>
<td>-</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>支付宝真实姓名</td>
<td>false</td>
<td>-</td>
</tr>
<tr>
<td>openId</td>
<td>string</td>
<td>支付宝openId,该字段传参时account、name不必填</td>
<td>false</td>
<td>-</td>
</tr>
<tr>
<td>extData</td>
<td>string</td>
<td>扩展参数,会在订单查询时返回该值,不支持JSON字符串,会导致验签不通过</td>
<td>false</td>
<td>-</td>
</tr>
<tr>
<td>callbackUrl</td>
<td>string</td>
<td>充值的状态报告推送地址<br>为空则使用开户时设置的地址</td>
<td>false</td>
<td>-</td>
</tr>
</tbody>
</table>
<p><strong>Request-example:</strong></p>
<pre><code>curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'businessId:55' -H 'nonce:55' -H 'timestamp:1628757969177' -H 'sign:55' -i /v1/openapi/order/wechat/transfer? --data '{
&quot;merchantId&quot;: &quot;84&quot;,
&quot;businessId&quot;: &quot;84&quot;,
&quot;bizCode&quot;: &quot;63536&quot;,
&quot;productCode&quot;: &quot;63536&quot;,
&quot;amount&quot;: &quot;0.01&quot;,
&quot;account&quot;: &quot;13211551111&quot;,
&quot;name&quot;: &quot;李四&quot;,
&quot;callbackUrl&quot;: &quot;www.xn---xn--vc7a-987w249s.net&quot;
}'</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
<th>Since</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>int32</td>
<td>状态码</td>
<td>-</td>
</tr>
<tr>
<td>message</td>
<td>string</td>
<td>返回消息</td>
<td>-</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>数据对象</td>
<td>-</td>
</tr>
<tr>
<td>└─orderCode</td>
<td>string</td>
<td>平台订单号</td>
<td>-</td>
</tr>
<tr>
<td>└─bizCode</td>
<td>string</td>
<td>商家订单号</td>
<td>-</td>
</tr>
<tr>
<td>└─settlementPrice</td>
<td>number</td>
<td>结算金额</td>
<td>-</td>
</tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
&quot;status&quot;: 568,
&quot;message&quot;: &quot;success&quot;,
&quot;data&quot;: {
&quot;orderCode&quot;: &quot;63536&quot;,
&quot;bizCode&quot;: &quot;63536&quot;,
&quot;settlementPrice&quot;: 207
}
}</code></pre>