POST api/Booking/SaveTicketCart
Request Information
URI Parameters
None.
Body Parameters
Collection of ReservCartModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| TourCode | integer |
None. |
|
| SeatNo | integer |
None. |
|
| Name | string |
None. |
|
| PhoneNo | string |
None. |
|
| Remark | string |
None. |
|
| Status | integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Code": 1,
"TourCode": 2,
"SeatNo": 3,
"Name": "sample string 4",
"PhoneNo": "sample string 5",
"Remark": "sample string 6",
"Status": 7
},
{
"Code": 1,
"TourCode": 2,
"SeatNo": 3,
"Name": "sample string 4",
"PhoneNo": "sample string 5",
"Remark": "sample string 6",
"Status": 7
}
]
application/xml, text/xml
Sample:
<ArrayOfReservCartModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models">
<ReservCartModel>
<Code>1</Code>
<Name>sample string 4</Name>
<PhoneNo>sample string 5</PhoneNo>
<Remark>sample string 6</Remark>
<SeatNo>3</SeatNo>
<Status>7</Status>
<TourCode>2</TourCode>
</ReservCartModel>
<ReservCartModel>
<Code>1</Code>
<Name>sample string 4</Name>
<PhoneNo>sample string 5</PhoneNo>
<Remark>sample string 6</Remark>
<SeatNo>3</SeatNo>
<Status>7</Status>
<TourCode>2</TourCode>
</ReservCartModel>
</ArrayOfReservCartModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| Message | string |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"Message": "sample string 2",
"Data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResultModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models"> <Data>sample string 3</Data> <Message>sample string 2</Message> <ResponseCode>1</ResponseCode> </ResultModelOfstring>