交易请求报文
JSON:
{
"request_type": "order_splitdetail_request",
"system_id": "8888",
"isspid": "39493002",
"pos_seq": "AP2018121400000004",
"sign": "314DA43E7E244105ECBD45F797264854"
}
XML:
<?xml version="1.0" encoding="GBK"?>
<business_trans>
<request_type>order_splitdetail_request</request_type>
<system_id>8888</system_id>
<isspid>39493002</isspid>
<pos_seq>AP2018121400000004</pos_seq>
</business_trans>
交易请求报文说明
节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
---|---|---|---|---|
sign | 报文签名 | String(32) | 请求报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
request_type | 请求类型 | String(32) | 固定值:order_splitdetail_request | 必填 |
system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
isspid | 翼码商户号 | String(8) | 由翼码提供 | 必填 |
pos_seq | 支付请求流水号 | String(32) | 被查询的支付请求流水号,且大于12位 | 必填 |
交易返回报文
JSON:
{
"response_type": "order_splitdetail_response",
"isspid": "39493002",
"pos_seq": "AP2018121400000004",
"sys_seq": "dfe80ff0cdf82895",
"pay_type": "502",
"seller_account": "",
"trade_state": "s",
"split_type": "D",
"split_state": "s",
"amount": 1000,
"fee": 2,
"real_amount": 1000,
"refund_amount": 1000,
"real_refund_amount": 1000,
"split_amount": 0,
"account_keep_amount": 0,
"remainder_split_amount": 0,
"fee_flag": "1",
"payer_type": null,
"payer_mch_id": null,
"payer_channel_mch_id": null,
"is_clean_split": "N",
"rule_source": "",
"split_order_list": "[{\"id\":5868,\"split_seq\":\"202311011540104955\",\"trade_state\":\"r\",\"channel_seller_account\":\"6666000141287397\",\"remark\":\"\",\"type\":\"a\",\"org_split_id\":0,\"create_time\":\"2023-11-01 15:40:10\",\"details\":[{\"id\":1719620330165735426,\"split_order_id\":5868,\"mch_id\":1000645,\"channel_mch_id\":\"6666000142338316\",\"amount\":200,\"type\":\"a\",\"trade_state\":\"r\",\"refund_amount\":200},{\"id\":1719620330241232897,\"split_order_id\":5868,\"mch_id\":1010977,\"channel_mch_id\":\"6666000141287397\",\"amount\":800,\"type\":\"b\",\"trade_state\":\"r\",\"refund_amount\":800}]},{\"id\":5870,\"split_seq\":\"202311011540224120\",\"trade_state\":\"s\",\"channel_seller_account\":\"6666000141287397\",\"remark\":\"\",\"type\":\"b\",\"org_split_id\":5868,\"create_time\":\"2023-11-01 15:40:22\",\"details\":[{\"id\":1719620379637551106,\"split_order_id\":5870,\"mch_id\":1000645,\"channel_mch_id\":\"6666000142338316\",\"amount\":200,\"type\":\"a\",\"trade_state\":\"s\",\"refund_amount\":0},{\"id\":1719620379666911233,\"split_order_id\":5870,\"mch_id\":1010977,\"channel_mch_id\":\"6666000141287397\",\"amount\":800,\"type\":\"b\",\"trade_state\":\"s\",\"refund_amount\":0}]}]",
"result": {
"id": "0000",
"comment": "查询成功"
},
"sign": "38EDF2C95FA242D3BA8FAECB630457C3"
}
XML:
<?xml version="1.0" encoding="GBK"?>
<business_trans>
<response_type>order_splitdetail_response</response_type>
<isspid>39493002</isspid>
<pos_seq>AP2018121400000004</pos_seq>
<sys_seq>f02d37f1a6798a47</sys_seq>
<pay_type>502</pay_type>
<seller_account></seller_account>
<trade_state>s</trade_state>
<split_type>D</split_type>
<split_state>s</split_state>
<amount>1000</amount>
<fee>2</fee>
<real_amount>1000</real_amount>
<refund_amount>1000</refund_amount>
<real_refund_amount>1000</real_refund_amount>
<split_amount>0</split_amount>
<account_keep_amount>0</account_keep_amount>
<remainder_split_amount>0</remainder_split_amount>
<fee_flag>1</fee_flag>
<payer_type></payer_type>
<payer_mch_id></payer_mch_id>
<is_clean_split>N</is_clean_split>
<rule_source></rule_source>
<split_order_list>
<![CDATA[[{"id":5868,"split_seq":"202311011540104955","trade_state":"r","channel_seller_account":"6666000141287397","remark":"","type":"a","org_split_id":0,"create_time":"2023-11-01 15:40:10","details":[{"id":1719620330165735426,"split_order_id":5868,"mch_id":1000645,"channel_mch_id":"6666000142338316","amount":200,"type":"a","trade_state":"r","refund_amount":200},{"id":1719620330241232897,"split_order_id":5868,"mch_id":1010977,"channel_mch_id":"6666000141287397","amount":800,"type":"b","trade_state":"r","refund_amount":800}]},{"id":5870,"split_seq":"202311011540224120","trade_state":"s","channel_seller_account":"6666000141287397","remark":"","type":"b","org_split_id":5868,"create_time":"2023-11-01 15:40:22","details":[{"id":1719620379637551106,"split_order_id":5870,"mch_id":1000645,"channel_mch_id":"6666000142338316","amount":200,"type":"a","trade_state":"s","refund_amount":0},{"id":1719620379666911233,"split_order_id":5870,"mch_id":1010977,"channel_mch_id":"6666000141287397","amount":800,"type":"b","trade_state":"s","refund_amount":0}]}]]]>
</split_order_list>
<result>
<id>0000</id>
<comment>查询成功</comment>
</result>
</business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
---|---|---|---|---|
sign | 报文签名 | String(32) | 返回报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
response_type | 返回类型 | String(32) | 固定值:order_splitdetail_response | 必填 |
isspid | 商户号 | String(8) | 翼码商户号,由翼码提供 | 必填 |
pos_seq | 支付请求流水号 | String(32) | 支付请求流水号,和请求报文相同 | 必填 |
sys_seq | 随机串号 | String(16) | 随机生成串号,仅用于日志跟踪用,不保存 | 必填 |
pay_type | 支付方式 | String(3) | 502:支付宝支付 503:微信支付 512:银联二维码 515:小程序支付 516:数字人民币 517:网银支付 518:快捷支付 520:账户支付 620:银行卡刷卡支付 | 可空 |
seller_account | 收款账户编号 | String(32) | 通道方收款账户编号 支付方式为账户支付时为出资商户号的上级收款账户编号 | 可空 |
trade_state | 支付订单状态 | String(1) | s:成功 p:处理中 f:失败 | 可空 |
split_type | 分账类型 | String(1) | D:延时分账 R:实时分账 N:不分账 | 可空 |
split_state | 分账状态 | String(1) | s:已全额分账 b:部分分账 i:未分账 | 可空 |
amount | 订单金额 | Number(9) | 单位为分 | 可空 |
fee | 手续费 | Number(9) | 单位为分 | 可空 |
real_amount | 实收金额 | Number(9) | 单位为分 | 可空 |
refund_amount | 已退款金额 | Number(9) | 单位为分 | 可空 |
real_refund_amount | 已实退款金额 | Number(9) | 单位为分 | 可空 |
split_amount | 已分账金额 | Number(9) | 单位为分 | 可空 |
account_keep_amount | 收款账户已自留金额 | Number(9) | 单位为分 | 可空 |
remainder_split_amount | 剩余可分金额 | Number(9) | 单位为分 | 可空 |
fee_flag | 手续费扣款标识 | String(1) | 1:外扣 2:内扣 | 可空 |
payer_type | 出资方类型 | String(1) | a:商户 b:收款账户 仅在支付方式为账户支付时有值 | 可空 |
payer_mch_id | 出资方商户号 | Number(7) | 出资方的分账商户号(merchant_id) 仅在支付方式为账户支付时有值 | 可空 |
payer_channel_mch_id | 出资方通道商户号 | String(32) | 出资方在通道方的商户号 仅在支付方式为账户支付时有值 | 可空 |
is_clean_split | 净值分账标识 | String(1) | N:不使用净值分账 Y:使用净值分账 实时分账时有值,延时分账时为空 | 可空 |
rule_source | 分账规则来源 | String(1) | 1:接口 2:控台 有可能存在空值,表示无该业务 | 可空 |
split_order_list | 分账订单列表 | String | JSON字符串 使用XML格式报文时,使用CDATA标签包裹内容 | 可空 |
result ->id | 响应码 | String(4) | 0000:查询成功 其它值代表查询失败,错误信息说明见“响应码解释”字段 | 必填 |
result ->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
split_order_list 分账订单列表 (JSON字符串)
JSON节点 | 类型 | 说明 | 是否必填 | 范例 |
---|---|---|---|---|
id | Number | 分账订单id | 必填 | |
split_seq | String | 分账流水号 | 必填 | |
trade_state | String | 交易状态 s:成功 c:待确认 p:处理中 f:失败 r:全额退回 b:部分退回 | 必填 | s |
trade_desc | String | 状态描述 | 可空 | 成功 |
amount | Number | 分账单总金额(分) | 必填 | 10000 |
seller_account_keep_amount | Number | 分账单自留金额(分) | 必填 | 5000 |
channel_seller_account | String | 渠道收款账户号 | 必填 | 66600000000000001 |
remark | String | 备注 | 可空 | |
type | String | 交易类型 a:分账 b:分账退回 | 必填 | a |
org_split_id | Number | 原分账订单id,仅分账退回时存在 | 可空 | |
third_req_seq | String | 第三方请求流水 | 可空 | |
create_time | String | 创建时间,yyyy-MM-dd HH:mm:ss | 必填 | 2023-11-23 16:23:56 |
details | JSONArray | 分账明细 | 可空 | |
split_batch_no | String | 批量分账批次号 | 可空 |
details 分账明细 (JSONArray)
JSON节点 | 类型 | 说明 | 是否必填 | 范例 |
---|---|---|---|---|
id | Number | 分账明细id | 必填 | |
split_order_id | Number | 分账订单的id | 必填 | |
split_order_seq | String | 分账订单流水号 | 必填 | |
mch_type | String | 接收方类型 a:分账商户 b:收款账户 | 必填 | a |
mch_id | Number | mch_type=a时,为系统分账商户号 mch_type=b时,为系统收款账户id | 必填 | 1000067 |
channel_mch_id | String | mch_type=a时,为通道方分账商户号 mch_type=b时,为通道方收款账户编号 | 必填 | 66600000000000002 |
amount | Number | 金额(分) | 必填 | 2000 |
type | String | 分账类型 a:参与分账 b:收款账户自留 | 必填 | a |
trade_state | String | 状态 s:成功 f:失败 r:全部退回 b:部分退回 | 必填 | s |
refund_amount | Number | 已退回金额(分) | 必填 | 0 |