Errors
Zoho Books uses HTTP status codes to display the result of an API call. Generally, 2xx class codes are success codes, 4xx class codes occur when the information provided by the client is incorrect, and 5xx class codes indicate server side errors. The HTTP status codes that are commonly used are listed below.
HTTP Status Codes
Status Code | Description |
---|---|
200 | OK |
201 | Created |
400 | Bad request |
401 | Unauthorized (Invalid AuthToken) |
404 | URL Not Found |
405 | Method Not Allowed (Method you have called is not supported for the invoked API) |
429 | Rate Limit Exceeded (API usage limit exceeded) |
500 | Internal Error |
$ curl https://www.zohoapis.com/books/v3/invoices/700000007942?organization_id=10234695
-H 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Successfully created."
}
{
"code": 1002,
"message": "Invoice does not exist."
}
{
"code": 1000,
"message": "Internal error"
}