Changes

From SimplyBook.me
Created page with "=[https://simplybook.me/api/doc#/ Company public service] API methods= ====getCompanyParam==== <code>getCompanyParam(key)</code> Params: * '''key''' string Returns string...."
=[https://simplybook.me/api/doc#/ Company public service] API methods=

====getCompanyParam====

<code>getCompanyParam(key)</code>

Params:
* '''key''' string

Returns string.

<code>getCompanyParam</code> API method returns configuration value for specified key. Method return invalid params error (code [[Errors handling#Error codes|-32602]]) in case if specified key not allowed.

Possible values of key parameter:

* allow_delay_payment
* allow_event_breaktime_break
* allow_event_day_break
* company_timezone
* date_format
* fixed_country_prefix
* hide_sale_tax
* max_time_till_event
* min_time_till_event
* monday_is_first_day
* payment_timeout
* require_fields
*: String. Client's data fields required for booking. Possible values:
** phone - phone number is required
** email - email address is required
** email_phone - phone number and email address are required
* sale_tax
* send_notifications_in_client_timezone
* show_booking_page_in_client_timezone
* time_format
* timeframe
* user_public_timeline_type