Skip to main content
Version: Node SDK

Get All Licenses

Returns a list of all the licenses created by your Salable organization

Code Sample

import { Salable } from '@salable/node-sdk';

const salable = new Salable('{{API_KEY}}', 'v2');

const licenses = await salable.licenses.getAll();

Parameters

options

Type: GetLicenseOptions

OptionTypeDescriptionRequired
statusstringThe status of the created license, e.g. "ACTIVE" "TRIALING"
cursorstringCursor value, used for pagination
takenumberThe amount of licenses to fetch
subscriptionUuidstringThe UUID of the subscription to filter by
granteeIdstringThe grantee ID to filter by
planUuidstringThe UUID of the plan to filter by
productUuidstringThe UUID of the product to filter by

Return Type

For more information about this request see our API documentation on License Object