Company administration service methods: Difference between revisions
No edit summary |
No edit summary |
||
| Line 177: | Line 177: | ||
time zone using <code>[[#getCompanyInfo|getCompanyInfo]]</code> API method. To create batch booking you can | time zone using <code>[[#getCompanyInfo|getCompanyInfo]]</code> API method. To create batch booking you can | ||
specify either <code>count</code> more then 1 or valid <code>batchId</code> (only one parameter can be | specify either <code>count</code> more then 1 or valid <code>batchId</code> (only one parameter can be | ||
specified). You should specify an <code>$additionalFields</code> parameter if service requires some | specified). You should specify an <code>$additionalFields</code> parameter if service requires some intake forms (see [[Custom_Features#Intake_Forms|Intake Forms Custom feature]]).To create a booking with promo code you should pass it as additional field. For example: <code>{"promocode": "some code"}</code> | ||
If [[Custom_Features#Multiple_Locations| Multiple locations]] enabled you need to pass locations ID parameter as additional field | If [[Custom_Features#Multiple_Locations| Multiple locations]] enabled you need to pass locations ID parameter as additional field | ||
| Line 343: | Line 342: | ||
Returns Array. | Returns Array. | ||
Return | Return intake forms for certain event if [[Custom_Features#Intake_Forms|Intake Forms Custom Feature]] is | ||
activated. Returns empty array otherwise. Call <code>[[#isPluginActivated|isPluginActivated('event_field')]]</code> | activated. Returns empty array otherwise. Call <code>[[#isPluginActivated|isPluginActivated('event_field')]]</code> | ||
API method to check if 'event_field' Custom Feature activated. | API method to check if 'event_field' Custom Feature activated. | ||
| Line 1,692: | Line 1,691: | ||
* -32062 Client email value is wrong | * -32062 Client email value is wrong | ||
* -32063 Client phone value is wrong | * -32063 Client phone value is wrong | ||
* -32070 | * -32070 Intake form values are wrong | ||
* -32080 Appointemnt couldn't be found | * -32080 Appointemnt couldn't be found | ||
* -32081 Service can't be performed when company does not work | * -32081 Service can't be performed when company does not work | ||
| Line 1,921: | Line 1,920: | ||
*:Service categories | *:Service categories | ||
* event_field | * event_field | ||
*: | *:Intake forms | ||
* facebookImage | * facebookImage | ||
*:Facebook client info | *:Facebook client info | ||
| Line 2,046: | Line 2,045: | ||
Promo field is present in response only if [[Custom_Features#Simply_Smart_Promotions|Simply Smart Promotions Custom Feature]] is enabled. Otherwise this field will be an empty array. This field contains false if Custom Feature is enabled but booking was created without any promo codes. | Promo field is present in response only if [[Custom_Features#Simply_Smart_Promotions|Simply Smart Promotions Custom Feature]] is enabled. Otherwise this field will be an empty array. This field contains false if Custom Feature is enabled but booking was created without any promo codes. | ||
<code>additional_fields</code> field is present in response only if [[Custom_Features# | <code>additional_fields</code> field is present in response only if [[Custom_Features#Intake_Forms|Intake Forms Custom Feature]] is enabled. Otherwise this field will be an empty array. This field contains an empty array if Custom Feature is enabled but booking was created for a service with no intake forms. | ||
---- | ---- | ||