GET v1/Trams/GetTravellerAutoSuggest?searchText={searchText}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
searchText

string

Required

Body Parameters

None.

Response Information

Resource Description

TramsTravellerResponse
NameDescriptionTypeAdditional information
travellers

Collection of TravellerInfo

None.

IsSuccess

boolean

None.

Message

string

None.

guid

string

None.

PNR

string

None.

Response Formats

application/json, text/json

Sample:
{
  "travellers": [
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "FullName": "sample string 3"
    },
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "FullName": "sample string 3"
    }
  ],
  "IsSuccess": true,
  "Message": "sample string 2",
  "guid": "sample string 3",
  "PNR": "sample string 4"
}

application/xml, text/xml

Sample:
<TramsTravellerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model.Trams">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">true</IsSuccess>
  <Message xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 2</Message>
  <PNR xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 4</PNR>
  <guid xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 3</guid>
  <travellers>
    <TravellerInfo>
      <FirstName>sample string 1</FirstName>
      <FullName>sample string 3</FullName>
      <LastName>sample string 2</LastName>
    </TravellerInfo>
    <TravellerInfo>
      <FirstName>sample string 1</FirstName>
      <FullName>sample string 3</FullName>
      <LastName>sample string 2</LastName>
    </TravellerInfo>
  </travellers>
</TramsTravellerResponse>