GET api/Booking/MakeDraftBooking?unitName={unitName}&checkIn={checkIn}&checkOut={checkOut}&coupon={coupon}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
unitName

string

Required

checkIn

date

Required

checkOut

date

Required

coupon

string

Required

Body Parameters

None.

Response Information

Resource Description

DraftBooking
NameDescriptionTypeAdditional information
Villa

string

None.

AvgRateOriginal

decimal number

None.

AvgRateDiscounted

decimal number

None.

TaxPercentage

decimal number

None.

TaxValueOriginal

decimal number

None.

TaxValueDiscounted

decimal number

None.

TotalBeforeTaxOriginal

decimal number

None.

TotalBeforeTaxDiscounted

decimal number

None.

TotalOriginal

decimal number

None.

TotalDiscounted

decimal number

None.

CheckIn

date

None.

CheckOut

date

None.

Days

Collection of DraftBookingItem

None.

OtherCosts

Collection of OtherCost

None.

Response Formats

application/json, text/json

Sample:
{
  "Villa": "sample string 1",
  "AvgRateOriginal": 2.0,
  "AvgRateDiscounted": 3.0,
  "TaxPercentage": 4.0,
  "TaxValueOriginal": 5.0,
  "TaxValueDiscounted": 6.0,
  "TotalBeforeTaxOriginal": 7.0,
  "TotalBeforeTaxDiscounted": 8.0,
  "TotalOriginal": 9.0,
  "TotalDiscounted": 10.0,
  "CheckIn": "2025-12-10T06:03:30.6031182+00:00",
  "CheckOut": "2025-12-10T06:03:30.6031182+00:00",
  "Days": [
    {
      "Day": "2025-12-10T06:03:30.6031182+00:00",
      "EntryMinimumRateBeforeTax": 2.0,
      "EntryMaximumRateBeforeTax": 3.0,
      "BaseMinimumRateBeforeTax": 4.0,
      "BaseMaximumRateBeforeTax": 5.0,
      "RateOnVillaTropicoWebSiteBeforeTax": 1.0,
      "RateOnHomeAwayBeforeTax": 2.0,
      "RateOnTripAdvisorBeforeTax": 3.0,
      "RateOnAirbnbBeforeTax": 4.0,
      "RateOnBookingDotComBeforeTax": 5.0
    },
    {
      "Day": "2025-12-10T06:03:30.6031182+00:00",
      "EntryMinimumRateBeforeTax": 2.0,
      "EntryMaximumRateBeforeTax": 3.0,
      "BaseMinimumRateBeforeTax": 4.0,
      "BaseMaximumRateBeforeTax": 5.0,
      "RateOnVillaTropicoWebSiteBeforeTax": 1.0,
      "RateOnHomeAwayBeforeTax": 2.0,
      "RateOnTripAdvisorBeforeTax": 3.0,
      "RateOnAirbnbBeforeTax": 4.0,
      "RateOnBookingDotComBeforeTax": 5.0
    }
  ],
  "OtherCosts": [
    {
      "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:
<DraftBooking xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Villa>sample string 1</Villa>
  <AvgRateOriginal>2</AvgRateOriginal>
  <AvgRateDiscounted>3</AvgRateDiscounted>
  <TaxPercentage>4</TaxPercentage>
  <TaxValueOriginal>5</TaxValueOriginal>
  <TaxValueDiscounted>6</TaxValueDiscounted>
  <TotalBeforeTaxOriginal>7</TotalBeforeTaxOriginal>
  <TotalBeforeTaxDiscounted>8</TotalBeforeTaxDiscounted>
  <TotalOriginal>9</TotalOriginal>
  <TotalDiscounted>10</TotalDiscounted>
  <CheckIn>2025-12-10T06:03:30.6031182+00:00</CheckIn>
  <CheckOut>2025-12-10T06:03:30.6031182+00:00</CheckOut>
  <Days>
    <DraftBookingItem>
      <Day>2025-12-10T06:03:30.6031182+00:00</Day>
      <EntryMinimumRateBeforeTax>2</EntryMinimumRateBeforeTax>
      <EntryMaximumRateBeforeTax>3</EntryMaximumRateBeforeTax>
      <BaseMinimumRateBeforeTax>4</BaseMinimumRateBeforeTax>
      <BaseMaximumRateBeforeTax>5</BaseMaximumRateBeforeTax>
      <RateOnVillaTropicoWebSiteBeforeTax>1</RateOnVillaTropicoWebSiteBeforeTax>
      <RateOnHomeAwayBeforeTax>2</RateOnHomeAwayBeforeTax>
      <RateOnTripAdvisorBeforeTax>3</RateOnTripAdvisorBeforeTax>
      <RateOnAirbnbBeforeTax>4</RateOnAirbnbBeforeTax>
      <RateOnBookingDotComBeforeTax>5</RateOnBookingDotComBeforeTax>
    </DraftBookingItem>
    <DraftBookingItem>
      <Day>2025-12-10T06:03:30.6031182+00:00</Day>
      <EntryMinimumRateBeforeTax>2</EntryMinimumRateBeforeTax>
      <EntryMaximumRateBeforeTax>3</EntryMaximumRateBeforeTax>
      <BaseMinimumRateBeforeTax>4</BaseMinimumRateBeforeTax>
      <BaseMaximumRateBeforeTax>5</BaseMaximumRateBeforeTax>
      <RateOnVillaTropicoWebSiteBeforeTax>1</RateOnVillaTropicoWebSiteBeforeTax>
      <RateOnHomeAwayBeforeTax>2</RateOnHomeAwayBeforeTax>
      <RateOnTripAdvisorBeforeTax>3</RateOnTripAdvisorBeforeTax>
      <RateOnAirbnbBeforeTax>4</RateOnAirbnbBeforeTax>
      <RateOnBookingDotComBeforeTax>5</RateOnBookingDotComBeforeTax>
    </DraftBookingItem>
  </Days>
  <OtherCosts>
    <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>
  </OtherCosts>
</DraftBooking>