{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/highlevel/json-schema/highlevel-get-rebilling-config-response-dto-schema.json",
  "title": "GetRebillingConfigResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/highlevel-app-billing-management-api-openapi.yml#/components/schemas/GetRebillingConfigResponseDTO",
  "type": "object",
  "properties": {
    "plans": {
      "description": "The rebilling plans configuration",
      "allOf": [
        {
          "$ref": "#/$defs/PlansDTO"
        }
      ]
    }
  },
  "required": [
    "plans"
  ],
  "$defs": {
    "PlansDTO": {
      "type": "object",
      "properties": {
        "subscription": {
          "description": "Subscription plans",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubscriptionPlanDTO"
          }
        },
        "usage": {
          "description": "Usage-based plans",
          "type": "array",
          "items": {
            "$ref": "#/$defs/UsagePlanDTO"
          }
        }
      },
      "required": [
        "subscription",
        "usage"
      ]
    },
    "SubscriptionPlanDTO": {
      "type": "object",
      "properties": {
        "resellingAmount": {
          "type": "number",
          "description": "The reselling amount"
        },
        "baseAmount": {
          "type": "number",
          "description": "The base amount"
        },
        "planId": {
          "type": "string",
          "description": "The plan id"
        },
        "features": {
          "description": "The features",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "paymentType": {
          "type": "string",
          "description": "The payment time"
        },
        "name": {
          "type": "string",
          "description": "The plan name"
        },
        "paymentTime": {
          "type": "string",
          "description": "The payment time"
        }
      },
      "required": [
        "resellingAmount",
        "baseAmount",
        "planId",
        "features",
        "paymentType",
        "name",
        "paymentTime"
      ]
    },
    "UsagePlanDTO": {
      "type": "object",
      "properties": {
        "productType": {
          "type": "string",
          "description": "The product type"
        },
        "productName": {
          "type": "string",
          "description": "The product name"
        },
        "usageUnit": {
          "type": "string",
          "description": "The usage unit for the meter"
        },
        "meterId": {
          "type": "string",
          "description": "The meter id"
        },
        "meterName": {
          "type": "string",
          "description": "The meter name"
        },
        "fixedPricePerUnit": {
          "type": "number",
          "description": "The fixed price per unit, applicable for fixed price type"
        },
        "priceType": {
          "type": "string",
          "description": "The price type",
          "enum": [
            "fixed",
            "dynamic"
          ]
        },
        "minPricePerUnit": {
          "type": "string",
          "description": "The min price per unit, applicable for dynamic price type"
        },
        "maxPricePerUnit": {
          "type": "string",
          "description": "The max price per unit, applicable for dynamic price type"
        },
        "executionLimitPerCycle": {
          "type": "number",
          "description": "The execution limit per cycle"
        }
      },
      "required": [
        "productType",
        "productName",
        "usageUnit",
        "meterId",
        "meterName",
        "fixedPricePerUnit",
        "priceType",
        "minPricePerUnit",
        "maxPricePerUnit",
        "executionLimitPerCycle"
      ]
    }
  }
}