POST api/order/cancel
取消30天以外的订单
Request Information
URI Parameters
None.
Body Parameters
TicketRefundRequestName | Description | Type | Additional information |
---|---|---|---|
order_number |
CTT订单号 |
string |
None. |
refund_passanger_ids |
退票乘客id |
string |
None. |
refund_reason |
退票原因 |
string |
None. |
terminal |
终端 |
Terminal |
None. |
time_stamp |
时间戳 |
string |
None. |
random |
随机数 |
integer |
None. |
sign |
签名 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "order_number": "sample string 1", "refund_passanger_ids": "sample string 2", "refund_reason": "sample string 3", "terminal": 1, "time_stamp": "sample string 4", "random": 5, "sign": "sample string 6" }
application/xml, text/xml
Sample:
<TicketRefundRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Areas.webApi.Models"> <random xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">5</random> <sign xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">sample string 6</sign> <terminal xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">WEBPAGEEnum</terminal> <time_stamp xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">sample string 4</time_stamp> <order_number>sample string 1</order_number> <refund_passanger_ids>sample string 2</refund_passanger_ids> <refund_reason>sample string 3</refund_reason> </TicketRefundRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultOfStringName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
message | string |
None. |
|
data | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "message": "sample string 2", "data": "sample string 3" }
application/xml, text/xml
Sample:
<ApiResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Areas.webApi.Models"> <code>1</code> <data>sample string 3</data> <message>sample string 2</message> </ApiResultOfstring>