POST api/VillaTropico/SaveDraftBooking_3?unitName={unitName}&checkIn={checkIn}&checkOut={checkOut}&coupon={coupon}&GuestName={GuestName}&PhoneNumber={PhoneNumber}&EmailAddress={EmailAddress}&NumberOfGuests={NumberOfGuests}&Comment={Comment}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
unitName

string

Required

checkIn

date

Required

checkOut

date

Required

coupon

string

Required

GuestName

string

Required

PhoneNumber

string

Required

EmailAddress

string

Required

NumberOfGuests

string

Required

Comment

string

Required

Body Parameters

Collection of OtherCost
NameDescriptionTypeAdditional information
CostID

integer

None.

CostTypeID

integer

None.

CostName

string

None.

CostValueBeforeTax

decimal number

None.

Mandatory

boolean

None.

Selected

boolean

None.

Default

boolean

None.

Frequency

integer

None.

Description

string

None.

IsTaxable

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CostID": 1,
    "CostTypeID": 2,
    "CostName": "sample string 3",
    "CostValueBeforeTax": 4.0,
    "Mandatory": true,
    "Selected": true,
    "Default": true,
    "Frequency": 8,
    "Description": "sample string 9",
    "IsTaxable": true
  },
  {
    "CostID": 1,
    "CostTypeID": 2,
    "CostName": "sample string 3",
    "CostValueBeforeTax": 4.0,
    "Mandatory": true,
    "Selected": true,
    "Default": true,
    "Frequency": 8,
    "Description": "sample string 9",
    "IsTaxable": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfOtherCost xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <OtherCost>
    <CostID>1</CostID>
    <CostTypeID>2</CostTypeID>
    <CostName>sample string 3</CostName>
    <CostValueBeforeTax>4</CostValueBeforeTax>
    <Mandatory>true</Mandatory>
    <Selected>true</Selected>
    <Default>true</Default>
    <Frequency>8</Frequency>
    <Description>sample string 9</Description>
    <IsTaxable>true</IsTaxable>
  </OtherCost>
  <OtherCost>
    <CostID>1</CostID>
    <CostTypeID>2</CostTypeID>
    <CostName>sample string 3</CostName>
    <CostValueBeforeTax>4</CostValueBeforeTax>
    <Mandatory>true</Mandatory>
    <Selected>true</Selected>
    <Default>true</Default>
    <Frequency>8</Frequency>
    <Description>sample string 9</Description>
    <IsTaxable>true</IsTaxable>
  </OtherCost>
</ArrayOfOtherCost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int>1</int>