How to test DIGI service in our website with Swagger

How to test DIGI service in Swagger

Step 1 - Login

Login or register your account at digi.costpocket.com.
DIGI login page
You will receive a one-time usable code to your email. Enter this code and you will be directed to the DIGI Portal.

Step 2 - Token

In the DIGI Portal, find your first token. Copy this token, we will need it.
DIGI token

Step 3 - Authorize

Go to the DIGI documentation in Swagger.
Authorize in DIGI Swagger
Click "Authorize" and enter your token in format "Bearer your-token-here". Then click "Authorize" and "Close".

Step 4 - Pick endpoint

Select the endpoint you would like to test. Click on it and then click "Try it out".
Pick endpoint and click Try it out

Step 5 - Execute

Upload your document and click "Execute". Wait a few seconds and see your result.
Execute endpoint in DIGI Swagger

All done!

After this, make more requests, test the service in some other environment or integrate into your code. See more tutorials below:
JavaScript tutorial
Postman tutorial