POST
分账结果通知
接收分账或分账回退结果,并通过
relatedTxnId 与 relatedMerchantTxnId 关联原支付交易。通知地址
通知地址按分账发起方式指定。自动分账及回退未配置通知地址时,不发送自动通知。
查看地址规则收起地址规则
自动分账及分账回退:通知发送至原支付的
paymentMethodOptions.share.profitShareNotifyUrl。未配置时不发送自动通知。通过 API 发起的分账及回退:在请求中传入
urlCallback;原支付已配置 profitShareNotifyUrl 时可不传。签名验证
验签指南Header 签名
- 签名 Header
- x-signature
验签范围
除 sign(兼容签名值) 外的全部报文字段。
回调报文字段
x-signature用于验证本通知的签名,包含逗号分隔的一项或多项
v1=<签名>。profitType本次通知对应的是分账还是分账回退。
可选值
share- 本次通知对应分账。
return- 本次通知对应分账回退。
profitReference分账或分账回退请求号。通过 API 发起时,由商户提供;自动分账或自动分账回退时,由 Onerway 生成。可使用
relatedTxnId 与 relatedMerchantTxnId 将处理结果关联到原支付交易。profitGatewayReference分账或分账回退的 Onerway 单号。
state分账单整体处理状态。
completed 不代表每条明细都成功,需逐条检查 receivers[].result。可选值
processing- 分账单处理中。
completed- 分账单处理结束;单条明细结果需逐条检查。
currency分账或分账回退结算币种。
relatedTxnId原支付交易流水号。分账回退仍关联原支付,而非分账单。
relatedMerchantTxnId原支付的商户订单号。
receivers{ profitDetailReference, profitDetailGatewayReference, ... }各接收方的处理结果列表。
{
"profitType": "share",
"profitReference": "example_profit_share_reference",
"profitGatewayReference": "replace_with_profit_gateway_reference",
"state": "completed",
"currency": "USD",
"relatedTxnId": "9007199254740993",
"relatedMerchantTxnId": "example_payment_order",
"receivers": "[{\"profitDetailReference\":\"example_profit_share_detail_reference\",\"profitDetailGatewayReference\":\"replace_with_profit_detail_gateway_reference\",\"type\":\"1\",\"amount\":\"80.00\",\"result\":\"success\",\"failReason\":null,\"createdAt\":\"2026-06-22 10:00:00\",\"finishedAt\":\"2026-06-22 10:00:08\"}]",
"sign": "replace_with_sha256_signature"
}应答说明
成功接收并受理分账 webhook 后返回 HTTP 200;不需要在响应体中返回固定内容。
无应答正文。