智能分账
接口列表
请求退分账

请求退分账

退款和退分账没有耦合,退分账可以先于退款请求,也可以后于退款请求。

接口说明

请求方式:
post
https://p.wecard.tencent.com/cloudpay/v1/settle/profit/profit-refund-manual-create

请求参数

Request
Body 包体
OutOrderId必填
string

外部订单号,即业务系统侧订单

最小长度:1     最大长度:60

OutProfitOrderId必填
string

外部商户分账订单号

最小长度:1     最大长度:50

OutProfitRefundId必填
string

ProfitShareInfoList必填
array

分账信息列表

数组子类型:object

请求示例

{
  "OutOrderId": "CM453726693345990015",
  "OutProfitOrderId": "out202305290002",
  "OutProfitRefundId": "out202305290003",
  "ProfitShareInfoList": [
    {
      "PayeeId": "PE462771186506407098",
      "ProfitRefundAmount": 2,
      "ChannelSubMerchantId": "CM453726693345990016"
    },
    {
      "PayeeId": "PE462771261534117050",
      "ProfitRefundAmount": 2,
      "ChannelSubMerchantId": "CM453726693345990017"
    }
  ]
}

返回参数

Response
Response必填
object

返回示例

{
  "Response": {
    "RequestId": "948948503842433001",
    "Result": {
      "OutProfitOrderId": "out202305290002",
      "OutOrderId": "CM453726693345990015",
      "ProfitOrderId": "p202305290002",
      "OutProfitRefundId": "out202305290003",
      "ProfitStatus": "INIT",
      "ProfitFlowList": [
        {
          "ProfitId": "flow20230715000",
          "PayeeId": "PE462771186506407098",
          "ProfitRefundAmount": 2,
          "ProfitStatus": "INIT",
          "ChannelSubMerchantId": "CM453726693345990016"
        },
        {
          "ProfitId": "flow20230715001",
          "PayeeId": "PE462771261534117050",
          "ProfitRefundAmount": 2,
          "ProfitStatus": "INIT",
          "ChannelSubMerchantId": "CM453726693345990017"
        }
      ]
    },
    "ErrCode": "SUCCESS",
    "ErrMessage": "成功"
  }
}

ErrCode 码表

错误代码描述解决方案
SUCCESS请求成功请根据 Result 获取请求结果
ORDER.INVALID_PARAMETER参数有误请根据返回描述修正请求参数
FailedOperation.SystemError系统未知异常系统未知异常,请稍后重试

腾讯微卡收付通接口文档