[#371] How to get the Minimum allowed time before service booking from the API?

Migrated from Redmine #371 | Author: Finn Pauls
Status: New | Priority: High, I’m very impatient | Created: 2019-04-05


We need the “Minimum allowed time before service booking” in our application to determine if an event can be rescheduled or not.

Is there a way to read this from the API?

Or how would you do something like this? Is there a way to ask the API if an event can be rescheduled?

Redmine Admin wrote:

Hi, you can call this method API documentation | SimplyBook.me Online Scheduling with ‘min_time_till_event’

getCompanyParam('min_time_till_event')

Here is list of all config values you can get with public API

'time_format', 'fixed_country_prefix', 'min_time_till_event', 'max_time_till_event', 'timeframe',
    	'allow_event_breaktime_break', 'allow_event_day_break', 'monday_is_first_day', 'show_booking_page_in_client_timezone',
    	'send_notifications_in_client_timezone', 'company_timezone', 'company_timezone_type', 'date_format', 'payment_timeout', 'sale_tax', 'hide_sale_tax',
    	'allow_delay_payment', 'allow_delay_payment', 'user_public_timeline_type', 'require_fields', 'max_group_bookings', 'changable_prefix_by_client',
        'cancelation_policy_text', 'cancelation_policy_label', 'cancelation_policy_period', 'client_login_allow_registration',
        'site_link_title', 'site_link', 'mobile_site_link_title', 'mobile_site_link', 'auto_redirect_text', 'auto_redirect',
	    'google_translate_langs', 'google_translate_mode', 'google_translate_base_lang',
	    'cancelation_policy_is_reason_required', 'cancelation_policy_enable_reason', 'company_currency'

List of config values available in admin API

'allow_delay_payment', 'allow_event_breaktime_break', 'allow_event_day_break', 'attach_ical', 'auto_redirect',
			'auto_redirect_text', 'blockchain_address', 'blockchain_secret', 'borgun_merchant_id', 'borgun_payment_gateway_id',
			'borgun_secret_code', 'changable_prefix_by_client', 'client_batch_cancel_template', 'client_batch_cancel_template_email',
			'client_batch_cancel_template_email_subject', 'client_event_cancel_template', 'client_event_cancel_template_email',
			'client_event_cancel_template_email_subject', 'client_event_change_template', 'client_event_change_template_email',
			'client_event_change_template_email_subject', 'client_event_creation_template', 'client_event_creation_template_email',
			'client_event_creation_template_email_subject', 'client_event_group_creation_template',
			'client_event_group_creation_template_email', 'client_event_group_creation_template_email_subject',
			'client_event_multiple_creation_template', 'client_event_multiple_creation_template_email',
			'client_event_multiple_creation_template_email_subject', 'client_group_notification_template',
			'client_group_notification_template_email', 'client_group_notification_template_email_subject',
			'client_multiple_notification_template', 'client_multiple_notification_template_email',
			'client_multiple_notification_template_email_subject', 'client_notification_template', 'client_notification_template_email',
			'client_notification_template_email_subject', 'client_notification_time', 'client_recurring_event_creation_template',
			'client_recurring_event_creation_template_email', 'client_recurring_event_creation_template_email_subject',
			'common_limit_booking', 'company_currency', 'company_ga_tracking_id', 'company_timezone', 'company_timezone_type', 'date_format', 'default_phone',
			'disconnect_on_timeout', 'dwolla_application_key', 'dwolla_id', 'dwolla_secret_key', 'email_events_list_template',
			'email_event_list', 'email_group_events_list_template', 'event_list_style', 'feedback_invite_template_email',
			'feedback_invite_template_email_subject', 'feed_back_interval', 'feed_back_send_to_client', 'fixed_country_prefix', 'google_conversion_color',
			'feedback_notification_company_template_email', 'feedback_notification_company_template_email_subject',
			'feedback_notification_client_template_email', 'feedback_notification_client_template_email_subject',
			'google_conversion_currency', 'google_conversion_format', 'google_conversion_id', 'google_conversion_label',
			'google_conversion_language', 'google_conversion_value', 'hide_sale_tax', 'hide_working_hours_block', 'include_cancel_link',
			'kortais_merchant', 'kortais_secret_code', 'kortais_terminal', 'layout_background', 'layout_background_repeat',
			'liqpay_merchant_id', 'liqpay_merchant_pass', 'max_group_bookings', 'max_time_till_event', 'min_time_till_event',
			'mobile_site_link', 'mobile_site_link_title', 'monday_is_first_day', 'no_show_period', 'on_success_button_link',
			'on_success_button_text', 'payment_timeout', 'paypal_account', 'recap_interval', 'recap_send_after_time',
			'recap_send_canceled_bookings', 'recap_send_new_bookings', 'recap_send_upcomming_bookings', 'require_fields', 'sale_tax',
			'send_cancel_to_client', 'send_cancel_to_client_email', 'send_cancel_to_unit', 'send_cancel_to_unit_email',
			'send_contact_widget_email_notification', 'send_contact_widget_sms_notification', 'send_notifications_in_client_timezone',
			'send_notify_to_client', 'send_notify_to_client_email', 'send_notify_to_unit', 'send_notify_to_unit_email',
			'send_onchange_to_client', 'send_onchange_to_client_email', 'send_onchange_to_unit', 'send_onchange_to_unit_email',
			'send_oncreate_to_client', 'send_oncreate_to_client_email', 'send_oncreate_to_unit', 'send_oncreate_to_unit_email',
			'send_sms_if_push_enabled', 'show_booking_page_in_client_timezone', 'site_link', 'site_link_title', 'skip_limits_for_admin',
			'skip_show_mobile_app_ads', 'skip_show_on_success_button', 'skrill_account', 'skrill_secret', 'sms_events_list_template',
			'sms_event_list', 'sms_group_events_list_template', 'timeframe', 'time_format', 'unit_batch_cancel_template',
			'unit_batch_cancel_template_email', 'unit_batch_cancel_template_email_subject', 'unit_event_cancel_template',
			'unit_event_cancel_template_email', 'unit_event_cancel_template_email_subject', 'unit_event_change_template',
			'unit_event_change_template_email', 'unit_event_change_template_email_subject', 'unit_event_creation_template',
			'client_payment_fail_template_email', 'client_payment_fail_template_email_subject', 'client_payment_fail_template',
			'company_payment_fail_template_email', 'company_payment_fail_template_email_subject', 'company_payment_fail_template',
			'unit_event_creation_template_email', 'unit_event_creation_template_email_subject', 'unit_event_group_creation_template',
			'unit_event_group_creation_template_email', 'unit_event_group_creation_template_email_subject',
			'unit_group_notification_template', 'unit_group_notification_template_email', 'unit_group_notification_template_email_subject',
			'unit_notification_template', 'unit_notification_template_email', 'unit_notification_template_email_subject',
			'unit_notification_time', 'unit_recurring_event_creation_template', 'unit_recurring_event_creation_template_email',
			'unit_recurring_event_creation_template_email_subject', 'user_confirmation', 'user_license_text', 'user_public_layout',
			'user_public_theme', 'user_public_timeline_type', 'use_common_client_db', 'waiting_video', 'zooz_app_id', 'zooz_app_key',
            'client_login_allow_registration', 'braintree_merchant_id', 'braintree_public_key', 'braintree_private_key',
			'send_email_membership_recurring_notification', 'send_email_membership_recurring_payment_failed', 'send_email_membership_payment_notification',
			'send_email_membership_recurring_payment_success', 'send_sms_membership_recurring_notification', 'send_sms_membership_recurring_payment_failed',
			'send_sms_membership_payment_notification', 'send_sms_membership_recurring_payment_success',
			'membership_recurring_notification_template', 'membership_recurring_notification_template_email', 'membership_recurring_notification_template_email_subject',
			'membership_recurring_payment_failed_template', 'membership_recurring_payment_failed_template_email', 'membership_recurring_payment_failed_template_email_subject',
			'membership_recurring_payment_success_template', 'membership_recurring_payment_success_template_email', 'membership_recurring_payment_success_template_email_subject',
			'membership_payment_notification_template', 'membership_payment_notification_template_email', 'membership_payment_notification_template_email_subject',