POST api/PostBook/AddAdditionalServices

Request Information

URI Parameters

None.

Body Parameters

FPAdditionalServicesRQ
NameDescriptionTypeAdditional information
BookingGUID

string

None.

TravelerServices

Collection of TravellerAssistanceServiceType

None.

TotalAmount

decimal number

None.

UseExistingPaymentDetails

boolean

None.

PaymentInfo

CCDetailsInfo

None.

Version

string

None.

EmailId

string

None.

PhoneNumber

string

None.

PhoneServiceProvider

PhoneServiceProvider

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingGUID": "sample string 1",
  "TravelerServices": [
    10,
    10
  ],
  "TotalAmount": 2.1,
  "UseExistingPaymentDetails": true,
  "PaymentInfo": {
    "Guid": "sample string 1",
    "CardCode": 0,
    "CardHolderName": "sample string 2",
    "CCExpirationDate": "sample string 3",
    "CVNumber": "sample string 4",
    "CardNumber": "sample string 5",
    "BillingInfo": {
      "Phone": "sample string 1",
      "Email": "sample string 2",
      "Address1": "sample string 3",
      "Address2": "sample string 4",
      "City": "sample string 5",
      "State": "sample string 6",
      "Country": "sample string 7",
      "Zip": "sample string 8",
      "FlatNumber": "sample string 9",
      "ContactPhone": "sample string 10"
    }
  },
  "Version": "sample string 4",
  "EmailId": "sample string 5",
  "PhoneNumber": "sample string 6",
  "PhoneServiceProvider": 0
}

text/html

Sample:
{"BookingGUID":"sample string 1","TravelerServices":[10,10],"TotalAmount":2.1,"UseExistingPaymentDetails":true,"PaymentInfo":{"Guid":"sample string 1","CardCode":0,"CardHolderName":"sample string 2","CCExpirationDate":"sample string 3","CVNumber":"sample string 4","CardNumber":"sample string 5","BillingInfo":{"Phone":"sample string 1","Email":"sample string 2","Address1":"sample string 3","Address2":"sample string 4","City":"sample string 5","State":"sample string 6","Country":"sample string 7","Zip":"sample string 8","FlatNumber":"sample string 9","ContactPhone":"sample string 10"}},"Version":"sample string 4","EmailId":"sample string 5","PhoneNumber":"sample string 6","PhoneServiceProvider":0}

application/xml, text/xml

Sample:
<FPAdditionalServicesRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects.AdditionalServices">
  <BookingGUID>sample string 1</BookingGUID>
  <EmailId>sample string 5</EmailId>
  <PaymentInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects">
    <d2p1:BillingInfo>
      <d2p1:Address1>sample string 3</d2p1:Address1>
      <d2p1:Address2>sample string 4</d2p1:Address2>
      <d2p1:City>sample string 5</d2p1:City>
      <d2p1:ContactPhone>sample string 10</d2p1:ContactPhone>
      <d2p1:Country>sample string 7</d2p1:Country>
      <d2p1:Email>sample string 2</d2p1:Email>
      <d2p1:FlatNumber>sample string 9</d2p1:FlatNumber>
      <d2p1:Phone>sample string 1</d2p1:Phone>
      <d2p1:State>sample string 6</d2p1:State>
      <d2p1:Zip>sample string 8</d2p1:Zip>
    </d2p1:BillingInfo>
    <d2p1:CCExpirationDate>sample string 3</d2p1:CCExpirationDate>
    <d2p1:CVNumber>sample string 4</d2p1:CVNumber>
    <d2p1:CardCode>VI</d2p1:CardCode>
    <d2p1:CardHolderName>sample string 2</d2p1:CardHolderName>
    <d2p1:CardNumber>sample string 5</d2p1:CardNumber>
    <d2p1:Guid>sample string 1</d2p1:Guid>
  </PaymentInfo>
  <PhoneNumber>sample string 6</PhoneNumber>
  <PhoneServiceProvider>NONE</PhoneServiceProvider>
  <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>
  <TotalAmount>2.1</TotalAmount>
  <TravelerServices xmlns:d2p1="http://schemas.datacontract.org/2004/07/FPWebBox.Utility">
    <d2p1:TravellerAssistanceServiceType>INSURANCE</d2p1:TravellerAssistanceServiceType>
    <d2p1:TravellerAssistanceServiceType>INSURANCE</d2p1:TravellerAssistanceServiceType>
  </TravelerServices>
  <UseExistingPaymentDetails>true</UseExistingPaymentDetails>
  <Version>sample string 4</Version>
</FPAdditionalServicesRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FPAdditionalServicesRS
NameDescriptionTypeAdditional information
TotalAmount

decimal number

None.

ErrorCode

string

None.

ErrorAtNode

string

None.

IsSuccess

boolean

None.

Message

string

None.

_message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "_message": "sample string 1",
  "TotalAmount": 1.1,
  "ErrorCode": "sample string 2",
  "ErrorAtNode": "sample string 3",
  "IsSuccess": true,
  "Message": "sample string 1"
}

text/html

Sample:
{"_message":"sample string 1","TotalAmount":1.1,"ErrorCode":"sample string 2","ErrorAtNode":"sample string 3","IsSuccess":true,"Message":"sample string 1"}

application/xml, text/xml

Sample:
<FPAdditionalServicesRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FPWebBox.BusinessObjects.AdditionalServices">
  <ErrorAtNode>sample string 3</ErrorAtNode>
  <ErrorCode>sample string 2</ErrorCode>
  <IsSuccess>true</IsSuccess>
  <Message>sample string 1</Message>
  <TotalAmount>1.1</TotalAmount>
  <_message>sample string 1</_message>
</FPAdditionalServicesRS>