Skip to main content

Rental Agreements

Overview

This resource represents Rental Agreements - an agreement that needs to be accepted by Clients (travelers) for Bookings.

The Rental Agreement can be defined on the Account level (a global one that will be applied to all Rentals), a custom one for Rental (if not defined, it defaults to Account's one) and on the Booking level (which is the copy of the Rental's one at time of Booking creation).

Parameters

NameTypeRead/WriteDescriptionConstraints
accountIntegerReadAccount's ID related to the Rental Agreement
rental_agreementable_idIntegerReadID of the resource to which Rental Agreement belongs to (Rental, Account or Booking)
rental_agreementable_typeStringReadType of the resource to which Rental Agreement belongs to (Rental, Account or Booking)
idIntegerReadRental Agreement's ID.
bodyTextReadRental Agreement's body for the Account's default locale.
body_translationsObjectReadRental Agreement's body translations
created_atTimeReadRental Agreement's create time.
updated_atTimeReadRental Agreement's update time.

List rental agreements

List all rental agreements for rentals in given account(s).

GET /rental_agreements
response.json
{
"rental_agreements": [
{
"id": 1,
"body": "My Agreement",
"created_at": "2025-03-31T17:52:11.890Z",
"updated_at": "2025-04-07T17:52:11.890Z"
}
]
}

Get a single rental agreement

Returns a single rental agreement identified by ID.

GET /rental_agreements/:rental_agreement_id
response.json
{
"rental_agreements": [
{
"id": 1,
"body": "My Agreement",
"created_at": "2025-03-31T17:52:11.890Z",
"updated_at": "2025-04-07T17:52:11.890Z"
}
]
}

Create a new default rental agreement

Create a new rental agreement to be used by default. This rental agreement will be used, unless one is defined at rental or booking level.

Returns a newly created rental agreement.

POST /rental_agreements

Create a new rental agreement for a booking

Create a new rental agreement to be used exclusively for this booking.

Returns a newly created rental agreement.

POST /bookings/:booking_id/rental_agreements

Create a new rental agreement for a rental

Create a new rental agreement to be used by default for the given rental.

Returns a newly created rental agreement.

POST /rentals/:rental_id/rental_agreements