Skip to main content
This page documents the common enum types used across the Stigg GraphQL API.

Subscription Enums

SubscriptionStatus

Status of a customer subscription.
ValueDescription
ACTIVESubscription is active and billing
IN_TRIALSubscription is in trial period
CANCELEDSubscription has been cancelled
EXPIREDSubscription has expired
NOT_STARTEDSubscription is scheduled but not started
PAYMENT_PENDINGAwaiting payment confirmation

SubscriptionCancelReason

Reason why a subscription was cancelled.
ValueDescription
ImmediateCancelled immediately by request
ScheduledCancellationScheduled to cancel at end of period
TrialEndedTrial period ended without conversion
TrialConvertedTrial converted to paid (old subscription cancelled)
UpgradeOrDowngradePlan was changed
ExpiredSubscription reached its end date
CustomerArchivedCustomer was archived
CancelledByBillingCancelled by billing provider
AutoCancellationRuleCancelled by auto-cancellation rule
PendingPaymentExpiredPayment was not completed
DetachBillingBilling integration was detached

SubscriptionCancellationTime

When a subscription cancellation takes effect.
ValueDescription
IMMEDIATECancel immediately
END_OF_BILLING_PERIODCancel at end of billing period
SPECIFIC_DATECancel on a specific date

Billing Enums

BillingModel

How pricing is calculated.
ValueDescription
FLAT_FEEFixed price regardless of usage
PER_UNITPrice per unit (e.g., per seat)
USAGE_BASEDPrice based on metered usage
CREDIT_BASEDPrice based on credit consumption
MINIMUM_SPENDMinimum spend commitment

BillingPeriod

Frequency of billing.
ValueDescription
MONTHLYBilled every month
ANNUALLYBilled every year

BillingCadence

When billing occurs within the period.
ValueDescription
IN_ADVANCEBilled at the start of the period
IN_ARREARSBilled at the end of the period

TiersMode

How tiered pricing is applied.
ValueDescription
VOLUMEAll units are charged at the tier rate for the total volume
GRADUATEDEach tier has its own rate, applied progressively

PaymentCollection

Payment collection status.
ValueDescription
NOT_REQUIREDNo payment required
PROCESSINGPayment is being processed
PAIDPayment completed
FAILEDPayment failed
ACTION_REQUIREDCustomer action required

Package Enums

PackageStatus

Publication status of plans and addons.
ValueDescription
DRAFTPackage is in draft, not available for subscription
PUBLISHEDPackage is published and available
ARCHIVEDPackage is archived and no longer available

PricingType

Type of pricing for a package.
ValueDescription
FREENo charge
PAIDRequires payment
CUSTOMCustom pricing (negotiated)

Feature Enums

FeatureType

Type of feature.
ValueDescription
BOOLEANFeature is either enabled or disabled
NUMBERFeature has a numeric limit or quantity
ENUMFeature has a set of possible values

FeatureStatus

Status of a feature.
ValueDescription
ACTIVEFeature is active
INACTIVEFeature is inactive

MeterType

Type of metering for usage tracking.
ValueDescription
FLUCTUATINGValue can increase or decrease
INCREMENTALValue only increases
NONENo metering

Entitlement Enums

EntitlementResetPeriod

How often usage resets.
ValueDescription
HOURResets hourly
DAYResets daily
WEEKResets weekly
MONTHResets monthly
YEARResets yearly

AccessDeniedReason

Reason why access to a feature was denied.
ValueDescription
CustomerNotFoundCustomer does not exist
CustomerIsArchivedCustomer is archived
CustomerResourceNotFoundResource not found
FeatureNotFoundFeature does not exist
FeatureTypeMismatchWrong entitlement type requested
NoActiveSubscriptionNo active subscription
NoFeatureEntitlementInSubscriptionFeature not included in subscription
RequestedUsageExceedingLimitUsage would exceed limit
RequestedValuesMismatchValues don’t match allowed values
BudgetExceededUsage budget exceeded
InsufficientCreditsNot enough credits
RevokedEntitlement was revoked
UnknownUnknown reason

Coupon Enums

CouponType

Type of discount.
ValueDescription
PERCENTAGEDiscount is a percentage off
FIXEDDiscount is a fixed amount

CouponStatus

Status of a coupon.
ValueDescription
ACTIVECoupon is active and can be used
ARCHIVEDCoupon is no longer available

CouponSource

Where the coupon was created.
ValueDescription
STIGGCreated in Stigg
BILLINGSynced from billing provider

Credit Enums

CreditGrantType

Type of credit grant.
ValueDescription
PROMOTIONALFree promotional credits
PAIDCredits purchased by customer
ROLLOVERCredits rolled over from previous period
SUBSCRIPTIONCredits from subscription

CreditGrantStatus

Status of a credit grant.
ValueDescription
PENDINGGrant is pending activation
ACTIVECredits are available
CONSUMEDAll credits consumed
EXPIREDGrant has expired
VOIDEDGrant was voided

CreditGrantCadence

When credits are granted.
ValueDescription
BEGINNING_OF_BILLING_PERIODAt start of billing period
MONTHLYEvery month

Plan Change Enums

PlanChangeType

Type of plan change.
ValueDescription
UPGRADEUpgrading to a higher tier plan
DOWNGRADEDowngrading to a lower tier plan
NONENo change (same plan)

Widget Enums

WidgetType

Types of customer-facing widgets.
ValueDescription
PAYWALLPricing/paywall widget
CUSTOMER_PORTALCustomer portal widget
CHECKOUTCheckout widget