Check License
Retrieves the capabilities the grantee(s) have access to.
Code Sample
import { Salable } from '@salable/node-sdk';
const salable = new Salable('{{API_KEY}}', 'v2');
const check = await salable.licenses.check({
productUuid: 'product1',
granteeIds: ['grantee_1', 'grantee_2'],
});
Parameters
checkLicenseParams (required)
Type: CheckLicenseInput
Option | Type | Description | Required |
---|---|---|---|
grantproductUuideeId | string | The UUID of the product | ✅ |
granteeIds | string[] | An array of grantee IDs | ✅ |
grace | number | Optional grace period to filter by | ❌ |
Return Type
For more information about this request see our API documentation on License Check Object