Stigg · Schema

Coupon

A Stigg coupon providing a percentage or fixed discount on a subscription or customer account.

FinOpsPricingBillingEntitlementsUsage-Based BillingFeature FlagsProduct-Led GrowthSubscriptionsSaaSGraphQLREST

Properties

Name Type Description
id string Unique coupon identifier.
name stringnull Coupon display name.
discountValue number The discount amount or percentage value.
discountType string Whether the discount is a percentage or fixed monetary amount.
currency stringnull Currency code for fixed-amount coupons (e.g., usd).
maxRedemptions integernull Maximum number of times this coupon can be redeemed. Null means unlimited.
redemptionsCount integer Number of times this coupon has been redeemed.
isArchived boolean Whether this coupon is archived and no longer usable.
createdAt string Timestamp of when the coupon was created.
updatedAt string Timestamp of when the coupon was last updated.
View JSON Schema on GitHub

JSON Schema

stigg-coupon-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.stigg.io/schemas/coupon",
  "title": "Coupon",
  "description": "A Stigg coupon providing a percentage or fixed discount on a subscription or customer account.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique coupon identifier."
    },
    "name": {
      "type": ["string", "null"],
      "description": "Coupon display name."
    },
    "discountValue": {
      "type": "number",
      "description": "The discount amount or percentage value."
    },
    "discountType": {
      "type": "string",
      "enum": ["PERCENTAGE", "FIXED"],
      "description": "Whether the discount is a percentage or fixed monetary amount."
    },
    "currency": {
      "type": ["string", "null"],
      "description": "Currency code for fixed-amount coupons (e.g., usd)."
    },
    "maxRedemptions": {
      "type": ["integer", "null"],
      "description": "Maximum number of times this coupon can be redeemed. Null means unlimited."
    },
    "redemptionsCount": {
      "type": "integer",
      "description": "Number of times this coupon has been redeemed."
    },
    "isArchived": {
      "type": "boolean",
      "description": "Whether this coupon is archived and no longer usable."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the coupon was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of when the coupon was last updated."
    }
  },
  "required": ["id", "discountValue", "discountType", "redemptionsCount", "isArchived", "createdAt", "updatedAt"]
}