# Stigg: API Reference > Stigg is a subscription and entitlement management platform for SaaS companies. Model pricing with plans, add-ons, credits, and usage-based billing; provision customers and subscriptions; enforce feature access; render pricing tables, paywalls, and customer portals; and integrate with Stripe, Zuora, HubSpot, Salesforce, and AWS Marketplace. Available as backend SDKs (Node.js, Python, Ruby, Go, Java, .NET), frontend SDKs (React, Vue, Next.js), GraphQL API, and REST API. ## API Reference - [API Reference / REST (176 pages)](https://docs.stigg.io/_llms/api-reference/rest.txt): Get started, Essentials, SDK reference, CLI reference, SDK documentation, Subscriptions, Bulk Import, Usage, Coupons, Products, Features, Addons, Plans, Promotional Entitlements, Customers, Customer Integrations, Data Export, Entitlements, Plan Entitlements, Addon Entitlements, Credit grants, Credit consumption, Credit reservations, Credit usage, Auto recharge, Custom currencies, Credit ledger, Contracts, Invoices, Governance Entity Types, Governance Entity Types (v1-beta), Governance Entities, Governance Entities (v1-beta), Governance Entity Entitlements, Governance Assignments (v1-beta), Governance Hierarchy, Governance Entitlements Check (v1-beta). ### Overview - [API Reference](https://docs.stigg.io/api-and-sdks/api-reference/overview.md) ### GraphQL #### Get started - [Introduction](https://docs.stigg.io/api-and-sdks/api-reference/graphql/introduction.md) #### Essentials - [Authentication](https://docs.stigg.io/api-and-sdks/api-reference/graphql/authentication.md): Authenticate GraphQL API requests with Stigg API keys - [Rate Limits](https://docs.stigg.io/api-and-sdks/integration/graphql/rate-limits.md) - [Access enforcement at scale](https://docs.stigg.io/api-and-sdks/api-reference/graphql/using-at-scale.md): How to handle high-volume entitlement checks without adding latency or GraphQL API overhead #### SDK reference - [Agent SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/agent-sdk.md): Constructor, methods, context fields and return types of the Stigg Agent SDK. ##### Backend - [Node.js SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/node.md) - [Python SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/python.md) - [Go SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/go.md) - [Java SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/java.md) - [Ruby SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/ruby.md) - [.NET SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/dotnet.md) - [Sidecar SDK](https://docs.stigg.io/api-and-sdks/references/sdk/backend/graphql/sidecar.md) ##### Frontend - [JavaScript SDK](https://docs.stigg.io/api-and-sdks/references/sdk/frontend/javascript.md) - [React SDK](https://docs.stigg.io/api-and-sdks/references/sdk/frontend/react.md) - [Vue.js SDK](https://docs.stigg.io/api-and-sdks/references/sdk/frontend/vue.md) - [Embed SDK](https://docs.stigg.io/api-and-sdks/references/sdk/frontend/embed.md) #### SDK documentation ##### Backend - [Backend](https://docs.stigg.io/api-and-sdks/integration/backend.md) - [Customer management](https://docs.stigg.io/api-and-sdks/integration/backend/customers.md): Provision, update, retrieve, and archive customers using Stigg backend SDKs. - [Subscription management](https://docs.stigg.io/api-and-sdks/integration/backend/subscriptions.md): Provision, update, cancel, list, and migrate subscriptions using Stigg backend SDKs. - [Entitlement checks](https://docs.stigg.io/api-and-sdks/integration/backend/entitlements.md): Check feature access and retrieve entitlements for customers using Stigg backend SDKs. - [Usage, billing & credits](https://docs.stigg.io/api-and-sdks/integration/backend/usage-and-billing.md): Report usage, estimate costs, manage credits, promotions, and coupons using Stigg backend SDKs. - [Sidecar](https://docs.stigg.io/api-and-sdks/integration/backend/sidecar.md) ##### Frontend - [JavaScript](https://docs.stigg.io/api-and-sdks/integration/frontend/javascript.md) - [React](https://docs.stigg.io/api-and-sdks/integration/frontend/react.md) - [Vue.js](https://docs.stigg.io/api-and-sdks/integration/frontend/vuejs.md) - [Next.js](https://docs.stigg.io/api-and-sdks/integration/frontend/nextjs.md) - [Webflow, Wordpress and plain HTML SDK](https://docs.stigg.io/api-and-sdks/integration/frontend/html.md) - [Hardening client-side access](https://docs.stigg.io/api-and-sdks/integration/frontend/hardening-client-side-access.md) #### API reference - [Apollo Studio](https://docs.stigg.io/api-and-sdks/api-reference/graphql/reference.md): Browse the full GraphQL schema and try queries live in Apollo Studio ### Webhooks #### Get started - [Webhook Events](https://docs.stigg.io/api-and-sdks/api-reference/webhooks/events.md) #### Products - [Product created](https://docs.stigg.io/api-reference/products/product-created.md): Fired when a new product is created. Sync product catalog and defaults. - [Product updated](https://docs.stigg.io/api-reference/products/product-updated.md): Fired when any property of a product changes. Keep catalogs and defaults in sync. - [Product deleted](https://docs.stigg.io/api-reference/products/product-deleted.md): Fired when a product is archived/deleted. Consider soft-delete locally to preserve reporting. #### Plans - [Plan created](https://docs.stigg.io/api-reference/plans/plan-created.md): Fired when a new plan is created. Sync plan catalogs and prices. - [Plan updated new version published](https://docs.stigg.io/api-reference/plans/plan-updated-new-version-published.md): Fired when a new version of a plan is published. Update pricing, entitlements, and surfaces that depend on plan metadata. - [Plan deleted](https://docs.stigg.io/api-reference/plans/plan-deleted.md): Fired when a plan is deleted. Consider soft-deleting locally to preserve reporting continuity. #### Add-ons - [Add on created](https://docs.stigg.io/api-reference/add-ons/add-on-created.md): Fired when a new add-on is created. Sync add-on catalog and pricing. - [Add on updated new version published](https://docs.stigg.io/api-reference/add-ons/add-on-updated-new-version-published.md): Fired when a new version of an add-on is published. Update pricing and entitlements. - [Add on deleted](https://docs.stigg.io/api-reference/add-ons/add-on-deleted.md): Fired when an add-on is deleted. Consider soft-delete locally to keep analytics intact. #### Features - [Feature created](https://docs.stigg.io/api-reference/features/feature-created.md): Fired when a new feature is created. Use it to mirror feature catalogs, seed entitlement rules, or audit changes. - [Feature updated](https://docs.stigg.io/api-reference/features/feature-updated.md): Fired when any property of a feature changes. Reconcile diffs to keep downstream systems up to date. - [Feature deleted](https://docs.stigg.io/api-reference/features/feature-deleted.md): Fired when a feature is deleted. Consider soft-deleting locally to preserve historical analytics. #### Feature Groups - [Feature group created](https://docs.stigg.io/api-reference/feature-groups/feature-group-created.md): Fired when a new feature group is created. Use it to sync group structures, trigger automations, or update internal catalogs. - [Feature group updated](https://docs.stigg.io/api-reference/feature-groups/feature-group-updated.md): Fired when a feature group is modified (e.g., name, features, or metadata changes). Sync external systems and re-evaluate dependencies. - [Feature group archived](https://docs.stigg.io/api-reference/feature-groups/feature-group-archived.md): Fired when a feature group is archived. Stop exposing it in UI or provisioning new instances. - [Feature group unarchived](https://docs.stigg.io/api-reference/feature-groups/feature-group-unarchived.md): Fired when a previously archived feature group is restored to active state. Useful for re-enabling group-based access or syncing restored items. #### Coupons - [Coupon created](https://docs.stigg.io/api-reference/coupons/coupon-created.md): Fired when a coupon is created. Sync discount catalog to billing/CRM. - [Coupon updated](https://docs.stigg.io/api-reference/coupons/coupon-updated.md): Fired when a coupon is updated. Keep discounts in sync across systems and UIs. - [Coupon archived](https://docs.stigg.io/api-reference/coupons/coupon-archived.md): Fired when a coupon is archived. Stop applying it to new checkouts. #### Customers - [Customer created](https://docs.stigg.io/api-reference/customers/customer-created.md): Fired when a new customer is created. Create or map CRM records and billing profiles. - [Customer updated](https://docs.stigg.io/api-reference/customers/customer-updated.md): Fired when any property of a customer changes. Sync to CRM/Billing. - [Customer payment failed](https://docs.stigg.io/api-reference/customers/customer-payment-failed.md): Fired when a charge attempt fails. Start dunning, notify finance, or pause service. - [Customer deleted](https://docs.stigg.io/api-reference/customers/customer-deleted.md): Fired when a customer is deleted. Consider anonymization vs hard delete for compliance. #### Subscriptions - [Subscription created](https://docs.stigg.io/api-reference/subscriptions/subscription-created.md): Fired when a new subscription is created. Provision access, entitlements, and billing hooks. - [Subscription updated](https://docs.stigg.io/api-reference/subscriptions/subscription-updated.md): Fired when any property of a subscription is updated. Sync access state and billing data. - [Subscription canceled](https://docs.stigg.io/api-reference/subscriptions/subscription-canceled.md): Fired when a subscription is canceled. Use `cancelReason` to determine automation (access removal timing, downgrade paths, or retention outreach). - [Subscription expired non recurring](https://docs.stigg.io/api-reference/subscriptions/subscription-expired-non-recurring.md): Fired when a non-recurring subscription expires. Remove access and notify the user. - [Billing month ends soon](https://docs.stigg.io/api-reference/subscriptions/billing-month-ends-soon.md): Fired 1 hour before the subscription's billing month ends (monthly cadence for both monthly/annual). Use it for smart, usage-aware upgrade prompts before monthly anchor resets. - [Spend limit exceeded](https://docs.stigg.io/api-reference/subscriptions/spend-limit-exceeded.md): Fired when a subscription crosses 80% or 100% spend thresholds. Trigger alerts, upsell flows, or auto-upgrades (as applicable). - [Subscription creation failed](https://docs.stigg.io/api-reference/subscriptions/subscription-creation-failed.md): Fired when a subscription creation attempt fails. Inspect `input` and `error`. #### Trials - [Trial started](https://docs.stigg.io/api-reference/trials/trial-started.md): Fired when a trial starts. Provision trial entitlements and onboarding flows. - [Trial ends soon](https://docs.stigg.io/api-reference/trials/trial-ends-soon.md): Fired 7 days before a trial expires. Send upgrade CTAs and in-app prompts. - [Trial converted](https://docs.stigg.io/api-reference/trials/trial-converted.md): Fired when a trial converts to an active paid subscription. Begin billing & full entitlements. - [Trial expired](https://docs.stigg.io/api-reference/trials/trial-expired.md): Fired when a trial expires without conversion. Trigger win-back flows or downgrade access. #### Credit grants - [Credit grant created](https://docs.stigg.io/api-reference/credit-grants/credit-grant-created.md): Fired when a new credits grant (block) is created. Use it to mirror grants, seed balances, or audit changes. - [Credit grant updated](https://docs.stigg.io/api-reference/credit-grants/credit-grant-updated.md): Fired when an existing credits grant changes (e.g., amount, dates, cost). Use it to keep downstream records in sync. - [Credit grant balance low](https://docs.stigg.io/api-reference/credit-grants/credit-grant-balance-low.md): Fired when a specific grant's remaining balance falls below a configured threshold. Thresholds are configurable, allowing multiple alert levels (e.g., 80%, 50%, 20%). Useful for targeted alerts, "use-it-or-lose-it" nudges when expiry is near, or auto top-up logic at the grant level. - [Credit grant depleted](https://docs.stigg.io/api-reference/credit-grants/credit-grant-depleted.md): Fired when a specific grant's balance reaches zero. Use to trigger refill workflows or disable features tied to that grant. - [Credit grant expired](https://docs.stigg.io/api-reference/credit-grants/credit-grant-expired.md): Fired when a grant reaches its expiration date. Use to notify customers and adjust available balances. #### Credit balance - [Credit balance low](https://docs.stigg.io/api-reference/credit-balance/credit-balance-low.md): Fired when the credit balance falls below one of the configured thresholds. Thresholds are configured at the environment level, allowing you to set multiple alert levels (e.g., 80%, 50%, 20%). Useful for proactive low-balance notifications, in-app warnings, and auto top-up triggers. - [Credit balance depleted](https://docs.stigg.io/api-reference/credit-balance/credit-balance-depleted.md): Fired when the credit balance reaches zero. Use to halt consumption, enforce hard limits, or prompt a top-up flow. #### Credit auto recharge - [Automatic recharge operation attempted](https://docs.stigg.io/api-reference/credit-auto-recharge/automatic-recharge-operation-attempted.md): Fired when an automatic recharge operation is attempted (both success and failure cases). - [Automatic recharge spend limit threshold reached](https://docs.stigg.io/api-reference/credit-auto-recharge/automatic-recharge-spend-limit-threshold-reached.md): Fired when the monthly spend limit is approached or exceeded (at 80%, 90%, or 100% thresholds). Threshold values: - 80 — Approaching limit warning - 90 — Near limit warning - 100 — Limit exceeded - [Automatic recharge configuration changed](https://docs.stigg.io/api-reference/credit-auto-recharge/automatic-recharge-configuration-changed.md): Fired when the auto-recharge configuration is updated (enabled/disabled by user or system). `changedBy` values: - USER — Configuration changed via UI/API - SYSTEM — Automatically disabled due to payment failure or other system event #### Entitlements - [Entitlements updated](https://docs.stigg.io/api-reference/entitlements/entitlements-updated.md): Fired when the customer’s effective entitlements change. Recompute access gates. - [Entitlement usage exceeded](https://docs.stigg.io/api-reference/entitlements/entitlement-usage-exceeded.md): Fired when usage crosses configured thresholds. Useful for alerts or auto-upgrades. #### Promotional entitlements - [Promotional entitlement granted](https://docs.stigg.io/api-reference/promotional-entitlements/promotional-entitlement-granted.md): Fired when a promotional entitlement is granted to a customer. - [Promotional entitlement updated](https://docs.stigg.io/api-reference/promotional-entitlements/promotional-entitlement-updated.md): Fired when a promotional entitlement changes (limits, visibility, or period). - [Promotional entitlement revoked](https://docs.stigg.io/api-reference/promotional-entitlements/promotional-entitlement-revoked.md): Fired when a promotional entitlement is revoked from a customer. - [Promotional entitlement ends soon](https://docs.stigg.io/api-reference/promotional-entitlements/promotional-entitlement-ends-soon.md): Fired **7 days** before a promotional entitlement expires. Use it to notify users, extend promos, or trigger upgrade CTAs. Payload shape matches other promotionalEntitlement events. - [Promotional entitlement expired](https://docs.stigg.io/api-reference/promotional-entitlements/promotional-entitlement-expired.md): Fired when a promotional entitlement expires. Remove bonus access and notify the user. #### Third-party sync - [Third party sync failed](https://docs.stigg.io/api-reference/third-party-sync/third-party-sync-failed.md): Fired when syncing an entity to an integrated app fails. Inspect `error` and retry logic. - [Data export sync failed](https://docs.stigg.io/api-reference/third-party-sync/data-export-sync-failed.md): Fired when a data export transfer to a destination fails, fully or partially. `data.failureType` tells them apart: `full` means the transfer failed, `partial` means some models failed while the rest synced or had nothing new. Filter on `full` if you only want hard failures. Inspect `data.errorMessag… #### Entity types - [Entity type created](https://docs.stigg.io/api-reference/entity-types/entity-type-created.md): Fired when a governance entity type is created. - [Entity type updated](https://docs.stigg.io/api-reference/entity-types/entity-type-updated.md): Fired when a governance entity type is updated, archived, or restored. #### Entities - [Entity created](https://docs.stigg.io/api-reference/entities/entity-created.md): Fired when a governance entity is created for a customer. - [Entity updated](https://docs.stigg.io/api-reference/entities/entity-updated.md): Fired when a governance entity's metadata changes, or when the entity is archived or restored. #### Entity entitlements - [Entity entitlement created](https://docs.stigg.io/api-reference/entity-entitlements/entity-entitlement-created.md): Fired when a usage limit is set on an entity for a feature or custom currency. - [Entity entitlement updated](https://docs.stigg.io/api-reference/entity-entitlements/entity-entitlement-updated.md): Fired when an entity entitlement's usage limit or reset period changes. - [Entity entitlement usage exceeded](https://docs.stigg.io/api-reference/entity-entitlements/entity-entitlement-usage-exceeded.md): Fired when reported usage crosses a usage threshold on an entity entitlement. One event covers every threshold crossed by the same report. ## OpenAPI Specs - [stigg-api.documented](/openapi/stigg-api.documented.yml) - [stigg-webhooks](/openapi/stigg-webhooks.yaml)