Apply subscription changes for a customer Update\Provision a subscription for a customer according to the given subscription input
Create a Subscription
Canceled subscription. Throw exception on errors.
Cancel a subscription scheduled updates
The subscription id
Discards all network connections, background tasks, and other resources held by the client.
Do not attempt to use the client after calling this method.
Create a Customer.
Newly created customer. Throw exception on errors.
Create a Subscription
Newly created subscription. Throw exception on errors.
Delegates a subscription to a different customer (the paying customer of the subscription will not change)
The subscription connected to destinationResource.
Detach customer's payment method.
customer id
Updated customer. Throw exception on errors.
Estimate subscription
Preview of the subscription.
Estimate subscription update
Preview of the subscription.
Fetch customer usage history of a feature.
Array of usage history as data points.
Get customer's active subscriptions.
List of active subscriptions.
List of active subscriptions
Get boolean entitlement of feature for a customer
boolean entitlement.
Get a list of coupons
Get a Customer.
customer id
Full customer details.
Get Customer Statistics.
customer id
customer statistics.
Get entitlements per user
Get metered entitlement of feature for a customer
metered entitlement
Get numeric entitlement of feature for a customer
numeric entitlement
Get the paywall data
Get a list of products
Get subscription
subscription id
the subscription data
Import a Customer from billing integration. Private information such as email and name are not imported and needs to be send in order to be persisted in Stigg. Active billing integration is required for this functionality.
Newly created customer. Throw exception on errors.
Migrate subscription to latest plan and addons version and pricing. using SubscriptionMigrationTime.EndOfBillingPeriod is possible only if Stripe integration is enabled and will migrate the subscription in the end of the current billing period. Using Immediate will perform the migration imidietly. Default, migration will happen imidietly.
The subscription id
Preview subscription provisioning\updates
Preview of the subscription.
Create a Customer and its first subscription
Newly created customer and subscription. Throw exception on errors.
Provision a Subscription.
Provision subscription result. Throw exception on errors.
Reload entitlements of a customer or customer resource. Note: this method skips the Edge API, so use it only when you need "read-after-write" consistency after entitlements presumably have changed.
Report usage event
Report usage for metered entitlement
Report bulk of usages for metered entitlement
array of usages to report
The subscription connected to destinationResource.
Transfers a subscription to a different resource.
The subscription connected to destinationResource.
Update a Customer.
Updated customer. Throw exception on errors.
Update a Subscription
updated subscription. Throw exception on errors.
Initialize an instance of the Stigg SDK client.
client configuration object provided by the consumer.
stigg SDK instance.
Generated using TypeDoc
Stigg Node.js SDK client