WDCS/ERP API Options & API Keys Dashboard.
WDCS has a built in api that can be used to add sync operation to the built in queue. That way you can use any app to integrate with the WDCS connector.
How to use the API
Navigate to the Auth Keys Dashboard.
Generate the API key that will be used by the external app.
1. Click on the create Button.
2. Put your App name on for the token identifier.
3. Your token has been generated and it is ready to be used. Change this image By clicking on the copy icon you add the token to your current paste bin.
Use your key to consume the api endpoints.
In order to consume/use the token you must pass it as an Bearer token in your HTTP Request Header.
Auth Header Example
The current token won't work for you! In order for this to work you need to create your own token in the dashboard.
Routes
To see all of our apis urls you may access our swagger docs in the following url.
Testing API endpoints in swagger.
In order to test the api endpoints in swagger we first need to pass our generated token from the dashboard. To do so we need to click the authorize button on top of the swagger docs.
For our token to work with the documentation we need to pass the token like this.
Bearer $token
Once the token is used we can see that we have a successfull request from swagger to our api endpoints.
Greetings
Not Authenticated Response
If your Post Request doesn't contain the token you will probably get and 401 response.
Revoke Authentication Token.
If you want to revoke an existing token you can simply delete the token in the dashboard.
On the Auth Dashboard click on the trash icon.
Confirm you want to delete the current token.
You have deleted a token.
Once the token is deleted, it can't be used again. The token will no longer be valid.