POST api/Order/YearCard/CancelOrder?orderid={orderid}

取消预订单(发起预订后,以任何形式完成支付前,订单处于预订中状态,可以使用此接口撤消订单)。

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderid

被取消的订单的ID(电子门票系统的订单号)

string

Required

Body Parameters

None.

Response Information

Resource Description

取消预订单(发起预订后,以任何形式完成支付前,订单处于预订中状态,可以使用此接口撤消订单)。

OrderOperatorResult
NameDescriptionTypeAdditional information
orderid

操作对应(或产生)的电子门票系统订单号。

string

None.

sendid

操作对应的第三方系统的订单号(如同程网发送过来的订单的编号),此编号由接口方提供,在提口方系统中应为唯一值。

string

None.

orderstatus

订单当前所处的状态

string

None.

resultcode

操作返回代码,0表示成功,其他值表示错误。

integer

None.

returnmessgage

从接口返回的提示消息,用于告知成功的结果或出错的原因。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "orderid": "sample string 1",
  "sendid": "sample string 2",
  "orderstatus": "sample string 3",
  "resultcode": 4,
  "returnmessgage": "sample string 5"
}

application/xml, text/xml

Sample:
<OrderOperatorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface">
  <orderid>sample string 1</orderid>
  <orderstatus>sample string 3</orderstatus>
  <resultcode>4</resultcode>
  <returnmessgage>sample string 5</returnmessgage>
  <sendid>sample string 2</sendid>
</OrderOperatorResult>