HTTP Codes

FanitePay's API adheres to RESTful principles, employing standard HTTP response codes to signify the outcome of requests, whether they are successful or not.

Code Meaning

CodeDescription
200Request was successful and intended action was carried out. Note that we will always send a 200 if a charge or verify request was made. Do check the data object to know how the charge went (i.e. successful or failed).
201A resource has successfully been created.
400A validation or client side error occurred and the request was not fulfilled.
401The request was not authorized. This can be triggered by passing an invalid secret key in the authorization header or the lack of one.
404Request could not be fulfilled as the request resource does not exist.
5xxRequest could not be fulfilled due to an error on Paystack’s end. This shouldn’t happen so please report as soon as you encounter any instance of this.