Skip to main content

Inquiries

Overview

This resource represents Inquiries that can be later turned into Bookings. They usually originate from the widgets where you can select dates and either create a Booking right away or send the Inquiry with some question.

Parameters

NameTypeRead/WriteDescription
rentalIntegerReadRental's ID related to the Inquiry
sourceIntegerReadSource's ID related to the Inquiry
bookingIntegerReadBooking's ID related to the Inquiry
conversationIntegerReadInbox Conversation's ID related to the Inquiry
accountIntegerReadAccount's ID related to the Inquiry
idIntegerReadInquiry's ID.
adultsIntegerReadInquiry's booking number of adults.
childrenIntegerReadInquiry's booking number of children.
country_codeStringReadInquiry's client country code, list of codes is available at wikipedia.
emailStringReadInquiry's client email.
firstnameStringReadInquiry's client firstname.
lastnameStringReadInquiry's client lastname.
messageTextReadInquiry's message.
phoneStringReadInquiry's client phone number.
lockedStringReadInquiry's locked status.
created_atTimeReadInquiry's create time.
updated_atTimeReadInquiry's update time.
start_atTimeReadInquiry's booking start time.
end_atTimeReadInquiry's booking end time.

List inquiries

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

ScopeRead Permissions
:inquiries_write_ownedDisplay only inquiries created by application making the request
:inquiries_readDisplay all inquiries
:inquiries_writeDisplay all inquiries

Returns a list of all inquiries for current account(s).

GET /inquiries

Get a single inquiry

Returns a single inquiry identified by ID.

GET /inquiries/:inquiry_id

Create a new inquiry

Creates an inquiry for given rental.

POST /rentals/:rental_id/inquiries

Update a inquiry

Returns an updated inquiry identified by ID.

PUT /inquiries/:id