import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const planListChargesResponse of client.v1.plans.listCharges('x')) {
console.log(planListChargesResponse.id);
}{
"data": [
{
"id": "7d34cd1e-3a48-4e2d-9f9e-9aafef5b4f51",
"billingPeriod": "MONTHLY",
"billingModel": "FLAT_FEE",
"billingCadence": "RECURRING",
"billingCountryCode": null,
"billingId": "price_1234567890",
"tiersMode": null,
"tiers": null,
"price": {
"amount": 4900,
"currency": "usd"
},
"creditRate": null,
"blockSize": null,
"featureId": null,
"topUpCustomCurrencyId": null,
"minUnitQuantity": null,
"maxUnitQuantity": null,
"creditGrantCadence": null,
"crmId": null,
"crmLinkUrl": null,
"usedInSubscriptions": false,
"createdAt": "2025-10-26T10:00:00.000Z"
}
],
"pagination": {
"next": "c9b0a382-5b7d-4d32-9f62-8c4e1a7b3d9f",
"prev": "a1d4e8f2-6c3b-4a9e-b5f7-2d8c9e0f1a3b"
}
}Retrieves the list of charges configured on a plan.
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const planListChargesResponse of client.v1.plans.listCharges('x')) {
console.log(planListChargesResponse.id);
}{
"data": [
{
"id": "7d34cd1e-3a48-4e2d-9f9e-9aafef5b4f51",
"billingPeriod": "MONTHLY",
"billingModel": "FLAT_FEE",
"billingCadence": "RECURRING",
"billingCountryCode": null,
"billingId": "price_1234567890",
"tiersMode": null,
"tiers": null,
"price": {
"amount": 4900,
"currency": "usd"
},
"creditRate": null,
"blockSize": null,
"featureId": null,
"topUpCustomCurrencyId": null,
"minUnitQuantity": null,
"maxUnitQuantity": null,
"creditGrantCadence": null,
"crmId": null,
"crmLinkUrl": null,
"usedInSubscriptions": false,
"createdAt": "2025-10-26T10:00:00.000Z"
}
],
"pagination": {
"next": "c9b0a382-5b7d-4d32-9f62-8c4e1a7b3d9f",
"prev": "a1d4e8f2-6c3b-4a9e-b5f7-2d8c9e0f1a3b"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
Use this file to discover all available pages before exploring further.
Server API Key
The unique identifier of the entity
1 - 255Return items that come after this cursor
Return items that come before this cursor
Maximum number of items to return
1 <= x <= 100