Skip to main content

Cancel a license

DELETE 

https://api.freemius.com/v1/products/{product_id}/licenses/{license_id}.json

Auth:Bearer TokenSCOPE: PRODUCT

Product-scoped API tokens allow you to operate on the product itself. This token usually allows read-only access to the product configuration and write access to several operations on subscriptions, customers, payments, and more. For most SaaS or app integrations, this is the token you will need.

  1. Go to the Freemius Developer Dashboard.
  2. Open the Settings page of the relevant product.
  3. Click the API & Keys tab.
  4. Copy the API Bearer Authorization Token from the UI.

Cancel or delete a license. The Delete action is irreversible and will remove the license from the system.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234
    license_id integer<int64>required

    The ID of the License.

    Possible values: >= 1

    Example: 1234

Query Parameters

    delete boolean

    (optional) Whether to delete the license. If not true then the license is cancelled.

    Example: true
    include_bundle boolean

    (optional) Whether to include the bundle license in the deletion or delete the main license only.

    Example: true
    fields string

    Comma separated list of fields to return in the response. If not specified, all fields are returned.

    Example: id,name,slug

Responses

A license represents authorization to use available features of the product.

We use essential cookies to enable our site to function. With your consent, we also use analytics and advertising cookies to understand how visitors interact with our site and to improve our services.
Learn More