POST api/HoldBooking/searchFlight

Request Information

URI Parameters

None.

Body Parameters

SearchFlightReq
NameDescriptionTypeAdditional information
cityPair

string

None.

currencyCode

string

None.

adultCount

integer

None.

childCount

integer

None.

infantCount

integer

None.

promoCode

string

None.

departureTime

string

None.

daysAfterDeparture

integer

None.

daysAfterReturn

integer

None.

dateStart

integer

None.

typeData

integer

None.

returnTime

Object

None.

CaptchaData

Object

None.

IsCaptchaV2

boolean

None.

requestId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cityPair": "sample string 1",
  "currencyCode": "sample string 2",
  "adultCount": 3,
  "childCount": 4,
  "infantCount": 5,
  "promoCode": "sample string 6",
  "departureTime": "sample string 7",
  "daysAfterDeparture": 8,
  "daysAfterReturn": 9,
  "dateStart": 10,
  "typeData": 11,
  "returnTime": {},
  "CaptchaData": {},
  "IsCaptchaV2": true,
  "requestId": "sample string 15"
}

application/xml, text/xml

Sample:
<VietjetModel.SearchFlightReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppSoiVe.Models">
  <CaptchaData />
  <IsCaptchaV2>true</IsCaptchaV2>
  <adultCount>3</adultCount>
  <childCount>4</childCount>
  <cityPair>sample string 1</cityPair>
  <currencyCode>sample string 2</currencyCode>
  <dateStart>10</dateStart>
  <daysAfterDeparture>8</daysAfterDeparture>
  <daysAfterReturn>9</daysAfterReturn>
  <departureTime>sample string 7</departureTime>
  <infantCount>5</infantCount>
  <promoCode>sample string 6</promoCode>
  <requestId>sample string 15</requestId>
  <returnTime />
  <typeData>11</typeData>
</VietjetModel.SearchFlightReq>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SearchFlightReq'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.