Authentication
Learn about authentication requirements for secure transactions on HotWax's platform. Ensure safe API requests effortlessly.
To ensure secure transactions on HotWax's platform, all applications connecting with the HotWax API require authentication when making API requests. The primary method of authentication employed is Bearer token authentication.
Bearer Token Authentication
Bearer token authentication utilizes security tokens. After a successful login request, the server generates a secret string known as a bearer token. When making requests for protected resources, the user must include the token in the authorization header.
How to generate a bearer token?
Hotwax Commerce relies on robust security features provided by JWT (JSON Web Token) to ensure a safe and trustworthy API communication environment. This mechanism guarantees user authenticity, authorizes their actions, and maintains data integrity through digital signatures. To create JWT, follow these steps:
Create a unique user from users.hotwax.io by using integration template or assign the integration permissions.
Make sure that Reset Password on Login is unchecked.
Navigate to the Hamburger menu in OMS:
https://{instanceName}.hotwax.io/
Access the Settings option and choose
Create JWT Token
.Input the user ID.It will display only the users having integration permissions.
Token Configuration:**
Define the validation period.
Specify the purpose of the token.
Click
Create
, and the resulting JWT token will be displayed in the dedicated section.Copy Token and use it to build connection
Authentication Endpoint
Sample endpoint: https://<host_name>.hotwax.io/<api_name>/login
APIs Requiring Authentication
The following HotWax APIs require an authentication token:
updateInventory
For more information about Bearer token authentication, refer to this video.
Last updated