Company administration service methods: Difference between revisions

Line 1,183: Line 1,183:
== Constants ==
== Constants ==


==== Error codes ====
== Error codes ==


* ERROR_BOOKING_ACCESS_DENIED
* -32001 Plugin is not activated
* ERROR_PLUGIN_DISABLED
* -32010 Some required params are missed
* ERROR_EVENT_ID_VALUE
* -32011 Params is not array
* ERROR_UNIT_ID_VALUE
* -32012 Sheduler id not found
* ERROR_DATE_VALUE
* -32020 Sorry, you have no permissions to perform this action
* ERROR_TIME_VALUE
* -32030 Invalid promotion code
* ERROR_RECURRENT_BOOKING
* -32031 Promotion has expired
* ERROR_LIMIT_BOOKING
* -32032 Promotion is not active yet
* ERROR_CLIENT_NAME_VALUE
* -32033 This promocode is not valid for selected service
* ERROR_CLIENT_EMAIL_VALUE
* -32034 Exceed max usage limit
* ERROR_CLIENT_PHONE_VALUE
* -32035 Exceed max usage per customer limit'const
* ERROR_CLIENT_ID
* -32036 This promocode is not available for datetime range
* ERROR_ADDITIONAL_FIELDS
* -32051 Selected event id is not available
* ERROR_APPOINTMENT_NOT_FOUND
* -32052 Selected unit id is not available
* ERROR_SIGN
* -32053 Selected date start is not available
* ERROR_APPLICATION_CONFIRMATION
* -32054 Selected time start is not available
* ERROR_BATCH_NOT_FOUND
* -32055 One or more appointments couldn't be reserved
* ERROR_UNSUPPORTED_PAYMENT_SYSTEM
* -32056 Booking is not allowed at this time
* ERROR_PAYMENT_FAILED
* -32061 Client name value is wrong
* ERROR_REQUIRED_PARAMS_MISSED
* -32062 Client email value is wrong
* ERROR_PARAMS_IS_NOT_ARRAY
* -32063 Client phone value is wrong
* ERROR_PARAMS_SHEDULER_ID
* -32070 Additional field values are wrong
* ERROR_PROMOCODE_INVALID
* -32080 Appointemnt couldn't be found
* ERROR_PROMOCODE_EXPIRED
* -32085 Signature error
* ERROR_PROMOCODE_NOT_ACTIVE_YET
* -32090 Confirmation with this key type is not available
* ERROR_PROMOCODE_INVALID_SERVICE
* -32095 Batch not found
* ERROR_PROMOCODE_COUNT_EXCEED
* -32097 Unsupported payment system
* ERROR_PROMOCODE_COUNT_PER_CUSTOMER_EXCEED
* -32099 Payment failed
* ERROR_PROMOCODE_INVALID_BOOKING_DATETIME
* -32600
* DATETIME_FORMAT
*: An error with this code can be thrown with one of the following messages:
* DATE_FORMAT
** Access denied
* RECURRENT_BOOKING_BATCH
** Company does not exists
* GROUP_BOOKING_BATCH
* -32601 Method not found
* MULTIPLE_BOOKING_BATCH
* -32602 Invalid params
 
* -32603 Internal error
----
* -3264 Client with given id not found


====Company params====
====Company params====