Licensing API

Use the documentation below to learn how to build on top of the ProductDyno Licensing API.

How To Get Your API Key #

ProductDyno’s licensing system is a service which creates and manages licenses of single Products (not available for Collections) for customers who activate the service.

The service is activated by switching on the "Enable Licenses" switch under the Licensing section of a Product. A customer may also limit the number of licenses which will be issued to each verified buyer of the product.

The issued licenses are given to buyers on a specific "Licenses" page visible when they login to download their product. They are also available via API (see below).

Get License #

This GET request returns license information for a specific license key.

Once an API key and license key are sent, the response will determine if a license is valid.

PATH
https://app.productdyno.com/api/v1/licenses/get
METHOD
GET
PARAMETERS
_api_key
license_key
EXAMPLE JSON RESPONSE
{
  "license_key": "OWMM-QTME-MZEO-BTV5",
  "guid": "http://google.com",
  "activated_at": "2017-04-06 14:04:09",
  "product_id": 321
}

Get All Licenses #

This GET request returns all licenses assigned to a particular user.

This would be helpful for listing valid licenses inside of your application.

PATH
https://app.productdyno.com/api/v1/licenses/get-all
METHOD
GET
PARAMETERS
_api_key
member_id
EXAMPLE JSON RESPONSE
{
    "product_id": 1,
    "product_name": “PRODUCTX”,
    "licenses": [
      {
        "license_key": "OWMM-QTME-MZEO-BTV5",
        "guid": "http://google.com",
        "activated_at": "2017-04-06 14:04:09"
      }
    ]
  }

Activate License #

This method will activate a license provided by a user.

Use this method after a user provides their license. The system will check that the license provided is valid and will mark the license as active.

In order to validate the response as an extra protection layer, be sure to match the product_id in the Response with the Product Id you are protecting.

The guid parameter is set by you as a unique identifier. You can set it as a unique ID for desktop software...or you can set the domain for a WordPress plugin. Either way, the guid will be visible to the user on their ProductDyno "Licenses" page.

PATH
https://app.productdyno.com/api/v1/licenses/activate
METHOD
POST
PARAMETERS
_api_key
license_key
guid
EXAMPLE JSON RESPONSE
{
 “license_key”: “PW1V-FP0N-Q5IY-RRBZ”,
 “activated_at”: “2017-04-28 14:12:43”,
 “product_id”: 58
}

Deactivate License #

This method will deactivate a license provided to the system.

Use this method to deactivate a license for any reason after it has been previously activated.

PATH
https://app.productdyno.com/api/v1/licenses/deactivate
METHOD
POST
PARAMETERS
_api_key
license_key
EXAMPLE JSON RESPONSE
{
  "license_key": "OWMM-QTME-MZEO-BTV5",
  "deactivated_at": “2017-04-28 14:12:43”
}
Suggest Edit