Skip to main content
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

string
required
The license key to activate (e.g., ABC-123-XYZ-789)

Request Body

string
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

object

Error Responses

object
Returned when:
  • License has been revoked
  • License has expired
  • Activation limit has been reached
object
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_activation to active
  • activated_at is set to the current timestamp
  • expires_at is calculated based on the product’s validity period (if configured)

Subsequent Activations

  • activation_count is 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)
You can retrieve the full activation history using the Get License Activations endpoint.

Example: Desktop Application