anyshop docs homeStatusOpen the dashboard

API reference License checks Deactivate a license

API referenceLicense checks

Deactivate a license

POST methodhttps://api.anyshop.io/v1/licenses/deactivate

Public: the license key is the credential. No API key.

  • No API key: the license key is the credential

Body

application/json1 required, 3 optional
  • keystring requiredThe license key as the buyer typed or pasted itUp to 200 characters
  • device_idstring Your app's identifier of the device, the same on every launch; only its hash is kept. Needed to activate and deactivate; with validate, it also checks the license is active on this device1 to 200 characters
  • namestring A name the seller sees, like Studio MacUp to 100 characters
  • platformstring The device's system, for the sellerUp to 40 characters

Returns

An object with ok and license.

Errors

Status and error.code
  • 400invalid_key: not a license key; device_required: no device ID
  • 403revoked or expired
  • 404not_found: no license has this key; not_activated: it is not active on this device
  • 429rate_limited: too many requests; see Retry-After