POST api/Book/GetLatestBookingsDetails20

Request Information

URI Parameters

None.

Body Parameters

FPLatestBookingsRQ
NameDescriptionTypeAdditional information
LatestBookingRequest

LatestBookingsRQ

None.

LatestBookingVersion

LatestBookVersion

None.

SoapAuthentication

SoapAuthentication

None.

Request Formats

application/json, text/json

Sample:
{
  "LatestBookingRequest": {
    "Email": "sample string 1",
    "LastName": "sample string 2",
    "ZipOrPhone": "sample string 3"
  },
  "LatestBookingVersion": 0,
  "SoapAuthentication": {
    "UserName": "sample string 1",
    "Password": "sample string 2"
  }
}

text/html

Sample:
{"LatestBookingRequest":{"Email":"sample string 1","LastName":"sample string 2","ZipOrPhone":"sample string 3"},"LatestBookingVersion":0,"SoapAuthentication":{"UserName":"sample string 1","Password":"sample string 2"}}

application/xml, text/xml

Sample:
<FPLatestBookingsRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <LatestBookingRequest>
    <Email>sample string 1</Email>
    <LastName>sample string 2</LastName>
    <ZipOrPhone>sample string 3</ZipOrPhone>
  </LatestBookingRequest>
  <LatestBookingVersion>NONE</LatestBookingVersion>
  <SoapAuthentication>
    <Password>sample string 2</Password>
    <UserName>sample string 1</UserName>
  </SoapAuthentication>
</FPLatestBookingsRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LatestBookingsRS
NameDescriptionTypeAdditional information
LatestBookings

Collection of LatestBookingDetails

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "LatestBookings": [
    {
      "BookingNumber": 1,
      "PNR": "sample string 2",
      "FromCity": "sample string 3",
      "ToCity": "sample string 4",
      "AirlineName": "sample string 5",
      "BookedOn": "2018-05-24T21:18:37.8737543-04:00",
      "DepartureDateTime": "2018-05-24T21:18:37.8737543-04:00",
      "Email": "sample string 8",
      "TravellerName": "sample string 9",
      "BookingGUID": "sample string 10"
    },
    {
      "BookingNumber": 1,
      "PNR": "sample string 2",
      "FromCity": "sample string 3",
      "ToCity": "sample string 4",
      "AirlineName": "sample string 5",
      "BookedOn": "2018-05-24T21:18:37.8737543-04:00",
      "DepartureDateTime": "2018-05-24T21:18:37.8737543-04:00",
      "Email": "sample string 8",
      "TravellerName": "sample string 9",
      "BookingGUID": "sample string 10"
    }
  ],
  "ErrorCode": "sample string 1",
  "ErrorAtNode": "sample string 2"
}

text/html

Sample:
{"LatestBookings":[{"BookingNumber":1,"PNR":"sample string 2","FromCity":"sample string 3","ToCity":"sample string 4","AirlineName":"sample string 5","BookedOn":"2018-05-24T21:18:37.8737543-04:00","DepartureDateTime":"2018-05-24T21:18:37.8737543-04:00","Email":"sample string 8","TravellerName":"sample string 9","BookingGUID":"sample string 10"},{"BookingNumber":1,"PNR":"sample string 2","FromCity":"sample string 3","ToCity":"sample string 4","AirlineName":"sample string 5","BookedOn":"2018-05-24T21:18:37.8737543-04:00","DepartureDateTime":"2018-05-24T21:18:37.8737543-04:00","Email":"sample string 8","TravellerName":"sample string 9","BookingGUID":"sample string 10"}],"ErrorCode":"sample string 1","ErrorAtNode":"sample string 2"}

application/xml, text/xml

Sample:
<LatestBookingsRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <ErrorAtNode>sample string 2</ErrorAtNode>
  <ErrorCode>sample string 1</ErrorCode>
  <LatestBookings>
    <LatestBookingDetails>
      <AirlineName>sample string 5</AirlineName>
      <BookedOn>2018-05-24T21:18:37.8737543-04:00</BookedOn>
      <BookingGUID>sample string 10</BookingGUID>
      <BookingNumber>1</BookingNumber>
      <DepartureDateTime>2018-05-24T21:18:37.8737543-04:00</DepartureDateTime>
      <Email>sample string 8</Email>
      <FromCity>sample string 3</FromCity>
      <PNR>sample string 2</PNR>
      <ToCity>sample string 4</ToCity>
      <TravellerName>sample string 9</TravellerName>
    </LatestBookingDetails>
    <LatestBookingDetails>
      <AirlineName>sample string 5</AirlineName>
      <BookedOn>2018-05-24T21:18:37.8737543-04:00</BookedOn>
      <BookingGUID>sample string 10</BookingGUID>
      <BookingNumber>1</BookingNumber>
      <DepartureDateTime>2018-05-24T21:18:37.8737543-04:00</DepartureDateTime>
      <Email>sample string 8</Email>
      <FromCity>sample string 3</FromCity>
      <PNR>sample string 2</PNR>
      <ToCity>sample string 4</ToCity>
      <TravellerName>sample string 9</TravellerName>
    </LatestBookingDetails>
  </LatestBookings>
</LatestBookingsRS>