Authorisation v1 - Endurancezone-com/API-docs GitHub Wiki
Authorization
Note: Version 1 is legacy and is not part of the public API. Use Version 2.
In order to use the EZ Loyalty API your application will need a valid API key. For security reasons different keys are required for different environments.
The API key should be used in all calls to the API by providing it in the ApiKey header.
Endpoints will return a 401 status code if the API Key provided is missing, invalid or expired.
See below for an example of an API key being used
Curl
curl --location 'https://api.test.myezrewards.com/v1/members/' \
--header 'apikey: {APIKEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"EmailAddress": "[email protected]",
"Type": "Lookup"
}
HTTP
POST /v1/members/ HTTP/1.1
Host: api.test.myezrewards.com
apikey: {APIKEY}
Content-Type: application/json
{
"EmailAddress": "[email protected]",
"Type": "Lookup"
}