POST api/Order/Refund
申请退款(仅当订单处于支付完成,但因门票系统原因没有生成对应的过闸凭证时可以调用(订单此时处于“已支付”,“预订金支付授权”,“返款余额支付授权状态”,一般都用不上这个功能),绝大多数情况下,需要调用RefundTicket接口,办理退票),此操作为不可逆操作。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。
Request Information
URI Parameters
None.
Body Parameters
退票参数
RefundParm| Name | Description | Type | Additional information |
|---|---|---|---|
| orderid |
订单编号,电子门票系统中的订单编号。 |
string |
Required Max length: 20 |
| refundallticket |
退整个订单全部的门票,"1"表示是,“0”表示否,当此值为“0”时,必须提供ticketids参数,“1”时不会采纳tickeids中的值。 |
string |
Required Max length: 1 |
| ticketids |
被退票的门票号码的列表 |
Collection of string |
None. |
| memory |
备注 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderid": "sample string 1",
"refundallticket": "sample string 2",
"ticketids": [
"sample string 1",
"sample string 2"
],
"memory": "sample string 3"
}
application/xml, text/xml
Sample:
<RefundParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface">
<memory>sample string 3</memory>
<orderid>sample string 1</orderid>
<refundallticket>sample string 2</refundallticket>
<ticketids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ticketids>
</RefundParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
申请退款(仅当订单处于支付完成,但因门票系统原因没有生成对应的过闸凭证时可以调用(订单此时处于“已支付”,“预订金支付授权”,“返款余额支付授权状态”,一般都用不上这个功能),绝大多数情况下,需要调用RefundTicket接口,办理退票),此操作为不可逆操作。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。
OperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误代码 |
integer |
None. |
| errmsg |
错误的描述 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2"
}
application/xml, text/xml
Sample:
<OperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> </OperationResult>