Clik2pay's REST APIs use conventional HTTP status codes to indicate the success or failure of API requests.

HTTP status code

The following table lists the HTTP status code and its meaning.

Status CodeDescription
200 - OKThe request has succeeded.
201 - CreatedThe request has been fulfilled and has resulted in one or more new resources being created.
400 - Bad RequestAn invalid input is provided, such as poorly formatter query parameters or JSON input.
401 - UnauthorizedThe user is unknown (expired/invalid/no auth token)
403 - ForbiddenThe user does not have permission to perform the requested operation
404 - Not FoundThe resource provided in the URL was not found.
429 - Too Many RequestsRate limits have been exceeded. This may also indicate that max payment limit has been exceeded.
500 - Internal Server ErrorAn unexpected error occurred inside the server that prevented it from fulfilling the request.