import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const product = await client.v1.products.archiveProduct('x');
console.log(product.data);
Archives a product, preventing new subscriptions. All plans and addons are archived.
POST
/
api
/
v1
/
products
/
{id}
/
archive
JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const product = await client.v1.products.archiveProduct('x');
console.log(product.data);