Stigg · Schema

Stigg Entitlement

A customer's entitlement to access a specific feature, including usage limits and current consumption.

FinOpsPricingBillingEntitlementsUsage-Based BillingFeature FlagsProduct-Led GrowthSubscriptionsSaaSGraphQLREST

Properties

Name Type Description
featureId string Identifier of the feature being checked.
isGranted boolean Whether the customer has access to this feature.
usageLimit integernull Maximum allowed usage within a reset period. Null means unlimited.
currentUsage integernull Current usage count within the active reset period.
resetPeriod stringnull Period when usage resets.
View JSON Schema on GitHub

JSON Schema

stigg-entitlement-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.stigg.io/schema/entitlement",
  "title": "Stigg Entitlement",
  "description": "A customer's entitlement to access a specific feature, including usage limits and current consumption.",
  "type": "object",
  "properties": {
    "featureId": {
      "type": "string",
      "description": "Identifier of the feature being checked.",
      "examples": ["feature-api-calls", "feature-export"]
    },
    "isGranted": {
      "type": "boolean",
      "description": "Whether the customer has access to this feature.",
      "examples": [true, false]
    },
    "usageLimit": {
      "type": ["integer", "null"],
      "description": "Maximum allowed usage within a reset period. Null means unlimited.",
      "examples": [1000, null]
    },
    "currentUsage": {
      "type": ["integer", "null"],
      "description": "Current usage count within the active reset period.",
      "examples": [247]
    },
    "resetPeriod": {
      "type": ["string", "null"],
      "description": "Period when usage resets.",
      "enum": ["MONTHLY", "WEEKLY", "DAILY", "HOURLY", null],
      "examples": ["MONTHLY"]
    }
  },
  "required": ["featureId", "isGranted"]
}