import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const addon = await client.v1.addons.archive('x');
console.log(addon.data);{
"data": {
"id": "addon-extra-seats",
"displayName": "Extra Seats",
"description": "Additional team member seats",
"productId": "product-starter",
"status": "PUBLISHED",
"pricingType": "PAID",
"billingId": "price_1234567890",
"versionNumber": 1,
"isLatest": true,
"entitlements": [
{
"type": "FEATURE",
"id": "feature-advanced-analytics"
},
{
"type": "CREDIT",
"id": "api-calls"
}
],
"metadata": {},
"createdAt": "2026-04-11T00:27:53.692Z",
"updatedAt": "2026-03-16T06:37:21.164Z",
"maxQuantity": 100,
"dependencies": [
"addon-premium-support"
]
}
}Archives an addon, preventing it from being used in new subscriptions.
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const addon = await client.v1.addons.archive('x');
console.log(addon.data);{
"data": {
"id": "addon-extra-seats",
"displayName": "Extra Seats",
"description": "Additional team member seats",
"productId": "product-starter",
"status": "PUBLISHED",
"pricingType": "PAID",
"billingId": "price_1234567890",
"versionNumber": 1,
"isLatest": true,
"entitlements": [
{
"type": "FEATURE",
"id": "feature-advanced-analytics"
},
{
"type": "CREDIT",
"id": "api-calls"
}
],
"metadata": {},
"createdAt": "2026-04-11T00:27:53.692Z",
"updatedAt": "2026-03-16T06:37:21.164Z",
"maxQuantity": 100,
"dependencies": [
"addon-premium-support"
]
}
}