POST api/Book/CheckDuplicateBooking

Request Information

URI Parameters

None.

Body Parameters

DuplicateBookingRQSVC
NameDescriptionTypeAdditional information
SoapAuthentication

SoapAuthentication

None.

DuplicateBookingRQObj

DuplicateBookingRQ

None.

Request Formats

application/json, text/json

Sample:
{
  "DuplicateBookingRQObj": {
    "Passengers": [
      {
        "FirstName": "sample string 1",
        "LastName": "sample string 2"
      },
      {
        "FirstName": "sample string 1",
        "LastName": "sample string 2"
      }
    ],
    "DeptDate": "2018-06-21T21:12:52.7975463-04:00",
    "FlightNo": "sample string 2",
    "AirlineCode": "sample string 3"
  },
  "SoapAuthentication": {
    "UserName": "sample string 1",
    "Password": "sample string 2"
  }
}

text/html

Sample:
{"DuplicateBookingRQObj":{"Passengers":[{"FirstName":"sample string 1","LastName":"sample string 2"},{"FirstName":"sample string 1","LastName":"sample string 2"}],"DeptDate":"2018-06-21T21:12:52.7975463-04:00","FlightNo":"sample string 2","AirlineCode":"sample string 3"},"SoapAuthentication":{"UserName":"sample string 1","Password":"sample string 2"}}

application/xml, text/xml

Sample:
<DuplicateBookingRQSVC xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <DuplicateBookingRQObj>
    <AirlineCode>sample string 3</AirlineCode>
    <DeptDate>2018-06-21T21:12:52.7975463-04:00</DeptDate>
    <FlightNo>sample string 2</FlightNo>
    <Passengers>
      <Passenger>
        <FirstName>sample string 1</FirstName>
        <LastName>sample string 2</LastName>
      </Passenger>
      <Passenger>
        <FirstName>sample string 1</FirstName>
        <LastName>sample string 2</LastName>
      </Passenger>
    </Passengers>
  </DuplicateBookingRQObj>
  <SoapAuthentication>
    <Password>sample string 2</Password>
    <UserName>sample string 1</UserName>
  </SoapAuthentication>
</DuplicateBookingRQSVC>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DuplicateBookingRS
NameDescriptionTypeAdditional information
BookingNumber

integer

None.

BookingGUID

string

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": "sample string 1",
  "ErrorAtNode": "sample string 2",
  "BookingNumber": 1,
  "BookingGUID": "sample string 2"
}

text/html

Sample:
{"ErrorCode":"sample string 1","ErrorAtNode":"sample string 2","BookingNumber":1,"BookingGUID":"sample string 2"}

application/xml, text/xml

Sample:
<DuplicateBookingRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
  <BookingGUID>sample string 2</BookingGUID>
  <BookingNumber>1</BookingNumber>
  <ErrorAtNode>sample string 2</ErrorAtNode>
  <ErrorCode>sample string 1</ErrorCode>
</DuplicateBookingRS>