Skip to main content

Rentals Taxes

Overview

This resource represents Rentals Taxes - the Taxes for a Rental, which can be either configured to be included in Rental's price (as initial_price in Booking) or not.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Rentals Tax
rentalIntegerReadRental's ID related to the Rentals Tax
taxIntegerReadTax's ID related to the Rentals Tax
idIntegerReadRentals Tax's ID
tax_included_in_rateBooleanReadTax amount already included in rental price if set to true (as initial_price in Booking)
created_atTimeReadRentals Tax's create time
updated_atTimeReadRentals Tax's update time

List rentals taxes

List all rentals taxes for a given account(s).

GET /rentals_taxes
response.json
{
"links": {
"rentals_taxes.rental": "https://www.bookingsync.com/api/v3/rentals/{rentals_taxes.rental}",
"rentals_taxes.tax": "https://www.bookingsync.com/api/v3/taxes/{rentals_taxes.tax}"
},
"rentals_taxes": [
{
"links": {
"rental": 2,
"tax": 1
},
"id": 3,
"tax_included_in_rate": true,
"created_at": "2015-08-05T15:15:47Z",
"updated_at": "2015-08-05T15:15:47Z"
}
]
}

Get a single rentals tax

Returns a single rentals tax identified by ID.

GET /rentals_taxes/:rentals_tax_id
response.json
{
"links": {
"rentals_taxes.rental": "https://www.bookingsync.com/api/v3/rentals/{rentals_taxes.rental}",
"rentals_taxes.tax": "https://www.bookingsync.com/api/v3/taxes/{rentals_taxes.tax}"
},
"rentals_taxes": [
{
"links": {
"rental": 2,
"tax": 1
},
"id": 3,
"tax_included_in_rate": true,
"created_at": "2015-08-05T15:15:47Z",
"updated_at": "2015-08-05T15:15:47Z"
}
]
}

Create a new rentals tax

Returns a newly created rentals tax.

POST  /rentals/:rental_id/rentals_taxes
request.json
{
"rentals_taxes": [
{
"tax_id": 2,
"tax_included_in_rate": true
}
]
}
response.json
{
"links": {
"rentals_taxes.rental": "https://www.bookingsync.com/api/v3/rentals/{rentals_taxes.rental}",
"rentals_taxes.tax": "https://www.bookingsync.com/api/v3/taxes/{rentals_taxes.tax}"
},
"rentals_taxes": [
{
"links": {
"rental": 1,
"tax": 2
},
"id": 3,
"tax_included_in_rate": true,
"created_at": "2015-08-05T15:15:47Z",
"updated_at": "2015-08-05T15:15:47Z"
}
]
}

Update a rentals tax

Returns an updated rentals tax identified by ID.

PUT /rentals_taxes/:rentals_tax_id
request.json
{
"rentals_taxes": [
{
"tax_included_in_rate": true
}
]
}
response.json
{
"links": {
"rentals_taxes.rental": "https://www.bookingsync.com/api/v3/rentals/{rentals_taxes.rental}",
"rentals_taxes.tax": "https://www.bookingsync.com/api/v3/taxes/{rentals_taxes.tax}"
},
"rentals_taxes": [
{
"links": {
"rental": 1,
"tax": 2
},
"id": 3,
"tax_included_in_rate": true,
"created_at": "2015-08-05T15:15:47Z",
"updated_at": "2015-08-05T15:15:47Z"
}
]
}

Delete a rentals tax

Required OAuth scope: :rates_write

Returns empty response with 204 No Content status code on success.

DELETE /rentals_taxes/:rentals_tax_id