Skip to main content

Bookings Taxes

Overview

This resource represents the Booking's Taxes which contribute to Booking's final price. Each Booking can have multiple taxes, that can be either included in the price of the taxable item or not. For example, if Rental's initial price is 1000 and there is an included BookingsTax for that Rental with amount of 100, the overall contribution to the Booking's final_price is still 1000, because the tax is already included in that amount. However, if the tax was not included in the price, the overall contribution would be 1000 + 100 = 1100.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Bookings Tax
bookingIntegerReadBooking's ID related to the Bookings Tax.
taxIntegerReadTax's ID related to the Bookings Tax.
taxable_idIntegerReadTaxable's ID related to the Bookings Tax. (Rental's, Fee's, or Bookings Fee's - this is a polymorphic association)
taxable_typeStringReadTaxable's type related to the Bookings Tax. (Rental Fee, or Bookings Fee - this is a polymorphic association)
idIntegerReadBookings Tax's id.
amountDecimalReadBookings Tax's amount.
nameObjectReadBookings Tax's name, list of locales described in enums section.
percentageDecimalReadBookings Tax's percentage.
tax_included_in_priceBooleanReadTax amount already included in taxable's price if set to true.
created_atTimeReadBookings Tax's create time.
updated_atTimeReadBookings Tax's update time.

List bookings taxes

Based on the OAuth token scopes bookings taxes will be limited to a certain range.

ScopeRead Permissions
:bookings_write_ownedDisplay only bookings taxes for bookings created by app making the request
:bookings_readDisplay all bookings taxes
:bookings_writeDisplay all bookings taxes

List all bookings taxes for current account(s).

GET /bookings_taxes
response.json
{
"links": {
"bookings_taxes.booking": "http://www.bookingsync.com/api/v3/bookings/{bookings_taxes.booking}",
"bookings_taxes.tax": "http://www.bookingsync.com/api/v3/taxes/{bookings_taxes.tax}",
"bookings_taxes.rental": "http://www.bookingsync.com/api/v3/rentals/{bookings_taxes.taxable.id}",
"bookings_taxes.fee": "http://www.bookingsync.com/api/v3/fees/{bookings_taxes.taxable.id}"
},
"bookings_taxes": [
{
"links": {
"account": 3,
"booking": 1382,
"tax": 7,
"taxable": {
"id": 1,
"type": "Rental"
}
},
"id": 52,
"name": {
"en": "Bookings Tax"
},
"tax_included_in_price": false,
"percentage": "455.0",
"amount": "1565.2"
}
],
"meta": {}
}

Get a single bookings tax

Returns a single bookings tax identified by ID.

GET /bookings_taxes/:bookings_tax_id
response.json
{
"links": {
"bookings_taxes.booking": "http://www.bookingsync.com/api/v3/bookings/{bookings_taxes.booking}",
"bookings_taxes.tax": "http://www.bookingsync.com/api/v3/taxes/{bookings_taxes.tax}",
"bookings_taxes.rental": "http://www.bookingsync.com/api/v3/rentals/{bookings_taxes.taxable.id}",
"bookings_taxes.fee": "http://www.bookingsync.com/api/v3/fees/{bookings_taxes.taxable.id}"
},
"bookings_taxes": [
{
"links": {
"account": 3,
"booking": 1382,
"tax": 7,
"taxable": {
"id": 1,
"type": "Rental"
}
},
"id": 52,
"name": {
"en": "Bookings Tax"
},
"tax_included_in_price": false,
"percentage": "455.0",
"amount": "1565.2"
}
],
"meta": {}
}