Deactivate a device
Frees the seat a device holds on a generated key, for example when the customer signs out or moves to a new computer. Safe to repeat: a device already deactivated, or dropped when the key was replaced, answers 200 again and frees nothing twice. On the usage meter (https://usage.comecero.com), with no token: the key and your shop's public account_id are the credential.
application/json- body
The key and the device to free.
account_id*stringYour shop's public account id, for example AB1234.
^[A-Za-z0-9_.:-]{1,128}$license_key*stringThe key as the customer typed it. Case, spaces and dashes don't matter.
length <= 256instance_id*stringThe device to deactivate, the instance_id saved from the activation.
^[A-Za-z0-9_.:-]{1,128}$The device is deactivated.
application/json- response
The device, now deactivated.
instance_id*stringThe device's id.
deactivated_at*|When the device was deactivated.
date-timelicense*What your app sees of a license in the usage meter's answers. Never the key itself.
curl -X POST 'https://usage.comecero.com/v1/licenses/deactivate' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "AB1234", "license_key": "ACME-7K2QF-M9X4T-0BHRW-C3NDP-YV8JE", "instance_id": "ins_3f0c9a1b2c4d5e6f708192a3b4c5d6e7"}'{ "instance_id": "ins_3f0c9a1b2c4d5e6f708192a3b4c5d6e7", "deactivated_at": "2026-11-20T16:02:13.000Z", "license": { "license_id": "0142130710581LiRr8sT2c", "test": true, "status": "active", "activation_limit": 3, "activations": 0, "expires_at": null }}Validate a license key POST
Checks a [generated key](/docs/license-keys) and, when you send `instance_id`, one of its devices. Changes nothing. A well-formed request always answers `200`: read `valid` and `code`. On the usage meter (`https://usage.comecero.com`), with no token: the key and your shop's public `account_id` are the credential.
Overview
Next Page