Cancel a license
Licenses can be cancelled with their UUIDs.
- Node.js
- cURL
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',
]);
curl
-XPOST
-H 'x-api-key: your-salable-api-key'
-d '{ "uuids": ["your-license-uuid-1", "your-license-uuid-2"] }'
'https://api.salable.app/licenses/cancel'