Licenses
Validate License
Validate a license key from your customer.”
License Key Validation with Creem
The validation endpoint allows you to verify if a license key is still valid and active. This documentation will guide you through implementing license validation in your application.
Overview
License validation is a crucial part of maintaining software security and ensuring proper usage of your product.
- Key Validation Features
- Real-time Status: Get immediate feedback on license validity
- Feature Access: Check which features are enabled for the license
- Quota Management: Track remaining usage quotas
- Expiration Checking: Verify if the license is still within its valid period
Validation Flow Example
Here’s how the validation process typically works:
- Application starts up or performs periodic check
- Retrieves stored license key and instance ID
- Sends validation request to Creem API
- Processes response and updates application state
- Handles any validation errors or expired licenses
Endpoint Details
- URL:
https://test-api.creem.io/v1/licenses/validate
- Method: POST
- Authentication: Requires API key in headers
Request Parameters
The request body should include:
- key (required): The license key to validate
- instance_id (required): The instance ID received during activation
Response Format
Implementation Examples
-
JavaScript Example:
-
cURL Example:
-
Python Example:
Error Handling
Common error responses include:
- 400 Bad Request: Invalid or missing parameters
- 401 Unauthorized: Invalid API key
- 404 Not Found: Invalid license key or instance ID
- 410 Gone: License has been revoked or expired