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.
Recurring credit grants in plans and add-onsVendors can now configure recurring credit grants as entitlements that can be directly attached to any plan or add-on in Stigg. Currently, monthly and yearly recurring grants without rollover are supported.
- Added: Support for plan-level and add-on-level credit entitlements — recurring credit grants that are automatically issued and reset each billing period when a customer subscribes.
- Added: Credit entitlements are reflected in
getCreditEntitlement()alongside all other active grants (top-ups, promotional credits). - Added:
entitlementsin subscription provisioning now accepts credit entitlement configurations for custom plans. - Recurring grants work seamlessly with existing one-time top-ups and prepaid credit purchases.
- Added:
billingCycleAnchorproperty when provisioning and updating subscriptions. AcceptsSubscriptionBillingCycleAnchor.UNCHANGED(default) to keep the existing billing cycle anchor, orSubscriptionBillingCycleAnchor.NOWto reset it to the current timestamp.
- ⚠️ Deprecated:
getCreditBalance()(please usegetCreditEntitlement()instead).getCreditEntitlement()reads directly from the SDK’s local cache, significantly reducing latency and removing rate-limit concerns. It returns the same data:currentBalance,totalConsumed,totalGranted, andcurrency.
- Added:
getCreditEntitlement()method for low-latency retrieval of customer credit balance from the local cache. - Added: Support for provisioning subscriptions with variable recurring credit grant entitlements.
- Added:
includeInactiveSubscriptionsparameter ongetUsageHistoryV2. When set totrue, usage history is returned regardless of whether the customer currently has an active subscription. If they do have an active subscription, the response also includes amarkersarray containing the subscription’s usage reset timestamps.
- Enhanced
getCreditEntitlementto return currency information.
- Added compatibility with persistent-cache-service v3.0.0 and its new Redis data structure for credit entitlements.
- Note: This version must be deployed before upgrading persistent-cache-service to v3.0.0. See the persistent-cache-service v3.0.0 changelog for migration steps.
- Added: Support for configuring and managing credit auto-recharge settings, including trigger balance, target top-up amount, and monthly spend limit.
- Breaking change: Entitlements retrieval logic now correctly identifies the underlying cause for missing entitlements, whether due to no active subscription, a missing customer, or no assigned entitlements.
- Note: If using a Persistent Caching Service, it must be updated before upgrading the Sidecar to ensure data integrity.
Migration steps
- Upgrade the Persistent Caching Service image to version
2.40.1or later. - Upgrade the Node SDK to version
4.0.0or later.
- Added
getCreditLedgerandgetCreditUsagemethods.
- Added void credit grant
voidCreditGrant.
- Added credit balance subscription handling with automatic entitlement updates, expiration checks, and cache mapping for credit rate and validity.
- Added credit rate mapping.
- Added
awsMarketplaceCustomerIdto update and provision customers.
- Updated SDK to prevent dependency on compromised NPM packages
- Added:
grantPromotionalEntitlementsGroupor granting a promotional entitlements group - all entitlements that are not already granted to a customer, need to be included in the request. - Added:
revokePromotionalEntitlementsGroupfor revoking all of the entitlements of a group, unless they are a part of a different group. - Added:
unlinkPromotionalEntitlementsGroupfor removing the references of the group from promotional entitlements that are a part of it, while keep granting access to those entitlements.
- Added:
CancelSubscription.awaitSubscriptionCancellationfor controlling whether to wait for confirmation from billing solutions that are integrated with Stigg before marking subscription as canceled in Stigg
- Added:
AccessDeniedReason.Revokedfor determining when an entitlement has been explicitly revoked.
- Added:
getEntitlementmethod - a unified way to check any type of feature entitlement (boolean, numeric, or metered) that automatically returns the appropriate entitlement type based on the feature configuration
- Added:
SubscriptionBillingInfo.prorationBehaviorfor controlling the proration behavior when provisioning and updating subscriptions. The new parameter accepts the following value CREATE_PRORATIONS- bill for proration immediately. This is the default behavior.INVOICE_IMMEDIATELY- include prorated charges in the upcoming invoice.NONE- don’t prorate subscription changes.
- Added:
getSubscriptionsendpoint that allows retrieving all of customers’ subscriptions
- Added:
SubscriptionInvoiceFragment.attemptCount
- Added: Ability to pass taxId on
updateCustomer.billingInfo.taxIds
- Added:
salesforceIdtoprovisionCustomer,updateCustomer,provisionSubscription,importCustomerBulkandimportSubscriptionBulk
- Added: offline mode
Coupon discount changes:
- Added:
SubscriptionCouponDiscountInput.amounts_off - Added:
SubscriptionCouponDiscountInput.description - Added:
SubscriptionCouponDiscountInput.duration_in_months - Added:
SubscriptionCouponDiscountInput.name - Added:
SubscriptionCouponDiscountInput.percent_off
- Added:
getUsageHistoryV2 - ⚠️ Deprecated:
fetchUsageHistory(please usegetUsageHistoryV2instead) - Changed:
- Input Object
- New field -
groupBylist of dimensions to group usage history by.
- New field -
- Output Object
result[i].daterenamed toseries[0].point[i].timestampresult[i].valuerenamed toseries[0].point[i].valueresult[i].isResetPointrenamed toseries[0].point[i].isResetPoint- Old Value:
trueif and only if usage was reset due to periodic reset. - New Value:
trueif and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
- New field
markers- array of markers for usage reset reason (periodic change / plan transition)
- Input Object
- Added: ability to override prices when there’s a scheduled update in place
- Added:
provisionSubscription.priceOverrides - Added:
applySubscription.priceOverrides
- Added: support for price localization in fixed fee coupons
- Added:
delegateSubscriptionToCustomer() - Added:
transferSubscriptionToResource() - 🟡 Deprecated:
transferSubscription()method (please usetransferSubscriptionToResource()instead)
- Fixed: when access to entitlement was denied due to the reaching of a budget cap,
getMeteredEntitlementsreturnedAccessDeniedReason.UNSPECIFIEDinstead ofAccessDeniedReason.BudgetExceeded.
- Added: ability to estimate the subscription cost when the payment of the subscription is delegated to a different customer using:
previewSubscription.payingCustomerId,estimateSubscription.payingCustomerIdestimateSubscriptionUpdate.payingCustomerId
- Added: ability to more easily determine the usage period of metered entitlements using:
Entitlement.usagePeriodStartEntitlement.usagePeriodEnd
- 🟡 Deprecated:
Entitlement.nextResetDatefield
- Added: ability to delegate payment of a provisioned subscription to a different customer using:
provisionSubscription.payingCustomerIdapplySubscription.payingCustomerIdSlimSubscriptionFragmentV2Fragment.payingCustomerFullSubscription.payingCustomer
- Added: ability to apply a coupon to a subscription using the Stigg coupon ID using:
provisionSubscription.appliedCouponapplySubscription.appliedCouponupdateSubscription.appliedCouponpreviewSubscription.appliedCouponestimateSubscription.appliedCouponestimateSubscriptionUpdate.appliedCoupon
- Changed:
UpdateSubscription.subscriptionEntitlementsdoes not require the full list of entitlements when only needing to add or update specific entitlements
- Bug fixes
- Bug fixes
- Added: ability to get the list of active subscriptions from Edge using
getActiveSubscriptionsList()
- Added: ability to get the details of a specific subscription using
getSubscription()
- Added: ability to ignore customer and subscriptions that have been updated since the last import by passing
ImportCustomer.updatedAtandImportSubscriptionInput.updatedAt
- Added: ability to provision backdated subscriptions using
SubscriptionBillingInfo.isBackdated
- Added: ability to determine the billing period of a specific price using
Price.billingCadence
- Added: ability to determine customer’s AWS Marketplace ID using
SlimCustomer.awsMarketplaceCustomerId
- Added: ability to remove a payment method from a customer using
detachCustomerPaymentMehod()
- Added: ability to get plans that are not visible to customers using
GetPaywall.includeHiddenPlans
