Setting up a subscription license for our users?

How
would we set up a subscription license for our users? We plan to sell
monthly and annual subscriptions. Would we just manually revoke the
license if the account is cancelled?

Hi,

It is pretty simple and can be easily automated. Suppose you want to sell monthly subscriptions. You will do the following:

  1. Generate license keys with validity of 30 days
  2. Update the validity of the license key whenever your customers renews the subscription using the web api - https://cryptlex.com/help/web-api-methods/pkey-update
  3. Cryptlex syncs the server data with your application every 90 days by default. You can set it to 30 days or less so that your user can continue to use the app without any issue.

In case you want to customize it more, you can use Custom License Fields to customize the whole process as per your needs.

When updating the customer's License Key using pkey-update, do we need to include all of the original fields used to generate the key (e.g., email address, custom fields, etc.) or can we just update those specific fields such as lic_validity?

You don’t need to include every field. Only the fields you include get updated rest retain their current values.