Stigg · Example Payload

Stigg Check Entitlement Example

FinOpsPricingBillingEntitlementsUsage-Based BillingFeature FlagsProduct-Led GrowthSubscriptionsSaaSGraphQLREST

Stigg Check Entitlement Example is an example object payload from Stigg, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.stigg.io/graphql",
    "headers": {
      "X-API-KEY": "YOUR_STIGG_API_KEY",
      "Content-Type": "application/json"
    },
    "body": {
      "query": "query CheckEntitlement($customerId: String!, $featureId: String!) { customerEntitlement(customerId: $customerId, featureId: $featureId) { isGranted usageLimit currentUsage resetPeriod } }",
      "variables": {
        "customerId": "customer-acme-corp",
        "featureId": "feature-api-calls"
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "data": {
        "customerEntitlement": {
          "isGranted": true,
          "usageLimit": 10000,
          "currentUsage": 3247,
          "resetPeriod": "MONTHLY"
        }
      }
    }
  }
}