POST api/PostBook/AddFlightWatcher

Request Information

URI Parameters

None.

Body Parameters

FPAddTravellerServiceRQ
NameDescriptionTypeAdditional information
BookingGUID

string

None.

TravellerServiceType

TravellerAssistanceServiceType

None.

SoapHeader

SoapAuthentication

None.

State

FlightWatcherState

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingGUID": "sample string 1",
  "TravellerServiceType": 10,
  "SoapHeader": {
    "UserName": "sample string 1",
    "Password": "sample string 2"
  },
  "State": 1
}

text/html

Sample:
{"BookingGUID":"sample string 1","TravellerServiceType":10,"SoapHeader":{"UserName":"sample string 1","Password":"sample string 2"},"State":1}

application/xml, text/xml

Sample:
<FPAddTravellerServiceRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects.AdditionalServices">
  <BookingGUID>sample string 1</BookingGUID>
  <SoapHeader xmlns:d2p1="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
    <d2p1:Password>sample string 2</d2p1:Password>
    <d2p1:UserName>sample string 1</d2p1:UserName>
  </SoapHeader>
  <State>SUBSCRIBE</State>
  <TravellerServiceType>INSURANCE</TravellerServiceType>
</FPAddTravellerServiceRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FPAddTravellerServiceRS
NameDescriptionTypeAdditional information
IsAlreadyAdded

boolean

None.

EmailID

string

None.

PhoneNumber

string

None.

ServiceProvider

PhoneServiceProvider

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsAlreadyAdded": true,
  "EmailID": "sample string 2",
  "PhoneNumber": "sample string 3",
  "ServiceProvider": 0,
  "ErrorCode": "sample string 4",
  "ErrorAtNode": "sample string 5",
  "Message": "sample string 6"
}

text/html

Sample:
{"IsAlreadyAdded":true,"EmailID":"sample string 2","PhoneNumber":"sample string 3","ServiceProvider":0,"ErrorCode":"sample string 4","ErrorAtNode":"sample string 5","Message":"sample string 6"}

application/xml, text/xml

Sample:
<FPAddTravellerServiceRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects.AdditionalServices">
  <EmailID>sample string 2</EmailID>
  <ErrorAtNode>sample string 5</ErrorAtNode>
  <ErrorCode>sample string 4</ErrorCode>
  <IsAlreadyAdded>true</IsAlreadyAdded>
  <Message>sample string 6</Message>
  <PhoneNumber>sample string 3</PhoneNumber>
  <ServiceProvider>NONE</ServiceProvider>
</FPAddTravellerServiceRS>