What is a License Key?
The license key is a data string that verifies authorized software product access. It is a kind of security tool used by creators who sell software. License keys will be automatically generated according to the purchase verified by creators through their application.
Preparing Product to Get License Key
Here are the steps to generate the product license keys:
- Log in to app.utas.co
- Click the Produtcs menu.
- Click the Product tab.
- Click the New Product button and select the Digital product.
- Fill in the blank field, then check the Generate license checkbox to add a license to your product. The license will be automatically generated on every purchase.
- Click the Save button.
- Click the OK button on success notification.
- Done.
The License Key Journey
- Make a digital post and check the Generate License checkbox.
- The buyer will receive an email about the purchase and the license key.
- The buyer runs your application and enters the license key in the given field in the app.
- Your application gets a response from Utas and receives license information (status, product name, product description).
- Your application checks the license validity with its algorithm.
Verifying a License Key
We verify a license key in your application using these parameters:
- Guid (Globally Unique Identifier, identity for digital product).
- License (license key from your buyer).
- Access_token (access token for your store).
GUID
Every product has a unique and different GUID to identify within the system. We use this parameter to retrieve Utas API and verify the license provided.
To get the Product GUID, do as follows:
1. Click the View Guid option below on Action colomn to see each GUID product.
2. Copy the product GUID as a parameter to retrieve Utas API.
cURL example
curl –location –request POST ‘https://utas.me/{your_profile_name}/api/checklicense’ \
–header ‘access-token: {YOUR_ACCESS_TOKEN}’ \
–form ‘guid=”{YOUR_PRODUCT_GUID}”‘ \
–form ‘license=”{YOUR_CUSTOMERS_LICENSE_KEY}”‘
Example response
{
“status”: true,
“product_name”: “tes digital”,
“product_description”: ” asdsad”
}
Generating an Access Token
An access token will be automatically generated once you make a new profile. If the store does not have the access token yet, please do the following steps:
- Go to the Integration menu.
- Select the Others tab.
- Click the reload button to generate/reset Access Token.