{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meet-align-com/json-schema/meet-align-com-coupon-body-schema.json",
  "title": "CouponBody",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/meet-align-com-api-openapi.json#/components/schemas/CouponBody",
  "properties": {
    "code": {
      "type": "string",
      "maxLength": 32,
      "minLength": 3,
      "title": "Code"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "discountType": {
      "type": "string",
      "enum": [
        "percent",
        "amount"
      ],
      "title": "Discounttype"
    },
    "discountValue": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Discountvalue"
    },
    "duration": {
      "type": "string",
      "enum": [
        "once",
        "repeating",
        "forever"
      ],
      "title": "Duration",
      "default": "once"
    },
    "durationMonths": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 60.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Durationmonths"
    },
    "plans": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "enum": [
              "team",
              "business"
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Plans"
    },
    "maxRedemptions": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Maxredemptions"
    },
    "startsAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Startsat"
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expiresat"
    },
    "teamId": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Teamid"
    }
  },
  "type": "object",
  "required": [
    "code",
    "discountType",
    "discountValue"
  ]
}