{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-generate-codes-request-schema.json",
  "title": "GenerateCodesRequest",
  "description": "bulk one-time codes (count) or a single custom promo code (code)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-admin-api-openapi.yml#/components/schemas/GenerateCodesRequest",
  "properties": {
    "count": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Count",
      "default": 1
    },
    "code": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Code"
    },
    "grant_days": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Grant Days"
    },
    "max_uses": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Uses"
    }
  },
  "type": "object"
}