Validate a license
POST methodhttps://api.anyshop.io/v1/licenses/validate
Public: the license key is the credential. No API key.
Body
application/json1 required, 3 optionalkeystring requiredThe license key as the buyer typed or pasted itUp to 200 charactersdevice_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 charactersnamestring A name the seller sees, like Studio MacUp to 100 charactersplatformstring The device's system, for the sellerUp to 40 characters
Returns
An object with ok and license.
Errors
Status and error.code400invalid_key: not a license key;device_required: no device ID403revokedorexpired404not_found: no license has this key;not_activated: it is not active on this device429rate_limited: too many requests; see Retry-After