Authentication and Authorization
Last updated
Last updated
The DiscountData API uses token-based authentication to ensure secure access to the endpoints. To authenticate your requests, you need to include an authorization bearer token in the header of each API call.
To obtain an authorization bearer token, you'll need to follow these steps:
Visit the DiscountData developer portal at
Sign in to your account or create a new account if you haven't done so already.
Once logged in, navigate to the API Credentials section in your account settings.
By default, a key would be generated for you. Otherwise, you can generate a new authorization bearer token by clicking on the "Reset API Key" button. This will provide you with a unique token that you can use to authenticate your API requests.
To authenticate your API requests, you need to include the authorization bearer token in the Authorization
header.
Sample Usage
The authorization bearer token grants access to specific resources and functionality within the DiscountData API based on defined authorization scopes. These scopes determine the level of access and permissions associated with your token.
Make sure to review the documentation for each API endpoint to understand the required authorization scopes for accessing different resources. If your token lacks the necessary scopes, you will receive a 403 Forbidden response.
Remember to keep your authorization bearer token secure and avoid sharing it with unauthorized parties. If you suspect any unauthorized access or believe your token has been compromised, please regenerate your token immediately through the DiscountData developer portal.
Now that you understand how to authenticate and authorize your API requests, you can proceed to explore the various endpoints available in the DiscountData API.