POST api/WebInterface/Order/Ticket/Refund
退票申请(将订单中的一个或多个门票申请退票,申请退票后,不能撤消退票申请[不可逆操作],只能等待供应商办理退款)。使用预订金支付、返款余额支付的,申请退票时将同时办结;即时支付时需等待供应商办理退款)。
Request Information
URI Parameters
None.
Body Parameters
退票参数。
OrderTicketRefundParmName | Description | Type | Additional information |
---|---|---|---|
username |
发起请求的代理商用户名。 |
string |
Required Max length: 20 |
settotomorrowtime |
设置结转的时间节点,为空时表示没有结转的时间节点。 |
string |
None. |
refundparm |
退票参数 |
RefundParm |
Required |
Request Formats
application/json, text/json
Sample:
{ "username": "sample string 1", "settotomorrowtime": "sample string 2", "refundparm": { "orderid": "sample string 1", "refundallticket": "sample string 2", "ticketids": [ "sample string 1", "sample string 2" ] } }
application/xml, text/xml
Sample:
<OrderTicketRefundParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <refundparm xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <d2p1:orderid>sample string 1</d2p1:orderid> <d2p1:refundallticket>sample string 2</d2p1:refundallticket> <d2p1:ticketids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d2p1:ticketids> </refundparm> <settotomorrowtime>sample string 2</settotomorrowtime> <username>sample string 1</username> </OrderTicketRefundParm>
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
退票申请(将订单中的一个或多个门票申请退票,申请退票后,不能撤消退票申请[不可逆操作],只能等待供应商办理退款)。使用预订金支付、返款余额支付的,申请退票时将同时办结;即时支付时需等待供应商办理退款)。
CommonOperationResultName | Description | Type | Additional 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.