POST api/Order/RefundTicket
退票申请(将订单中的一个或多个门票申请退票,申请退票后,不能撤消退票申请[不可逆操作],只能等待供应商办理退款)。使用预订金支付、返款余额支付的,申请退票时将同时办结;即时支付时需等待供应商办理退款)。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。
请求信息
URI参数
None.
窗体参数
退票参数。
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. |
请求格式
Test application/json, text/json
Sample:
{
"orderid": "sample string 1",
"refundallticket": "sample string 2",
"ticketids": [
"sample string 1",
"sample string 2"
]
}
Test application/xml, text/xml
Sample:
<RefundParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TourWebApi.Models.Param">
<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>
Test application/x-www-form-urlencoded
Sample:
没有示例。
回复信息
资源描述
退票申请(将订单中的一个或多个门票申请退票,申请退票后,不能撤消退票申请[不可逆操作],只能等待供应商办理退款)。使用预订金支付、返款余额支付的,申请退票时将同时办结;即时支付时需等待供应商办理退款)。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。
OperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误代码 |
integer |
None. |
| errmsg |
错误的描述 |
string |
None. |
回复格式
Test application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2"
}
Test application/xml, text/xml
Sample:
<OperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TourWebApi.Models.Result"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> </OperationResult>