HTTP status codes
The RESTful architecture of Affinity's API utilizes standard HTTP response codes to indicate the success or failure of requests
HTTP code | Description |
|---|---|
| Request was successful. Please note that for all transaction requests, a |
| Client Error. There may be an issue with the request. Please check the request parameters and ensure they are correct. |
| Validation error |
| Unauthorized. This error occurs when the |
| Requested resource does not exist |
| An error occurred on Affinity's side. This issue is not expected. Please contact support if you encounter this error. |
Transaction status codes
Affinity uses transaction status codes to indicate the current state of a transaction
Transaction Status Code | Description |
|---|---|
| Transaction successful |
| Transaction failed |
| Transaction is being processed |