MIDAS API Addon MIDAS API: get_booking_type

Available in API 2.45+
Returns details of a specific booking type
Required ParametersPossible ValuesDescription
idBooking Type Name or IDThe name or numeric ID of the booking type
Example Response
↓ Show
[
	{
	"id":"1",
	"name":"Community",
	"color":"#FF0000",
	"discount":"",
	"tentative":1,
	"tentative_expire":"",
	"public":1
	}
]
Variables ReturnedDescription
idThe internal ID of the booking type
nameThe name of the booking type
colorThe hexadecimal color associated with the booking type
discountThe absolute numerical or percentage (%) discount associated with the booking type
tentativeReturns a 1 if the booking type has been set as tentative and set to expire a number of minutes after bookings of this type are added.
Returns a 2 if the booking type has been set as tentative and set to expire a number of minutes before bookings of this type commence.
Returns a 0 if the booking type is not currently set as being tentative.
tentative_expireIf the booking type is "tentative", this parameter denotes the expiry time in minutes
publicReturns a 1 if the booking type has been set as public, otherwise returns a 0