{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-add-on-input-dto-schema.json",
  "title": "AddOnInputDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-onetimeaddons-api-api-openapi.yml#/components/schemas/AddOnInputDto",
  "type": "object",
  "properties": {
    "variantId": {
      "type": "string"
    },
    "quantity": {
      "type": "number"
    },
    "subscriptionId": {
      "type": "string"
    },
    "upcomingOrderDate": {
      "format": "date-time",
      "type": "string",
      "description": "The date of upcoming order",
      "default": "2023-01-01T00:00:00.000Z"
    },
    "modifierType": {
      "type": "string",
      "enum": [
        "PERCENTAGE",
        "AMOUNT",
        "FIXED_AMOUNT"
      ],
      "description": "Type of discount: PERCENTAGE or FIXED_AMOUNT"
    },
    "discount": {
      "type": "number",
      "description": "Discount amount. If modifierType is PERCENTAGE, this is a percentage (0-100). If FIXED_AMOUNT, this is the amount in currency."
    },
    "variantPriceOverride": {
      "type": "number",
      "description": "Override price for the variant, denominated in the subscription contract's currency. For merchants whose shop currency equals the contract currency this is the catalog price; on non-USD contracts it is NOT the Shopify catalog price. If specified, this will be used instead of modifierType and discount."
    }
  },
  "required": [
    "variantId",
    "quantity",
    "subscriptionId",
    "upcomingOrderDate"
  ]
}