请求分账
请求分账
接口说明
请求方式:
posthttps://p.wecard.tencent.com/cloudpay/v1/settle/profit/profit-manual-create
请求参数
Request
Body 包体
OutOrderId必填
string
外部订单号,即业务系统侧订单
最小长度:1 最大长度:60
OutProfitOrderId必填
string
外部商户分账订单号
最小长度:1 最大长度:50
ProfitShareInfoList必填
array
分账信息列表
数组子类型:object
UnfreezeUnsplit选填
boolean
是否解冻剩余未分资金。1、如果为true,该笔订单剩余未分账的金额会解冻回分账方商户;2、如果为false,该笔订单剩余未分账的金额不会解冻回分账方商户,可以对该笔订单再次进行分账。默认false
{
"OutOrderId": "out453726693345990015",
"OutProfitOrderId": "out202305290002",
"ProfitShareInfoList": [
{
"PayeeId": "PE462771186506407098",
"ProfitType": "AMOUNT",
"ProfitAmount": 5,
"ChannelSubMerchantId": "CM453726693345990015"
},
{
"PayeeId": "PE462771261534117050",
"ProfitType": "AMOUNT",
"ProfitAmount": 5,
"ChannelSubMerchantId": "CM453726693345990016"
}
]
}
返回参数
Response
200 OK
Response必填
object
{
"Response": {
"RequestId": "948948503842433001",
"Result": {
"OutProfitOrderId": "out202305290002",
"OutOrderId": "out453726693345990015",
"ProfitOrderId": "p202305290002",
"ProfitStatus": "INIT",
"ProfitFlowList": [
{
"ProfitId": "flow20230715000",
"PayeeId": "PE462771186506407098",
"ProfitAmount": 5,
"ProfitStatus": "INIT"
},
{
"ProfitId": "flow20230715001",
"PayeeId": "PE462771261534117050",
"ProfitAmount": 5,
"ProfitStatus": "INIT"
}
]
},
"ErrCode": "SUCCESS",
"ErrMessage": "成功"
}
}
ErrCode 码表
错误代码 | 描述 | 解决方案 |
---|---|---|
SUCCESS | 请求成功 | 请根据 Result 获取请求结果 |
ORDER.INVALID_PARAMETER | 参数有误 | 请根据返回描述修正请求参数 |
FailedOperation.SystemError | 系统未知异常 | 系统未知异常,请稍后重试 |