撤销付款
开发中
POST
/pay-bis/revoke-payment
请求参数
Header 参数
command_code
string
可选
Body 参数application/json
batch_no
string
来源系统批次号
batch_info
array [object {2}]
撤销数据集合
source_flow_number
string
来源系统流水号
withdraw_reason
string
撤回原因
示例
{
"revoke_batch_info": [
{
"source_batch_number": "634957051",
"source_flow_number": "73447792254806382988,27977414170328436050874442453390023863985127385700783007765799"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/pay-bis/revoke-payment' \
--header 'command_code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"revoke_batch_info": [
{
"source_batch_number": "634957051",
"source_flow_number": "73447792254806382988,27977414170328436050874442453390023863985127385700783007765799"
}
]
}'
返回响应
🟢200成功
application/json
Body
batch_no
string
来源系统批次号
status
string
处理状态
status_msg
string
Mock 状态信息
responseBody
array [object {3}]
响应结果集
source_flow_number
string
来源系统流水号
示例值:
27977414170328436050874442453390023863985127385700783007765799
status
integer
处理状态
示例值:
1
status_msg
string
状态信息
示例值:
该单据已作废!
示例
{
"result_data": [
{
"source_batch_number": "634957051",
"source_flow_number": "73447792254806382988",
"state": 1,
"fail_reason": ""
},
{
"source_batch_number": "634957051",
"source_flow_number": "27977414170328436050874442453390023863985127385700783007765799",
"state": 2,
"fail_reason": "该单据已作废!"
}
]
}