comecerodocs

Deactivate a device

POST
/v1/licenses/deactivate

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.

Request Body

application/json
  1. body

The key and the device to free.

account_id*string

Your shop's public account id, for example AB1234.

Match^[A-Za-z0-9_.:-]{1,128}$
license_key*string

The key as the customer typed it. Case, spaces and dashes don't matter.

Lengthlength <= 256
instance_id*string

The device to deactivate, the instance_id saved from the activation.

Match^[A-Za-z0-9_.:-]{1,128}$

Response Body

The device is deactivated.

application/json
  1. response

The device, now deactivated.

instance_id*string

The device's id.

deactivated_at*|

When the device was deactivated.

Formatdate-time
license*

What your app sees of a license in the usage meter's answers. Never the key itself.

Example Request
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"}'
Example Response
{  "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  }}