POST api/Tuniu/CancelOrder

Request Information

URI Parameters

None.

Body Parameters

TuniuMaCancelRequest
NameDescriptionTypeAdditional information
orderInfo

TuniuMaCancelDetailRequest

None.

customers

Collection of TuniuMaOrderCustomersRequest

None.

apiKey

string

None.

sign

string

None.

timestamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "orderInfo": {
    "amount": 1,
    "tuniuOrderId": "sample string 2",
    "tuniuSerialId": "sample string 3",
    "vendorId": 4,
    "vendorOrderId": "sample string 5",
    "vendorResId": "sample string 6",
    "vendorResName": "sample string 7"
  },
  "customers": [
    {
      "email": "sample string 1",
      "enName": "sample string 2",
      "mobile": "sample string 3",
      "name": "sample string 4",
      "psptId": "sample string 5",
      "psptType": 6
    },
    {
      "email": "sample string 1",
      "enName": "sample string 2",
      "mobile": "sample string 3",
      "name": "sample string 4",
      "psptId": "sample string 5",
      "psptType": 6
    }
  ],
  "apiKey": "sample string 1",
  "sign": "sample string 2",
  "timestamp": "sample string 3"
}

application/xml, text/xml

Sample:
<TuniuMaCancelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Easyway.ITTC.Common.ParamEntity.ITTCAPI.Request.Tuniu">
  <apiKey>sample string 1</apiKey>
  <sign>sample string 2</sign>
  <timestamp>sample string 3</timestamp>
  <customers>
    <TuniuMaOrderCustomersRequest>
      <email>sample string 1</email>
      <enName>sample string 2</enName>
      <mobile>sample string 3</mobile>
      <name>sample string 4</name>
      <psptId>sample string 5</psptId>
      <psptType>6</psptType>
    </TuniuMaOrderCustomersRequest>
    <TuniuMaOrderCustomersRequest>
      <email>sample string 1</email>
      <enName>sample string 2</enName>
      <mobile>sample string 3</mobile>
      <name>sample string 4</name>
      <psptId>sample string 5</psptId>
      <psptType>6</psptType>
    </TuniuMaOrderCustomersRequest>
  </customers>
  <orderInfo>
    <amount>1</amount>
    <tuniuOrderId>sample string 2</tuniuOrderId>
    <tuniuSerialId>sample string 3</tuniuSerialId>
    <vendorId>4</vendorId>
    <vendorOrderId>sample string 5</vendorOrderId>
    <vendorResId>sample string 6</vendorResId>
    <vendorResName>sample string 7</vendorResName>
  </orderInfo>
</TuniuMaCancelRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TuniuMaOrderResponse
NameDescriptionTypeAdditional information
data

TuniuMaOrderDetailResponse

None.

success

boolean

None.

errorMsg

string

None.

returnCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "proofNos": [
      "sample string 1",
      "sample string 2"
    ],
    "qrCodeNos": [
      "sample string 1",
      "sample string 2"
    ],
    "vendorOrderId": "sample string 1",
    "scanEnable": 2,
    "useTimes": 3
  },
  "success": true,
  "errorMsg": "sample string 2",
  "returnCode": 3
}

application/xml, text/xml

Sample:
<TuniuMaOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Easyway.ITTC.Common.ParamEntity.ITTCAPI.Response.Tuniu">
  <errorMsg>sample string 2</errorMsg>
  <returnCode>3</returnCode>
  <success>true</success>
  <data>
    <proofNos xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </proofNos>
    <qrCodeNos xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </qrCodeNos>
    <scanEnable>2</scanEnable>
    <useTimes>3</useTimes>
    <vendorOrderId>sample string 1</vendorOrderId>
  </data>
</TuniuMaOrderResponse>