POST api/WebInterface/EPay/Refund/EndSingle/Success

电子支付单笔退款成功之后调用的API。 事务1:保存退款成功的回调信息 必须单独执行,因为如果后续的事务失败,必须要保证保存收款信息成功 事务2:将T_SP_YD_SXF中记录设置为已办理,并验证并转换订单状态 此事务有两种情况:第一 已交割的不需修改预订单状态 第二:第三方支付退款申请中的 直接修改为订单关闭。

Request Information

URI Parameters

None.

Body Parameters

退款成功的参数。

EPayEndRefundSuccessParm
NameDescriptionTypeAdditional information
batchno

申请退款的批次号。

string

Required

Max length: 200

trandeno

对应付款的交易单号,必须存在。

string

Required

Max length: 100

refundmoney

支付平台返回的实际退款金额。

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "batchno": "sample string 1",
  "trandeno": "sample string 2",
  "refundmoney": 3.0
}

application/xml, text/xml

Sample:
<EPayEndRefundSuccessParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
  <batchno>sample string 1</batchno>
  <refundmoney>3</refundmoney>
  <trandeno>sample string 2</trandeno>
</EPayEndRefundSuccessParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

电子支付单笔退款成功之后调用的API。 事务1:保存退款成功的回调信息 必须单独执行,因为如果后续的事务失败,必须要保证保存收款信息成功 事务2:将T_SP_YD_SXF中记录设置为已办理,并验证并转换订单状态 此事务有两种情况:第一 已交割的不需修改预订单状态 第二:第三方支付退款申请中的 直接修改为订单关闭。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.