GET api/Units?unitTypeID={unitTypeID}&securityToken={securityToken}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| unitTypeID | integer |
Required |
|
| securityToken | string |
Required |
Body Parameters
None.
Response Information
Resource Description
VillaDirectQuoteResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| error | string |
None. |
|
| unitID | integer |
None. |
|
| unitName | string |
None. |
|
| unitTypeID | integer |
None. |
|
| unitTypeName | string |
None. |
|
| from | date |
None. |
|
| to | date |
None. |
|
| grandtotal | decimal number |
None. |
|
| nights | integer |
None. |
|
| taxrate | decimal number |
None. |
|
| discount | decimal number |
None. |
|
| CLEAN | decimal number |
None. |
|
| ADW | decimal number |
None. |
|
| PFEE | decimal number |
None. |
|
| RentalAmount | decimal number |
None. |
|
| BaseRate | decimal number |
None. |
|
| LowRate | decimal number |
None. |
|
| MidRate | decimal number |
None. |
|
| HighRate | decimal number |
None. |
|
| PeakRate | decimal number |
None. |
|
| discountPercent | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"error": "sample string 1",
"unitID": 2,
"unitName": "sample string 3",
"unitTypeID": 4,
"unitTypeName": "sample string 5",
"from": "2025-12-10T06:00:11.9313736+00:00",
"to": "2025-12-10T06:00:11.9313736+00:00",
"grandtotal": 8.0,
"nights": 9,
"taxrate": 10.0,
"discount": 11.0,
"CLEAN": 12.0,
"ADW": 13.0,
"PFEE": 14.0,
"RentalAmount": 15.0,
"BaseRate": 16.0,
"LowRate": 17.0,
"MidRate": 18.0,
"HighRate": 19.0,
"PeakRate": 20.0,
"discountPercent": 21.0
}
application/xml, text/xml
Sample:
<VillaDirectQuoteResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <error>sample string 1</error> <unitID>2</unitID> <unitName>sample string 3</unitName> <unitTypeID>4</unitTypeID> <unitTypeName>sample string 5</unitTypeName> <from>2025-12-10T06:00:11.9313736+00:00</from> <to>2025-12-10T06:00:11.9313736+00:00</to> <grandtotal>8</grandtotal> <nights>9</nights> <taxrate>10</taxrate> <discount>11</discount> <CLEAN>12</CLEAN> <ADW>13</ADW> <PFEE>14</PFEE> <RentalAmount>15</RentalAmount> <BaseRate>16</BaseRate> <LowRate>17</LowRate> <MidRate>18</MidRate> <HighRate>19</HighRate> <PeakRate>20</PeakRate> <discountPercent>21</discountPercent> </VillaDirectQuoteResponse>