Stigg · Schema

Stigg Customer

A Stigg customer representing a tenant or end-user organization.

FinOpsPricingBillingEntitlementsUsage-Based BillingFeature FlagsProduct-Led GrowthSubscriptionsSaaSGraphQLREST

Properties

Name Type Description
id string Unique customer identifier.
name string Customer display name.
email string Customer primary email address.
createdAt string Customer creation timestamp.
updatedAt string Last update timestamp.
subscriptions array Active subscriptions for this customer.
View JSON Schema on GitHub

JSON Schema

stigg-customer-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.stigg.io/schema/customer",
  "title": "Stigg Customer",
  "description": "A Stigg customer representing a tenant or end-user organization.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique customer identifier.",
      "examples": ["customer-acme-corp"]
    },
    "name": {
      "type": "string",
      "description": "Customer display name.",
      "examples": ["Acme Corp"]
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Customer primary email address.",
      "examples": ["[email protected]"]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Customer creation timestamp."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last update timestamp."
    },
    "subscriptions": {
      "type": "array",
      "description": "Active subscriptions for this customer.",
      "items": {
        "$ref": "#/definitions/Subscription"
      }
    }
  },
  "required": ["id"],
  "definitions": {
    "Subscription": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "status": {
          "type": "string",
          "enum": ["ACTIVE", "CANCELED", "TRIAL", "PAUSED"]
        },
        "plan": {
          "type": "object",
          "properties": {
            "id": { "type": "string" },
            "name": { "type": "string" }
          }
        }
      }
    }
  }
}