Table of Contents
- API Usage Guide
- API Command Reference
- add_booking
- add_client
- add_invoice
- add_resource
- approve_request
- authenticate_user
- del_booking
- del_bookings
- del_client
- del_invoice
- del_resource
- email_client
- gen_invoice
- get_activity
- get_availability
- get_booking
- get_booking_type
- get_booking_types
- get_bookings
- get_client
- get_consumable_levels
- get_invoice
- get_invoices
- get_messages
- get_reminders
- get_resource
- get_resource_availability
- get_setting
- get_template
- get_user
- get_users_logged_in
- get_venue
- get_venue_groups
- get_venues
- get_venues_in_group
- get_venues_in_use
- get_watches
- mod_booking
- mod_client
- mod_invoice
- mod_resource
- mod_venue
- notify_user
- reject_request
- restore_booking
- set_setting
- set_template
- util_api_usage
- util_from_epoch
- util_to_epoch
- Appendix A - Activity Codes
- Appendix B - Setting Names
- Appendix C - Error Handling
- Code Samples
- Troubleshooting
- Release Notes
← Hide Table of Contents
MIDAS API: get_booking_type
Available in API 2.45+
Returns details of a specific booking type
Required Parameters | Possible Values | Description |
id | Booking Type Name or ID | The 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 Returned | Description |
id | The internal ID of the booking type |
name | The name of the booking type |
color | The hexadecimal color associated with the booking type |
discount | The absolute numerical or percentage (%) discount associated with the booking type |
tentative | Returns 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_expire | If the booking type is "tentative", this parameter denotes the expiry time in minutes |
public | Returns a 1 if the booking type has been set as public, otherwise returns a 0 |