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 | Description |
|---|---|
200 | Request 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). |
201 | A resource has successfully been created. |
400 | A validation or client side error occurred and the request was not fulfilled. |
401 | The request was not authorized. This can be triggered by passing an invalid secret key in the authorization header or the lack of one. |
404 | Request could not be fulfilled as the request resource does not exist. |
5xx | Request 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. |