Errors - Zakya API

Zakya uses HTTP status codes to indicate success or failure of an API call. In general, status codes in the 2xx range means success, 4xx range means there was an error in the provided information, and those in the 5xx range indicate server side errors. Commonly used HTTP status codes are listed below.

HTTP Status Codes

Status Code

Description

200

Success

The request was successfully completed.

201

Created

The request was a success and one or more resources have been created.

400

Bad request

The request cannot be performed. Usually because of malformed parameter or missing parameter.

401

Unauthorized (Invalid AuthToken)

Request was rejected because of invalid AuthToken.

404

URL Not Found

The URL you’ve sent is wrong. It’s possible that the resource you’ve requested has been moved to another URL.

405

Method Not Allowed

The requested resource does not support the HTTP method used. For example, requesting List of all customers API with PUT as the HTTP method.

429

Too many requests

Too many requests within a certain time frame. To know more about api call limits, click here.

500

Server error

Zakya server encountered an error which prevents it from fulfilling the request. Although this rarely happens, we recommend you to contact us at support@zakya.com if you receive this error.

Request ExampleCopy
curl https://api.zakya.com/v1/invoices/700000007942?authtoken=ba46xxxxxxxxxxxxxxxxxxxxxxxxoec5&organization_id=10234695
Response ExampleCopy
{
  "code": 1002,
  "message": "Invoice does not exist."
}