Skip to main content
Version: v3.0.0

Create License

This method will create a new ad hoc license to allow Specific IDs to use your product.

Code Sample

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

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

const license = await salable.licenses.create({
planUuid: '{{PLAN_UUID}}',
member: 'orgId_1234',
granteeId: 'userId-1234',
});

Parameters

planUuid (required)

Type: string

uuid of the Plan you wish to create the License on


granteeIds (required)

Type: string[]

A String array of the grantee Ids you wish to check against

Return Type

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