Errors handling: Difference between revisions

No edit summary
Marked this version for translation
 
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
<!--T:1-->
{{#seo:
{{#seo:
|title=Errors handling - SimplyBook.me
|title=Errors handling - SimplyBook.me
Line 10: Line 11:


<translate>
<translate>
= Errors handling =
= Errors handling = <!--T:2-->


<!--T:3-->
In case of error server returns an object.
In case of error server returns an object.


<!--T:4-->
<pre>
<pre>
{
{
Line 25: Line 28:
</pre>
</pre>


== Error codes ==
== Error codes == <!--T:5-->


<!--T:6-->
* -32001 Plugin is not activated
* -32001 Plugin is not activated
* -32010 Some required params are missed
* -32010 Some required params are missed
Line 65: Line 69:


<translate>
<translate>
== Login API error codes ==
== Login API error codes == <!--T:7-->


<!--T:8-->
Authentication [https://simplybook.me/api/doc#/login API methods] have different set of errors.
Authentication [https://simplybook.me/api/doc#/login API methods] have different set of errors.


<!--T:9-->
* -33001 Company does not exist
* -33001 Company does not exist
* -33002 Wrong API key
* -33002 Wrong API key