{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/powerexpertindia-com/json-schema/powerexpertindia-com-solar-savings-response-schema.json",
  "title": "SolarSavingsResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/powerexpertindia-com-openapi.json#/components/schemas/SolarSavingsResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "status",
    "api_version",
    "request_id",
    "data",
    "meta"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok"
      ]
    },
    "api_version": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "data": {
      "$ref": "#/$defs/SolarSavingsData"
    },
    "meta": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "release_id",
        "controller_version",
        "wrapper_contract"
      ],
      "properties": {
        "release_id": {
          "type": "string"
        },
        "controller_version": {
          "type": "string"
        },
        "wrapper_contract": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "SolarCalculationSide": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "energy_units",
        "result"
      ],
      "properties": {
        "energy_units": {
          "type": "integer",
          "minimum": 0
        },
        "result": {
          "$ref": "#/$defs/SolarMoneyResult"
        }
      }
    },
    "SolarMoneyResult": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "energy_charge_paise",
        "energy_charge_paise_rupees",
        "fixed_charge_paise",
        "fixed_charge_paise_rupees",
        "demand_charge_paise",
        "demand_charge_paise_rupees",
        "excess_demand_charge_paise",
        "excess_demand_charge_paise_rupees",
        "tod_adjustment_paise",
        "tod_adjustment_paise_rupees",
        "special_adjustment_paise",
        "special_adjustment_paise_rupees",
        "base_total_paise",
        "base_total_paise_rupees",
        "currency",
        "integer_paise_only"
      ],
      "properties": {
        "energy_charge_paise": {
          "type": "integer",
          "minimum": 0
        },
        "energy_charge_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "fixed_charge_paise": {
          "type": "integer",
          "minimum": 0
        },
        "fixed_charge_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "demand_charge_paise": {
          "type": "integer",
          "minimum": 0
        },
        "demand_charge_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "excess_demand_charge_paise": {
          "type": "integer",
          "minimum": 0
        },
        "excess_demand_charge_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "tod_adjustment_paise": {
          "type": "integer"
        },
        "tod_adjustment_paise_rupees": {
          "type": "string",
          "pattern": "^-?\\d+\\.\\d{2}$"
        },
        "special_adjustment_paise": {
          "type": "integer"
        },
        "special_adjustment_paise_rupees": {
          "type": "string",
          "pattern": "^-?\\d+\\.\\d{2}$"
        },
        "base_total_paise": {
          "type": "integer",
          "minimum": 0
        },
        "base_total_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "INR"
          ]
        },
        "integer_paise_only": {
          "type": "boolean",
          "enum": [
            true
          ]
        }
      }
    },
    "SolarProposalDisclaimer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "estimate_not_utility_bill",
        "verified_base_tariff_comparison_only",
        "not_a_guaranteed_solar_saving",
        "post_solar_import_supplied_by_client",
        "excluded_components"
      ],
      "properties": {
        "estimate_not_utility_bill": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "verified_base_tariff_comparison_only": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "not_a_guaranteed_solar_saving": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "post_solar_import_supplied_by_client": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "excluded_components": {
          "type": "array",
          "minItems": 7,
          "maxItems": 7,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "solar_generation_estimation",
              "net_metering",
              "export_credit",
              "fppas",
              "monetary_subsidy",
              "statutory_levies",
              "payback_or_roi"
            ]
          }
        }
      }
    },
    "SolarProposalEvidence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "object_version",
        "proposal_use",
        "machine_verifiable",
        "state_code",
        "subcategory_code",
        "category_label",
        "usage_baseline",
        "verified_base_tariff_comparison",
        "tariff_basis",
        "proposal_disclaimer"
      ],
      "properties": {
        "object_version": {
          "type": "string",
          "enum": [
            "PEI Solar Proposal Evidence Object V1.0.0"
          ]
        },
        "proposal_use": {
          "type": "string",
          "enum": [
            "solar_savings_baseline"
          ]
        },
        "machine_verifiable": {
          "type": "boolean",
          "enum": [
            true
          ]
        },
        "state_code": {
          "type": "string",
          "enum": [
            "BR"
          ]
        },
        "subcategory_code": {
          "type": "string"
        },
        "category_label": {
          "type": "string"
        },
        "usage_baseline": {
          "$ref": "#/$defs/SolarProposalUsageBaseline"
        },
        "verified_base_tariff_comparison": {
          "$ref": "#/$defs/SolarProposalTariffComparison"
        },
        "tariff_basis": {
          "$ref": "#/$defs/SolarProposalTariffBasis"
        },
        "proposal_disclaimer": {
          "$ref": "#/$defs/SolarProposalDisclaimer"
        }
      }
    },
    "SolarProposalTariffBasis": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "release_id",
        "financial_year",
        "effective_on",
        "verification_tier",
        "release_sha256",
        "source_refs"
      ],
      "properties": {
        "release_id": {
          "type": "string"
        },
        "financial_year": {
          "type": "string"
        },
        "effective_on": {
          "type": "string",
          "format": "date"
        },
        "verification_tier": {
          "type": "string",
          "enum": [
            "verified_strict"
          ]
        },
        "release_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "source_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SolarProposalTariffComparison": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "before_solar_base_total_paise",
        "before_solar_base_total_rupees",
        "after_solar_base_total_paise",
        "after_solar_base_total_rupees",
        "monthly_base_tariff_saving_paise",
        "monthly_base_tariff_saving_rupees",
        "annualized_base_tariff_saving_paise",
        "annualized_base_tariff_saving_rupees",
        "base_cost_reduction_basis_points",
        "base_cost_reduction_percent"
      ],
      "properties": {
        "before_solar_base_total_paise": {
          "type": "integer",
          "minimum": 0
        },
        "before_solar_base_total_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "after_solar_base_total_paise": {
          "type": "integer",
          "minimum": 0
        },
        "after_solar_base_total_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "monthly_base_tariff_saving_paise": {
          "type": "integer",
          "minimum": 0
        },
        "monthly_base_tariff_saving_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "annualized_base_tariff_saving_paise": {
          "type": "integer",
          "minimum": 0
        },
        "annualized_base_tariff_saving_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "base_cost_reduction_basis_points": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "base_cost_reduction_percent": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        }
      }
    },
    "SolarProposalUsageBaseline": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "existing_monthly_units",
        "post_solar_import_units",
        "solar_offset_units"
      ],
      "properties": {
        "existing_monthly_units": {
          "type": "integer",
          "minimum": 0
        },
        "post_solar_import_units": {
          "type": "integer",
          "minimum": 0
        },
        "solar_offset_units": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "SolarSavingsData": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "calculation_type",
        "coverage_status",
        "state_code",
        "subcategory_code",
        "category_label",
        "input",
        "before_solar",
        "after_solar",
        "savings",
        "evidence",
        "limitations",
        "disclosure",
        "proposal_evidence"
      ],
      "properties": {
        "calculation_type": {
          "type": "string",
          "enum": [
            "verified_solar_savings_baseline"
          ]
        },
        "coverage_status": {
          "type": "string",
          "enum": [
            "production_verified"
          ]
        },
        "state_code": {
          "type": "string",
          "enum": [
            "BR"
          ]
        },
        "subcategory_code": {
          "type": "string"
        },
        "category_label": {
          "type": "string"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "existing_monthly_units",
            "post_solar_import_units",
            "solar_offset_units",
            "connected_load",
            "load_unit"
          ],
          "properties": {
            "existing_monthly_units": {
              "type": "integer",
              "minimum": 0
            },
            "post_solar_import_units": {
              "type": "integer",
              "minimum": 0
            },
            "solar_offset_units": {
              "type": "integer",
              "minimum": 0
            },
            "connected_load": {
              "type": "string"
            },
            "load_unit": {
              "type": "string"
            }
          }
        },
        "before_solar": {
          "$ref": "#/$defs/SolarCalculationSide"
        },
        "after_solar": {
          "$ref": "#/$defs/SolarCalculationSide"
        },
        "savings": {
          "$ref": "#/$defs/SolarSavingsSummary"
        },
        "evidence": {
          "$ref": "#/$defs/SolarSavingsEvidence"
        },
        "limitations": {
          "$ref": "#/$defs/SolarSavingsLimitations"
        },
        "disclosure": {
          "$ref": "#/$defs/SolarSavingsDisclosure"
        },
        "proposal_evidence": {
          "$ref": "#/$defs/SolarProposalEvidence"
        }
      }
    },
    "SolarSavingsDisclosure": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "estimate_not_utility_bill",
        "verified_base_tariff_comparison_only",
        "not_a_guaranteed_solar_saving"
      ],
      "properties": {
        "estimate_not_utility_bill": {
          "type": "boolean"
        },
        "verified_base_tariff_comparison_only": {
          "type": "boolean"
        },
        "not_a_guaranteed_solar_saving": {
          "type": "boolean"
        }
      }
    },
    "SolarSavingsEvidence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "release_id",
        "financial_year",
        "effective_from",
        "effective_on",
        "verification_tier",
        "calculation_version",
        "release_sha256",
        "source_refs"
      ],
      "properties": {
        "release_id": {
          "type": "string"
        },
        "financial_year": {
          "type": "string"
        },
        "effective_from": {
          "type": "string",
          "format": "date"
        },
        "effective_on": {
          "type": "string",
          "format": "date"
        },
        "verification_tier": {
          "type": "string",
          "enum": [
            "verified_strict"
          ]
        },
        "calculation_version": {
          "type": "string"
        },
        "release_sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "source_refs": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SolarSavingsLimitations": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "exact_current_bill",
        "solar_generation_estimated",
        "post_solar_import_supplied_by_client",
        "net_metering_applied",
        "export_credit_applied",
        "fppas_applied",
        "monetary_subsidy_applied",
        "statutory_levies_applied",
        "payback_or_roi_calculated",
        "annualized_value_is_monthly_baseline_times_12"
      ],
      "properties": {
        "exact_current_bill": {
          "type": "boolean"
        },
        "solar_generation_estimated": {
          "type": "boolean"
        },
        "post_solar_import_supplied_by_client": {
          "type": "boolean"
        },
        "net_metering_applied": {
          "type": "boolean"
        },
        "export_credit_applied": {
          "type": "boolean"
        },
        "fppas_applied": {
          "type": "boolean"
        },
        "monetary_subsidy_applied": {
          "type": "boolean"
        },
        "statutory_levies_applied": {
          "type": "boolean"
        },
        "payback_or_roi_calculated": {
          "type": "boolean"
        },
        "annualized_value_is_monthly_baseline_times_12": {
          "type": "boolean"
        }
      }
    },
    "SolarSavingsSummary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "monthly_base_tariff_saving_paise",
        "monthly_base_tariff_saving_paise_rupees",
        "annualized_base_tariff_saving_paise",
        "annualized_base_tariff_saving_paise_rupees",
        "base_cost_reduction_basis_points",
        "base_cost_reduction_percent"
      ],
      "properties": {
        "monthly_base_tariff_saving_paise": {
          "type": "integer",
          "minimum": 0
        },
        "monthly_base_tariff_saving_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "annualized_base_tariff_saving_paise": {
          "type": "integer",
          "minimum": 0
        },
        "annualized_base_tariff_saving_paise_rupees": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        },
        "base_cost_reduction_basis_points": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "base_cost_reduction_percent": {
          "type": "string",
          "pattern": "^\\d+\\.\\d{2}$"
        }
      }
    }
  }
}