Create a license
POST/products/{product_id}/plans/{plan_id}/pricing/{pricing_id}/licenses.json
Create a new license for the plan and pricing. Please note that:
- Either
periodorexpires_atoris_block_featuresmust be set. - If you create a license with
is_block_featuresset tofalseand do not specifyperiodandexpires_at, the license will never expire or block features and will continue to work for lifetime. - If you specify an email address, the user must have already activated a license or installed your product before. If your user has not activated a license, then please don't use the field and when they activate the license we will collect their email and register the user with Freemius.
- Use the
sourceparameter only when creating migrated licenses from a legacy system.
More information about every other parameters can be found below.
Request
Responses
- 200
The license created successfully.