POST SharePay/ShareRefund
分账回退(仅仅微信订单支持分账回退,支付宝在退款时自动按退款金额与订单金额的比率,从收款方和分账收入方退款) 对订单进行退款时,如果订单已经分账,可以先调用此接口将指定的金额从分账接收方(仅限商户类型的分账接收方)回退给特约商户,然后再退款。 实际上退款和分账回退没有耦合,分账回退可以先于退款请求,也可以后于退款请求。 回退以原分账请求为依据,可以对分给分账接收方的金额进行多次回退,只要满足累计回退不超过该请求中分给接收方的金额。 此功能需要接收方在商户平台-交易中心-分账-分账接收设置下,开启同意分账回退后,才能使用。
请求信息
请求URI参数
无
请求数据参数
ShareRefundInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| store_no |
门店编码. |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
| order_no |
商户分账单号 |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
| refund_no |
要分账回退的交易流水号 |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
| account |
回退账号,仅仅支持商户号回退 |
字符串 |
必填 |
| refund_amount |
分账回退金额 |
整数 |
必填 |
| description |
回退说明 |
字符串 |
必填 |
请求数据格式
application/json, text/json
例子:
{
"store_no": "sample string 1",
"order_no": "sample string 2",
"refund_no": "sample string 3",
"account": "sample string 4",
"refund_amount": 5,
"description": "sample string 6"
}
响应数据
资源说明
分账回退结果
ResultInfoOfShareRefundResultInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| code | ResultCode |
无 |
|
| msg | 字符串 |
无 |
|
| data | ShareRefundResultInfo |
无 |
响应数据格式
application/json, text/json
例子:
{
"code": "SUCCESS",
"msg": "sample string 1",
"data": {
"store_no": "sample string 1",
"order_no": "sample string 2",
"refund_no": "sample string 3",
"transaction_no": "sample string 4",
"account_type": 1,
"account": "sample string 5",
"refund_amount": 6,
"result": "sample string 7",
"finish_time": "sample string 8",
"error": "sample string 9"
}
}