Activate a License Key
Returns
activated
A boolean indicating whether the license key was successfully activated.
error
An error message if the license key could not be activated. This will be null
if the license key was activated successfully.
license_key
The information about the license key that was activated.
instance
The information about the license key instance that was created.
meta
Additional information about the license key, including the order, product, variant, and customer information.
All license_key
objects include an id
attribute which can be used to fetch the full license key information from the Lemon Squeezy API. Responses also include a meta
object containing information related to the license key.
ID fields in the meta
object can be used to fetch data related to the license key, such as relevant order/product information, from the Lemon Squeezy API. The meta
object also contains convenience information from the license key, including product and variant names, and the customer’s name and email address.
Error response example: