Licenses
Activate License
Activate a license on a device
Activates a license for a device by recording activation details and incrementing the activation count. The system automatically captures the requesting IP address and user agent. On the first activation, the license status changes from
pending_activation to active, and the expiration date is calculated based on the product’s validity period settings.
Each activation is tracked individually, allowing you to view the complete activation history. The license cannot be activated if it has been revoked, has expired, or if the maximum activation limit has been reached.
Path Parameters
The license key to activate (e.g.,
ABC-123-XYZ-789)Request Body
Optional unique identifier for the device (e.g., MAC address, hardware UUID, machine ID). Max 255 characters.
The IP address and user agent are automatically captured from the request and do not need to be provided.
Response
Error Responses
Returned when:
- License has been revoked
- License has expired
- Activation limit has been reached
Returned when the license key doesn’t exist or doesn’t belong to your store
Implementation Notes
First Activation
When a license is activated for the first time:- Status changes from
pending_activationtoactive activated_atis set to the current timestampexpires_atis calculated based on the product’s validity period (if configured)
Subsequent Activations
activation_countis incremented- A new activation record is created in the activation history
- The license status remains
active
Device Tracking
Each activation is tracked with:device_identifier(optional, provided by you)activated_by_ip(automatically captured)user_agent(automatically captured)created_at(timestamp of activation)