Skip to main content

Rentals Fees

Overview

This resource represents Rentals Fees which are a way to define the relationship between Rentals and Fees and provide a configuration for the behavior of the Fee within the scope of a given rental.

Parameters

NameTypeRead/WriteDescription
accountIntegerReadAccount's ID related to the Rentals Fee
feeIntegerReadFee's ID related to the Rentals Fee
rentalIntegerReadRental's ID related to the Rentals Fee
seasonsArrayReadSeasons' IDs related to the Rentals Fee
idIntegerReadRentals Fee's ID.
always_appliedBooleanReadRentals Fee will always be applicable if set to true (if set to false, the applicability periods are defined via seasons or start_date/end_date)
maximum_bookableIntegerReadRentals Fee's maximum booked count.
nameObjectReadRentals Fee's name, list of locales described in enums section.
publicBooleanReadPublicly bookable by client if set to true.
rateDecimalReadRentals Fee's rate.
rate_kindStringReadRentals Fee's rate kind, list of fee's rate kinds described in enums section.
requiredBooleanReadAlways included for new bookings, also public if set to true.
archived_atTimeReadRentals Fee's archive time.
created_atTimeReadRentals Fee's create time.
updated_atTimeReadRentals Fee's update time.
start_dateDateReadRentals Fee's start date (applicable only if always_applied is false and seasons are empty).
end_dateDateReadRentals Fee's end date (applicable only if always_applied is false and seasons are empty).

List rentals fees

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

GET /rentals_fees
response.json
{
"links": {
"rentals_fees.fee": "http://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}",
"rentals_fees.rental": "http://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}",
"rentals_fees.seasons": "http://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"
},
"rentals_fees": [
{
"links": {
"fee": 9,
"rental": 1,
"seasons": []
},
"id": 6,
"always_applied": true,
"end_date": null,
"maximum_bookable": 12,
"name": {
"en": "NAME"
},
"public": true,
"rate": 10,
"rate_kind": "fixed",
"required": false,
"start_date": null,
"archived_at": null,
"created_at": "2015-03-18T09:34:01Z",
"updated_at": "2015-03-18T09:34:01Z"
}
]
}

Get a single rentals fee

Returns a single rentals fee identified by ID.

GET /rentals_fees/:rentals_fee_id
response.json
{
"links": {
"rentals_fees.fee": "http://www.bookingsync.com/api/v3/fees/{rentals_fees.fee}",
"rentals_fees.rental": "http://www.bookingsync.com/api/v3/rentals/{rentals_fees.rental}",
"rentals_fees.seasons": "http://www.bookingsync.com/api/v3/seasons/{rentals_fees.seasons}"
},
"rentals_fees": [
{
"links": {
"fee": 9,
"rental": 1,
"seasons": []
},
"id": 6,
"always_applied": true,
"end_date": null,
"maximum_bookable": 12,
"name": {
"en": "NAME"
},
"public": true,
"rate": 10,
"rate_kind": "fixed",
"required": false,
"start_date": null,
"archived_at": null,
"created_at": "2015-03-18T09:34:01Z",
"updated_at": "2015-03-18T09:34:01Z"
}
]
}

Create a new rentals fee

Creates a rentals fee for given rental.

POST /rentals/:rental_id/rentals_fees

Update a rentals fee

Returns an updated rentals fee identified by ID.

PUT /rentals_fees/:rentals_fee_id

Archive a rentals fee

Required OAuth scope: :rentals_write

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

DELETE /rentals_fees/:rentals_fee_id