anyshop docs homeStatusOpen the dashboard

API reference License checks Get an offline license file

API referenceLicense checks

Get an offline license file

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

Public: the license key is the credential. Verify the file with the store's Ed25519 public key (Developers page).

  • 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 file.

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