Skip to main content

Cancel a license

Licenses can be cancelled with their UUIDs.

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

const salable = new Salable('your-salable-api-key');

// cancel a single license
await salable.licenses.cancel('your-license-uuid');

// cancel many licenses at once
await salable.licenses.cancelMany([
'your-license-uuid-1',
'your-license-uuid-2',
]);