Company public service methods: Difference between revisions

No edit summary
Line 120: Line 120:
create batch booking you can specify either <code>count</code> more then 1 or valid <code>batchId</code> (only one
create batch booking you can 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
parameter can be specified). You should specify an <code>$additionalFields</code> parameter if service requires
some additional fields (see [[Custom_Features#Additional_Fields|Additional fields Custom feature]]). To create a booking with promo code you
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>{"name": "promocode", "value": "some code", "type": "text"}</code>See [[#book response|example]] of <code>book</code> API method response.
should pass it as additional field. For example: <code>{"name": "promocode", "value": "some code", "type": "text"}</code>See [[#book response|example]] of <code>book</code> API method response.


Line 297: Line 297:
Returns Array.
Returns Array.


Return additional fields for certain event if [[Custom_Features#Additional_Fields|Additional fields Custom feature]] is
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 973: Line 973:
* -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 Additional field values are wrong
* -32070 Intake forms values are wrong
* -32080 Appointemnt couldn't be found
* -32080 Appointemnt couldn't be found
* -32085 Signature error
* -32085 Signature error
Line 1,084: Line 1,084:
*:Service categories
*:Service categories
* event_field
* event_field
*:Additional fields
*:Intake forms
* facebookImage
* facebookImage
*:Facebook client info
*:Facebook client info