License activation
The three usage meter routes your app calls to activate, validate and deactivate a generated license key on a device. They are on https://usage.comecero.com and take no token.
Endpoints
Guides that use it
Multi-use license keys
Have Comecero make a license key for each sale, limit it to a number of devices, and keep it in step with renewals, refunds and chargebacks.
License key API
The three usage meter routes your app calls to activate, validate and deactivate a license key, their errors, and a Mac app example in Swift.
Get a license GET
Returns one license key. A limited token may read it only when the license is bound to the token, such as a license on the signed-in customer's order. Secret, trusted and limited tokens may call it.
Activate a license key POST
Takes one of a [generated key](/docs/license-keys)'s device seats for this device. Call it once, when the customer enters the key, and save the `instance_id` on the device. Atomic: with a limit of 3, any number of activations at the same time give exactly 3 devices. While a device is active, activating it again with the same `fingerprint` answers `200` with the same instance and takes no extra seat, so an activation is safe to resend after a timeout or a `503`. This route is on the usage meter (`https://usage.comecero.com`), not the Comecero API, and takes no token: the key and your shop's public `account_id` are the credential. Call it from your app or your server; it sends no CORS headers.