Skip to main content

Rates Tables

Overview

This resource represents Rates Tables - a resource for grouping price-related resources (such as Rates Rules, Seasons, Periods) for Rentals. Rates Tables can be shared between Rentals to make pricing setup between rentals reusable.

Rates Tables cannot be updated or swapped to a different one if they have:

  • private status (shared as false)
  • corresponding rental has external rates management configured (nightly_rates_managed_externally as true)

Parameters

NameTypeRead/WriteDescriptionConstraints
accountIntegerReadAccount's ID related to the Rates Table
seasonsArrayReadSeasons' IDs related to the Rates Table
rates_rulesArrayReadRates Rules' IDs related to the Rates Table
periodsArrayReadPeriods' IDs related to the Rates Table
rentalsArrayReadRentals' IDs related to the Rates Table
idIntegerReadRates Table's ID.
nameObjectReadRates Table's name, list of locales described in enums section
sharedBooleanReadRates Table's shared (between Rentals) status.
public_notesStringReadRates Table's public notes.
created_atTimeReadRate's create time.
updated_atTimeReadRate's update time.

List rates tables

List all rates tables for a given account.

GET /rates_tables
response.json
{
"links": {
"rates_tables.account": "https://www.bookingsync.com/api/v3/accounts/{rates_tables.account}",
"rates_tables.seasons": "https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}",
"rates_tables.rates_rules": "https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}",
"rates_tables.periods": "https://www.bookingsync.com/api/v3/periods/{rates_tables.periods}"
},
"rates_tables": [
{
"links": {
"account": 5,
"seasons": [
2,
34
],
"rates_rules": [
3,
7
],
"periods": [
2,
3
]
},
"id": 2,
"name": "Rates Table 2",
"shared": true,
"created_at": "2025-04-08T12:05:06.616Z",
"updated_at": "2025-04-15T12:05:06.616Z"
}
]
}

Get a single rates table

Returns a single rates table identified by ID.

GET /rates_tables/:rates_table_id
response.json
{
"links": {
"rates_tables.account": "https://www.bookingsync.com/api/v3/accounts/{rates_tables.account}",
"rates_tables.seasons": "https://www.bookingsync.com/api/v3/seasons/{rates_tables.seasons}",
"rates_tables.rates_rules": "https://www.bookingsync.com/api/v3/rates_rules/{rates_tables.rates_rules}",
"rates_tables.periods": "https://www.bookingsync.com/api/v3/periods/{rates_tables.periods}"
},
"rates_tables": [
{
"links": {
"account": 5,
"seasons": [
2,
34
],
"rates_rules": [
3,
7
],
"periods": [
2,
3
]
},
"id": 2,
"name": "Rates Table 2",
"shared": true,
"created_at": "2025-04-08T12:05:06.618Z",
"updated_at": "2025-04-15T12:05:06.618Z"
}
]
}

Create a new rates table

Cloning a rates table

To clone an existing rates table, pass "clone_from": "ID" parameter with ID of the source.

Returns a newly created rates table.

POST /rates_tables

Update a rates table

Returns an updated rates table identified by ID.

PUT /rates_tables/:rates_table_id

Destroy a rates table

Required OAuth scope: :rates_write

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

DELETE /rates_tables/:rates_table_id