The API returns standard HTTP response codes to indicate success or failure of the API requests. For errors, it also returns a customized error message inside the JSON response. You can see the returned HTTP status codes below.
HTTP Status Codes
Request successful. Most GET requests will return
Resource successfully created. Most POST requests to create a Fidel API entity (for example, a program or a card) will return a
Request successful with no content returned. Usually DELETE requests will return a
Request was unacceptable.
API or SDK key provided is invalid. For example:
Valid parameters but the request failed.
The request could not be satisfied. The API throws a 403 when you try to send invalid HTTP requests. For example, sending a POST body with a GET request.
Resource does not exist within Fidel API. For example:
Method Not Allowed
Invalid HTTP method. The resource you're trying to call does not support the method you're trying to use. For example:
500, 502, 503, 504
Something went wrong with the FIDEL API.
You can see all the possible error responses for the Create Card and Delete Card endpoints in the following pages: