{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-create-promotion-code-body-schema.json",
  "title": "CreatePromotionCodeBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-coupons-api-openapi.yml#/components/schemas/CreatePromotionCodeBody",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "minLength": 1
    },
    "maxRedemptions": {
      "type": "integer",
      "exclusiveMinimum": 0
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 expiry for the promotion code."
    },
    "firstTimeTransaction": {
      "type": "boolean"
    },
    "minimumAmount": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "minimumAmountCurrency": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}