List Licenses

Show all licenses the requesting manager has access permissions to.

URL: /api/v1/licenses/ Method: GET

Query Parameters

Ordering

  • order_by - Which attribute to order the list by.

    • Default ordering is ascending. Make descending by prefixing the attribute name with -.

    • Example: order_by=created_at

    • Example: order_by=-created_at

Pagination

Default pagination is 20 results per page.

  • limit - Number of results to return per page.

    • Example: limit=20

  • offset - The initial index from which to return the results.

    • Example: offset=21

circle-info

The /api/v1/licenses/ endpoint has a maximum pagination limit of 100 items per request. If a higher value is specified, the API does not return an error; instead, the response is automatically capped at 100 items.

Exact Filter

  • license_key

  • active

  • order__store_id

  • order__customer_account

  • order__customer_account__name

  • order__customer_account__code

  • customer_id

  • customer_email

  • customer__account

  • customer__account__name

  • customer__account__code

  • customer__account__description

  • customer__account__phone

  • customer__account__address

  • customer__account__email

  • customer__account__reference

  • product_id

  • product_short_code

  • product_features__id

  • product__authorization_method

  • license_users__id

  • license_users__true_email

  • devices__hostname

  • devices__hardware_id

  • devices__os

  • subscription_id

  • license_template_id

  • license_template__code

  • license_user_group

Icontains Filter

circle-info

Matches records where the string value is a case-insensitive substring of the field.

  • license_key__icontains

  • order__store_id__icontains

  • order__customer_account__name__icontains

  • order__customer_account__code__icontains

  • customer_email__icontains

  • customer_company_name__icontains

  • customer_name__icontains

  • customer__reference__icontains

  • customer__account__name__icontains

  • customer__account__code__icontains

  • customer__account__description__icontains

  • customer__account__phone__icontains

  • customer__account__address__icontains

  • customer__account__email__icontains

  • customer__account__reference__icontains

  • product_name__icontains

  • license_users__true_email__icontains

  • devices__hostname__icontains

  • devices__hardware_id__icontains

  • devices__os__icontains

  • license_template__code__icontains

  • note__icontains

Startswith Filter

circle-info

Matches records where the string value is a starting substring of the field.

  • license_key__startswith

  • order__store_id__startswith

In Filter

  • product_short_code__in

  • customer_label__in

Date & Time Filters

Comparators:

  • __gt — greater than

  • __gte — greater than or equal

  • __lt — less than

  • __lte — less than or equal

  • __date__gt, __date__gte, __date__lt, __date__lte — same comparisons but applied to the date portion only

These can be applied to the following fields:

  • validity_period

  • time_activated

  • updated_at

  • created_at

Boolean filters

  • enabled

  • is_any_floating

  • is_air_gapped

  • is_bundle

  • bundle_license__isnull

  • is_trial

  • has_max_consumptions

  • is_hardware_key_auth

  • active

  • customer__account__isnull

Success Response

Code: 200 OK

Content Example:

Was this helpful?