curl --request POST \
--url https://api.suntropy.ai/v2/studies/solar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": [
"<string>"
],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": [
"<string>"
],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": true,
"autopanelingLayout": true,
"catastralReference": "<string>",
"obstacles": [
"<string>"
]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": [
"<string>"
],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"active": true,
"coplanar": true
},
"solarPanel": {},
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": true,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": true,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": true,
"blocked": true,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": true,
"comments": [
{
"content": "<string>"
}
],
"blockedSolarPanelSelection": true,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": true,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": true,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": true,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"documents": [
{}
],
"isMicroinverter": true,
"isHybrid": true,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": true,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": [
"<string>"
],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [
{}
],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": [
"<string>"
],
"consumptionAddons": [
"<string>"
],
"selectedCustomAssets": [
"<string>"
],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": [
"<string>"
],
"kitCategoriesIncluded": {},
"obstacles": [
"<string>"
],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [
123
],
"squareGrid": [
"<unknown>"
]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": [
"<string>"
]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>"
},
"mapCenter": {},
"selectedChargers": [
"<string>"
],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"selectedCustomAssets": [
"<string>"
],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [
{}
],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": [
"<string>"
],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": true,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": true,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": true,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": [
"<string>"
],
"consumerTaskId": 123
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": [
"<string>"
],
"consumerProfiles": [
"<string>"
],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": [
"<string>"
],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": true,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
}
'import requests
url = "https://api.suntropy.ai/v2/studies/solar"
payload = {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": ["<string>"],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": ["<string>"],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": True,
"autopanelingLayout": True,
"catastralReference": "<string>",
"obstacles": ["<string>"]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": True
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": ["<string>"],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"active": True,
"coplanar": True
},
"solarPanel": {},
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": True,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": True,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": True,
"blocked": True,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": True,
"comments": [{ "content": "<string>" }],
"blockedSolarPanelSelection": True,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": True,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": True,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": True,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"documents": [{}],
"isMicroinverter": True,
"isHybrid": True,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": ["<string>"],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": True,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": ["<string>"],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": ["<string>"],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [{}],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": ["<string>"],
"consumptionAddons": ["<string>"],
"selectedCustomAssets": ["<string>"],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": ["<string>"],
"kitCategoriesIncluded": {},
"obstacles": ["<string>"],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [123],
"squareGrid": ["<unknown>"]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": ["<string>"]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>"
},
"mapCenter": {},
"selectedChargers": ["<string>"],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": True,
"taxesPercentage": 123,
"business": True,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"selectedCustomAssets": ["<string>"],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [{}],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": ["<string>"],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": True
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": True,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": True,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": True,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": ["<string>"],
"consumerTaskId": 123
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": True,
"taxesPercentage": 123,
"business": True,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": ["<string>"],
"consumerProfiles": ["<string>"],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": ["<string>"],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": True,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
creationTimestamp: '<string>',
creationUserUID: '<string>',
lastEditTimestamp: '<string>',
lastEditUserUID: '<string>',
clientUID: '<string>',
surfaces: [
{
surfaceId: '<string>',
name: '<string>',
polygonPath: ['<string>'],
area: 123,
dimensions: {},
material: '<string>',
inclination: 123,
orientation: 123,
panelNumber: 123,
panelInclination: 123,
panelOrientation: 123,
panelPosition: '<string>',
production: {},
availableAreaPercentage: 123,
lossesPercernage: 123,
panelsLayoutPolygons: ['<string>'],
columnDistance: 123,
rowDistance: 123,
lossesPercentage: 123,
color: '<string>',
maxPanelNumber: 123,
hidePanelLayout: true,
autopanelingLayout: true,
catastralReference: '<string>',
obstacles: ['<string>']
}
],
location: {lng: 123, lat: 123},
atrTariff: {idTarifaATR: 123, nombre: '<string>', periods: 123, active: true},
geographicalZone: {idZona: 123, nombre: '<string>'},
energyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
powerPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
contractedPower: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123},
solarKit: {
idSolarKit: {},
kitSolarPanel: {
idKitSolarPanel: {},
manufacturer: {idManufacturer: 123, name: '<string>', clientUID: '<string>'},
solarKits: ['<string>'],
efficiency: 123,
peakPower: 123,
name: '<string>',
width: 123,
heigth: 123,
depth: 123
},
kitInverter: {},
price: 123,
identifier: '<string>',
peakPower: 123,
clientUID: '<string>',
panelNumber: 123,
inverterNumber: 123,
active: true,
coplanar: true
},
solarPanel: {},
name: '<string>',
identifier: '<string>',
consumption: {},
monthPeriodConsumptionDictionary: {},
monthConsumptionDictionary: {},
periodConsumptionDictionary: {},
results: {
totalProduction: 123,
totalSavings: 123,
totalSavingsByPeriod: {},
totalConsumptionCoverage: 123,
totalRawSpendingByPeriod: {},
totalRawSpending: 123,
netConsumption: {},
totalNetSpendingByPeriod: {},
totalNetSpending: 123,
excessesCurve: {},
totalExcesses: 123,
totalExcessesByPeriod: {},
contractedPowerSavingsByPeriod: {},
rawPeakConsumptionCostPt: 123,
netPeakConsumptionCostPt: 123,
alternativeTotalNetSpendingByPeriod: {},
totalSavingsByPeriodAlternativeSavings: {},
totalSavingsAlternativePrices: 123
},
peakPowerOptimizationMethod: {maxExcessesPercentage: 123, maxNumberOfOverproductionMonths: 123},
economicResults: {
peakPowerCost: 123,
instalationLifeTime: 123,
margen: 123,
commercialFeePercentage: 123,
totalCost: 123,
payback: 123,
irr: 123,
reselerFeePercentage: 123,
inflation: 123,
guaranteeProductionPercentage: 123,
simpleAmortizationYear: 123,
excessesBuyPrice: 123,
excessesSellingPrice: 123,
instalationFinancingPercentage: 123,
applyedDiscounts: {
concept: '<string>',
percentage: 123,
absoluteValue: 123,
fromLastDiscountResult: true,
uuid: '<string>'
},
financingConditions: {
anualInterestRate: 123,
anualEquivalentRate: 123,
financingMonths: 123,
initialInvestment: 123,
enableFinancing: true,
financingEntity: '<string>'
},
yearlyEconomicBalance: [
{
production: 123,
excesses: 123,
selfConsumedEnergy: 123,
savings: 123,
accumulatedSavings: 123,
year: 123,
netConsumptionByPeriod: {}
}
]
},
useAlternativePrices: true,
blocked: true,
alternativeEnergyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
alternativePowerPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
usingSipsIntegration: true,
comments: [{content: '<string>'}],
blockedSolarPanelSelection: true,
solarStudyProgress: {
stepsProgress: {},
stepsUpdates: {},
editingSolarStudy: true,
lastStateUpdateMomentMS: 123
},
limitProductionToNominalPower: true,
solarInverters: [
{
idInverter: 1,
efficiency: 97.5,
nominalPower: 5,
name: 'Inverter Model X',
imageUrl: 'http://example.com/image.jpg',
clientUID: 'UID12345',
manufacturingWarranty: 10,
materialsWarranty: 5,
active: true,
referenceId: 'REF12345',
phaseNumber: 'single_phase',
costPerUnit: 1500.75,
documents: [{}],
isMicroinverter: true,
isHybrid: true,
maxCapacityOfBattery: 10000,
description: '<string>',
technicalSheetDocumentURL: 'https://example.com'
}
],
bateries: [
{
idBattery: 123,
manufacturer: {},
solarKits: ['<string>'],
capacity: 123,
name: '<string>'
}
],
activeBatteries: true,
batteriesConfiguration: {
maxCapacityPercentage: 123,
minCapacityPercentage: 123,
initialCapacityPercentage: 123,
batteries: {
idBattery: 123,
manufacturer: {},
solarKits: ['<string>'],
capacity: 123,
name: '<string>'
},
capacity: 123,
cost: {}
},
batteriesEnergyBalance: {},
batteriesResults: {
totalProduction: 123,
totalSavings: 123,
totalSavingsByPeriod: {},
totalConsumptionCoverage: 123,
totalRawSpendingByPeriod: {},
totalRawSpending: 123,
netConsumption: {},
totalNetSpendingByPeriod: {},
totalNetSpending: 123,
excessesCurve: {},
totalExcesses: 123,
totalExcessesByPeriod: {},
contractedPowerSavingsByPeriod: {},
rawPeakConsumptionCostPt: 123,
netPeakConsumptionCostPt: 123,
alternativeTotalNetSpendingByPeriod: {},
totalSavingsByPeriodAlternativeSavings: {},
totalSavingsAlternativePrices: 123
},
periodDistribution: ['<string>'],
reeProfile: {},
lastStateUpdateMomentMS: 123,
scannedInvoinces: {},
monthlyConsumptionAddons: [{}],
layout: '<string>',
selectedConsumptionPattern: {},
monthlyConsumption: 123,
customAssets: ['<string>'],
consumptionAddons: ['<string>'],
selectedCustomAssets: ['<string>'],
applyConsumptionMovementPercentage: {},
referenceId: '<string>',
market: '<string>',
consumerTaskId: 123,
notes: ['<string>'],
kitCategoriesIncluded: {},
obstacles: ['<string>'],
shadowSimulationResults: {
shadowSimulation: [
{panelId: '<string>', shadowSimulationResult: [123], squareGrid: ['<unknown>']}
],
totalComputationTime: 123,
numberOfLightHours: 123,
surfacesToShadow: ['<string>']
},
uploadedProductionCurve: {productionFileCurve: {}, productionFileUrl: '<string>'},
mapCenter: {},
selectedChargers: ['<string>'],
heatpumpStudy: {
creationTimestamp: '<string>',
creationUserUID: '<string>',
lastEditTimestamp: '<string>',
lastEditUserUID: '<string>',
clientUID: '<string>',
name: '<string>',
identifier: '<string>',
clientDetails: {
identifier: '<string>',
contactNumber: '<string>',
sector: '<string>',
email: '<string>',
cups: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressCode: '<string>',
dniOrCif: '<string>',
instalationLocation: '<string>',
city: '<string>',
region: '<string>',
subregion: '<string>',
tariff: '<string>',
surname: '<string>',
includeTaxes: true,
taxesPercentage: 123,
business: true,
businessRepresentative: '<string>',
phonePrefix: '<string>',
phoneCountryCode: '<string>',
typeOfDocument: '<string>',
typeOfClient: '<string>',
cifOfClient: '<string>',
clientBusinessIdentifier: '<string>'
},
mapCenter: {},
selectedCustomAssets: ['<string>'],
economicResults: {},
referenceId: '<string>',
consumptionPattern: {},
market: '<string>',
comments: [{}],
creationSpentTime: {},
heatpumpStudyProgress: {},
lastStateUpdateMomentMS: 123,
selectedHeatpumps: ['<string>'],
heatpumpCalculationMethod: 'SRT',
totalSurface: 123,
buildingOrientation: 123,
numberOfRooms: 123,
heatLoadPerSquareMeter: 123,
geographicalZone: {idZona: 123, nombre: '<string>'},
atrTariff: {idTarifaATR: 123, nombre: '<string>', periods: 123, active: true},
typeOfBuilding: '<string>',
numberHabitants: 123,
numberOfFloors: 123,
originalHeatSystem: '<string>',
originalHeatSystemAnualSpending: 123,
useForHeating: true,
heatEmitors: '<string>',
heatEmitorsAction: '<string>',
useForCooling: true,
coolingEmitors: '<string>',
coolingEmitorsAction: '<string>',
useForWaterHeating: true,
waterHeatingLitersNeeded: 123,
waterHeatingLitersPerDayPerPerson: 123,
waterHeatingLitersAction: '<string>',
heatpumpSelectionMode: '<string>',
heatpumpRecommendedPower: 123,
heatPumpFilters: {},
energyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
workingHoursByMonth: {},
selectedWorkingHoursProfile: {},
heatpumpMonthlyConsumption: {},
heatpumpAnualConsumption: 123,
consumption: {},
heatpumpAnualSpending: 123,
heatpumpAnualSaving: 123,
notes: ['<string>'],
consumerTaskId: 123
},
radiationAnalysis: {},
extraCostPrice: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
powerPricesDiscount: 123,
energyPricesDiscount: 123,
clientDetails: {
identifier: '<string>',
contactNumber: '<string>',
sector: '<string>',
email: '<string>',
cups: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressCode: '<string>',
dniOrCif: '<string>',
instalationLocation: '<string>',
city: '<string>',
region: '<string>',
subregion: '<string>',
tariff: '<string>',
surname: '<string>',
includeTaxes: true,
taxesPercentage: 123,
business: true,
businessRepresentative: '<string>',
phonePrefix: '<string>',
phoneCountryCode: '<string>',
typeOfDocument: '<string>',
typeOfClient: '<string>',
cifOfClient: '<string>',
clientBusinessIdentifier: '<string>'
},
clientsDetails: ['<string>'],
consumerProfiles: ['<string>'],
colectiveResults: {},
colectiveSharingCoeficientsStrategy: {},
colectiveSharingCoefficients: {},
customCoefficients: {},
solarStudyImages: ['<string>'],
colectiveConsumerProfilesEconomicResults: {},
colectiveClientsDetailsEconomicBalance: {},
colectiveProfileExcessesRetribution: {},
colectiveClientsExcessesRetribution: {},
archeliosProIntegrationData: {},
archeliosLastSyncTimestamp: '<string>',
solarStudyAiAgentChatUid: '<string>',
useBatteryAdvancedUI: true,
customFieldsValues: {},
solarDesignerProjectId: '<string>',
singleLineDiagram: {}
})
};
fetch('https://api.suntropy.ai/v2/studies/solar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.suntropy.ai/v2/studies/solar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'creationTimestamp' => '<string>',
'creationUserUID' => '<string>',
'lastEditTimestamp' => '<string>',
'lastEditUserUID' => '<string>',
'clientUID' => '<string>',
'surfaces' => [
[
'surfaceId' => '<string>',
'name' => '<string>',
'polygonPath' => [
'<string>'
],
'area' => 123,
'dimensions' => [
],
'material' => '<string>',
'inclination' => 123,
'orientation' => 123,
'panelNumber' => 123,
'panelInclination' => 123,
'panelOrientation' => 123,
'panelPosition' => '<string>',
'production' => [
],
'availableAreaPercentage' => 123,
'lossesPercernage' => 123,
'panelsLayoutPolygons' => [
'<string>'
],
'columnDistance' => 123,
'rowDistance' => 123,
'lossesPercentage' => 123,
'color' => '<string>',
'maxPanelNumber' => 123,
'hidePanelLayout' => true,
'autopanelingLayout' => true,
'catastralReference' => '<string>',
'obstacles' => [
'<string>'
]
]
],
'location' => [
'lng' => 123,
'lat' => 123
],
'atrTariff' => [
'idTarifaATR' => 123,
'nombre' => '<string>',
'periods' => 123,
'active' => true
],
'geographicalZone' => [
'idZona' => 123,
'nombre' => '<string>'
],
'energyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'powerPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'contractedPower' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123
],
'solarKit' => [
'idSolarKit' => [
],
'kitSolarPanel' => [
'idKitSolarPanel' => [
],
'manufacturer' => [
'idManufacturer' => 123,
'name' => '<string>',
'clientUID' => '<string>'
],
'solarKits' => [
'<string>'
],
'efficiency' => 123,
'peakPower' => 123,
'name' => '<string>',
'width' => 123,
'heigth' => 123,
'depth' => 123
],
'kitInverter' => [
],
'price' => 123,
'identifier' => '<string>',
'peakPower' => 123,
'clientUID' => '<string>',
'panelNumber' => 123,
'inverterNumber' => 123,
'active' => true,
'coplanar' => true
],
'solarPanel' => [
],
'name' => '<string>',
'identifier' => '<string>',
'consumption' => [
],
'monthPeriodConsumptionDictionary' => [
],
'monthConsumptionDictionary' => [
],
'periodConsumptionDictionary' => [
],
'results' => [
'totalProduction' => 123,
'totalSavings' => 123,
'totalSavingsByPeriod' => [
],
'totalConsumptionCoverage' => 123,
'totalRawSpendingByPeriod' => [
],
'totalRawSpending' => 123,
'netConsumption' => [
],
'totalNetSpendingByPeriod' => [
],
'totalNetSpending' => 123,
'excessesCurve' => [
],
'totalExcesses' => 123,
'totalExcessesByPeriod' => [
],
'contractedPowerSavingsByPeriod' => [
],
'rawPeakConsumptionCostPt' => 123,
'netPeakConsumptionCostPt' => 123,
'alternativeTotalNetSpendingByPeriod' => [
],
'totalSavingsByPeriodAlternativeSavings' => [
],
'totalSavingsAlternativePrices' => 123
],
'peakPowerOptimizationMethod' => [
'maxExcessesPercentage' => 123,
'maxNumberOfOverproductionMonths' => 123
],
'economicResults' => [
'peakPowerCost' => 123,
'instalationLifeTime' => 123,
'margen' => 123,
'commercialFeePercentage' => 123,
'totalCost' => 123,
'payback' => 123,
'irr' => 123,
'reselerFeePercentage' => 123,
'inflation' => 123,
'guaranteeProductionPercentage' => 123,
'simpleAmortizationYear' => 123,
'excessesBuyPrice' => 123,
'excessesSellingPrice' => 123,
'instalationFinancingPercentage' => 123,
'applyedDiscounts' => [
'concept' => '<string>',
'percentage' => 123,
'absoluteValue' => 123,
'fromLastDiscountResult' => true,
'uuid' => '<string>'
],
'financingConditions' => [
'anualInterestRate' => 123,
'anualEquivalentRate' => 123,
'financingMonths' => 123,
'initialInvestment' => 123,
'enableFinancing' => true,
'financingEntity' => '<string>'
],
'yearlyEconomicBalance' => [
[
'production' => 123,
'excesses' => 123,
'selfConsumedEnergy' => 123,
'savings' => 123,
'accumulatedSavings' => 123,
'year' => 123,
'netConsumptionByPeriod' => [
]
]
]
],
'useAlternativePrices' => true,
'blocked' => true,
'alternativeEnergyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'alternativePowerPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'usingSipsIntegration' => true,
'comments' => [
[
'content' => '<string>'
]
],
'blockedSolarPanelSelection' => true,
'solarStudyProgress' => [
'stepsProgress' => [
],
'stepsUpdates' => [
],
'editingSolarStudy' => true,
'lastStateUpdateMomentMS' => 123
],
'limitProductionToNominalPower' => true,
'solarInverters' => [
[
'idInverter' => 1,
'efficiency' => 97.5,
'nominalPower' => 5,
'name' => 'Inverter Model X',
'imageUrl' => 'http://example.com/image.jpg',
'clientUID' => 'UID12345',
'manufacturingWarranty' => 10,
'materialsWarranty' => 5,
'active' => true,
'referenceId' => 'REF12345',
'phaseNumber' => 'single_phase',
'costPerUnit' => 1500.75,
'documents' => [
[
]
],
'isMicroinverter' => true,
'isHybrid' => true,
'maxCapacityOfBattery' => 10000,
'description' => '<string>',
'technicalSheetDocumentURL' => 'https://example.com'
]
],
'bateries' => [
[
'idBattery' => 123,
'manufacturer' => [
],
'solarKits' => [
'<string>'
],
'capacity' => 123,
'name' => '<string>'
]
],
'activeBatteries' => true,
'batteriesConfiguration' => [
'maxCapacityPercentage' => 123,
'minCapacityPercentage' => 123,
'initialCapacityPercentage' => 123,
'batteries' => [
'idBattery' => 123,
'manufacturer' => [
],
'solarKits' => [
'<string>'
],
'capacity' => 123,
'name' => '<string>'
],
'capacity' => 123,
'cost' => [
]
],
'batteriesEnergyBalance' => [
],
'batteriesResults' => [
'totalProduction' => 123,
'totalSavings' => 123,
'totalSavingsByPeriod' => [
],
'totalConsumptionCoverage' => 123,
'totalRawSpendingByPeriod' => [
],
'totalRawSpending' => 123,
'netConsumption' => [
],
'totalNetSpendingByPeriod' => [
],
'totalNetSpending' => 123,
'excessesCurve' => [
],
'totalExcesses' => 123,
'totalExcessesByPeriod' => [
],
'contractedPowerSavingsByPeriod' => [
],
'rawPeakConsumptionCostPt' => 123,
'netPeakConsumptionCostPt' => 123,
'alternativeTotalNetSpendingByPeriod' => [
],
'totalSavingsByPeriodAlternativeSavings' => [
],
'totalSavingsAlternativePrices' => 123
],
'periodDistribution' => [
'<string>'
],
'reeProfile' => [
],
'lastStateUpdateMomentMS' => 123,
'scannedInvoinces' => [
],
'monthlyConsumptionAddons' => [
[
]
],
'layout' => '<string>',
'selectedConsumptionPattern' => [
],
'monthlyConsumption' => 123,
'customAssets' => [
'<string>'
],
'consumptionAddons' => [
'<string>'
],
'selectedCustomAssets' => [
'<string>'
],
'applyConsumptionMovementPercentage' => [
],
'referenceId' => '<string>',
'market' => '<string>',
'consumerTaskId' => 123,
'notes' => [
'<string>'
],
'kitCategoriesIncluded' => [
],
'obstacles' => [
'<string>'
],
'shadowSimulationResults' => [
'shadowSimulation' => [
[
'panelId' => '<string>',
'shadowSimulationResult' => [
123
],
'squareGrid' => [
'<unknown>'
]
]
],
'totalComputationTime' => 123,
'numberOfLightHours' => 123,
'surfacesToShadow' => [
'<string>'
]
],
'uploadedProductionCurve' => [
'productionFileCurve' => [
],
'productionFileUrl' => '<string>'
],
'mapCenter' => [
],
'selectedChargers' => [
'<string>'
],
'heatpumpStudy' => [
'creationTimestamp' => '<string>',
'creationUserUID' => '<string>',
'lastEditTimestamp' => '<string>',
'lastEditUserUID' => '<string>',
'clientUID' => '<string>',
'name' => '<string>',
'identifier' => '<string>',
'clientDetails' => [
'identifier' => '<string>',
'contactNumber' => '<string>',
'sector' => '<string>',
'email' => '<string>',
'cups' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressCode' => '<string>',
'dniOrCif' => '<string>',
'instalationLocation' => '<string>',
'city' => '<string>',
'region' => '<string>',
'subregion' => '<string>',
'tariff' => '<string>',
'surname' => '<string>',
'includeTaxes' => true,
'taxesPercentage' => 123,
'business' => true,
'businessRepresentative' => '<string>',
'phonePrefix' => '<string>',
'phoneCountryCode' => '<string>',
'typeOfDocument' => '<string>',
'typeOfClient' => '<string>',
'cifOfClient' => '<string>',
'clientBusinessIdentifier' => '<string>'
],
'mapCenter' => [
],
'selectedCustomAssets' => [
'<string>'
],
'economicResults' => [
],
'referenceId' => '<string>',
'consumptionPattern' => [
],
'market' => '<string>',
'comments' => [
[
]
],
'creationSpentTime' => [
],
'heatpumpStudyProgress' => [
],
'lastStateUpdateMomentMS' => 123,
'selectedHeatpumps' => [
'<string>'
],
'heatpumpCalculationMethod' => 'SRT',
'totalSurface' => 123,
'buildingOrientation' => 123,
'numberOfRooms' => 123,
'heatLoadPerSquareMeter' => 123,
'geographicalZone' => [
'idZona' => 123,
'nombre' => '<string>'
],
'atrTariff' => [
'idTarifaATR' => 123,
'nombre' => '<string>',
'periods' => 123,
'active' => true
],
'typeOfBuilding' => '<string>',
'numberHabitants' => 123,
'numberOfFloors' => 123,
'originalHeatSystem' => '<string>',
'originalHeatSystemAnualSpending' => 123,
'useForHeating' => true,
'heatEmitors' => '<string>',
'heatEmitorsAction' => '<string>',
'useForCooling' => true,
'coolingEmitors' => '<string>',
'coolingEmitorsAction' => '<string>',
'useForWaterHeating' => true,
'waterHeatingLitersNeeded' => 123,
'waterHeatingLitersPerDayPerPerson' => 123,
'waterHeatingLitersAction' => '<string>',
'heatpumpSelectionMode' => '<string>',
'heatpumpRecommendedPower' => 123,
'heatPumpFilters' => [
],
'energyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'workingHoursByMonth' => [
],
'selectedWorkingHoursProfile' => [
],
'heatpumpMonthlyConsumption' => [
],
'heatpumpAnualConsumption' => 123,
'consumption' => [
],
'heatpumpAnualSpending' => 123,
'heatpumpAnualSaving' => 123,
'notes' => [
'<string>'
],
'consumerTaskId' => 123
],
'radiationAnalysis' => [
],
'extraCostPrice' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'powerPricesDiscount' => 123,
'energyPricesDiscount' => 123,
'clientDetails' => [
'identifier' => '<string>',
'contactNumber' => '<string>',
'sector' => '<string>',
'email' => '<string>',
'cups' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressCode' => '<string>',
'dniOrCif' => '<string>',
'instalationLocation' => '<string>',
'city' => '<string>',
'region' => '<string>',
'subregion' => '<string>',
'tariff' => '<string>',
'surname' => '<string>',
'includeTaxes' => true,
'taxesPercentage' => 123,
'business' => true,
'businessRepresentative' => '<string>',
'phonePrefix' => '<string>',
'phoneCountryCode' => '<string>',
'typeOfDocument' => '<string>',
'typeOfClient' => '<string>',
'cifOfClient' => '<string>',
'clientBusinessIdentifier' => '<string>'
],
'clientsDetails' => [
'<string>'
],
'consumerProfiles' => [
'<string>'
],
'colectiveResults' => [
],
'colectiveSharingCoeficientsStrategy' => [
],
'colectiveSharingCoefficients' => [
],
'customCoefficients' => [
],
'solarStudyImages' => [
'<string>'
],
'colectiveConsumerProfilesEconomicResults' => [
],
'colectiveClientsDetailsEconomicBalance' => [
],
'colectiveProfileExcessesRetribution' => [
],
'colectiveClientsExcessesRetribution' => [
],
'archeliosProIntegrationData' => [
],
'archeliosLastSyncTimestamp' => '<string>',
'solarStudyAiAgentChatUid' => '<string>',
'useBatteryAdvancedUI' => true,
'customFieldsValues' => [
],
'solarDesignerProjectId' => '<string>',
'singleLineDiagram' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.suntropy.ai/v2/studies/solar"
payload := strings.NewReader("{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.suntropy.ai/v2/studies/solar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/studies/solar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": [
"<string>"
],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": [
"<string>"
],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": true,
"autopanelingLayout": true,
"catastralReference": "<string>",
"obstacles": [
"<string>"
]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": [
"<string>"
],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"phaseNumber": "single_phase",
"active": true,
"coplanar": true
},
"solarPanel": {},
"peakPowerIntroductionMode": "solarPanel",
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"instalationPhaseNumber": "single_phase",
"installationConnectionType": "gridConnected",
"consumptionIntroductionMode": "cups",
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesCompensationMode": "PPA",
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": true,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": true,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": true,
"blocked": true,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": true,
"comments": [
{
"content": "<string>"
}
],
"blockedSolarPanelSelection": true,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": true,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": true,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": true,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"manufacturer": {
"name": "Manufacturer X",
"idManufacturer": 1,
"clientUID": "UID12345",
"imageUrl": "http://example.com/image.jpg"
},
"documents": [
{}
],
"isMicroinverter": true,
"isHybrid": true,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": true,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": [
"<string>"
],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [
{}
],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": [
"<string>"
],
"consumptionAddons": [
"<string>"
],
"selectedCustomAssets": [
"<string>"
],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": [
"<string>"
],
"kitCategoriesIncluded": {},
"obstacles": [
"<string>"
],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [
123
],
"squareGrid": [
"<unknown>"
]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": [
"<string>"
]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>",
"productionFileOrigin": "archelios"
},
"mapCenter": {},
"selectedSolarStudyMode": "individual",
"selectedChargers": [
"<string>"
],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"instalationPhaseNumber": "single_phase",
"selectedCustomAssets": [
"<string>"
],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [
{}
],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": [
"<string>"
],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"isolationType": "good-isolation",
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": true,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": true,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": true,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"selectedHeatpumpsKit": {
"idHeatpumpKit": 1,
"price": 1000.5,
"clientUID": "C123",
"identifier": "SK123",
"defaultTaxesPercentage": 15,
"materialsWarranty": 5,
"referenceId": "REF123",
"useTotalKitCostAsPrice": true,
"heatpumpKitCustomAssets": [
"<string>"
],
"active": true,
"heatpump": {
"identifier": "Heatpump X",
"idHeatpump": 1,
"manufacturer": {
"name": "Manufacturer X",
"idManufacturer": 1,
"clientUID": "UID12345",
"imageUrl": "http://example.com/image.jpg"
},
"width": 20,
"height": 50,
"depth": 10,
"lowerPower": 50,
"upperPower": 50,
"price": 500.75,
"clientUID": "C123",
"manufacturingWarranty": 2,
"materialsWarranty": 1,
"referenceId": "REF123",
"costPerUnit": 250.25,
"documents": "http://example.com/docs",
"imageUrl": "http://example.com/image.jpg",
"active": true,
"scop": true,
"phases_number": true,
"heatpumpKits": "<array>",
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
},
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
},
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": [
"<string>"
],
"consumerTaskId": 123,
"studyMode": "individual"
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": [
"<string>"
],
"consumerProfiles": [
"<string>"
],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": [
"<string>"
],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": true,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"warning": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Create solar study
Required permission: studies:write.
curl --request POST \
--url https://api.suntropy.ai/v2/studies/solar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": [
"<string>"
],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": [
"<string>"
],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": true,
"autopanelingLayout": true,
"catastralReference": "<string>",
"obstacles": [
"<string>"
]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": [
"<string>"
],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"active": true,
"coplanar": true
},
"solarPanel": {},
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": true,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": true,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": true,
"blocked": true,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": true,
"comments": [
{
"content": "<string>"
}
],
"blockedSolarPanelSelection": true,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": true,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": true,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": true,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"documents": [
{}
],
"isMicroinverter": true,
"isHybrid": true,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": true,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": [
"<string>"
],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [
{}
],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": [
"<string>"
],
"consumptionAddons": [
"<string>"
],
"selectedCustomAssets": [
"<string>"
],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": [
"<string>"
],
"kitCategoriesIncluded": {},
"obstacles": [
"<string>"
],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [
123
],
"squareGrid": [
"<unknown>"
]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": [
"<string>"
]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>"
},
"mapCenter": {},
"selectedChargers": [
"<string>"
],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"selectedCustomAssets": [
"<string>"
],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [
{}
],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": [
"<string>"
],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": true,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": true,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": true,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": [
"<string>"
],
"consumerTaskId": 123
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": [
"<string>"
],
"consumerProfiles": [
"<string>"
],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": [
"<string>"
],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": true,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
}
'import requests
url = "https://api.suntropy.ai/v2/studies/solar"
payload = {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": ["<string>"],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": ["<string>"],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": True,
"autopanelingLayout": True,
"catastralReference": "<string>",
"obstacles": ["<string>"]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": True
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": ["<string>"],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"active": True,
"coplanar": True
},
"solarPanel": {},
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": True,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": True,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": True,
"blocked": True,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": True,
"comments": [{ "content": "<string>" }],
"blockedSolarPanelSelection": True,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": True,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": True,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": True,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"documents": [{}],
"isMicroinverter": True,
"isHybrid": True,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": ["<string>"],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": True,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": ["<string>"],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": ["<string>"],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [{}],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": ["<string>"],
"consumptionAddons": ["<string>"],
"selectedCustomAssets": ["<string>"],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": ["<string>"],
"kitCategoriesIncluded": {},
"obstacles": ["<string>"],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [123],
"squareGrid": ["<unknown>"]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": ["<string>"]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>"
},
"mapCenter": {},
"selectedChargers": ["<string>"],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": True,
"taxesPercentage": 123,
"business": True,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"selectedCustomAssets": ["<string>"],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [{}],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": ["<string>"],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": True
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": True,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": True,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": True,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": ["<string>"],
"consumerTaskId": 123
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": True,
"taxesPercentage": 123,
"business": True,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": ["<string>"],
"consumerProfiles": ["<string>"],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": ["<string>"],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": True,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
creationTimestamp: '<string>',
creationUserUID: '<string>',
lastEditTimestamp: '<string>',
lastEditUserUID: '<string>',
clientUID: '<string>',
surfaces: [
{
surfaceId: '<string>',
name: '<string>',
polygonPath: ['<string>'],
area: 123,
dimensions: {},
material: '<string>',
inclination: 123,
orientation: 123,
panelNumber: 123,
panelInclination: 123,
panelOrientation: 123,
panelPosition: '<string>',
production: {},
availableAreaPercentage: 123,
lossesPercernage: 123,
panelsLayoutPolygons: ['<string>'],
columnDistance: 123,
rowDistance: 123,
lossesPercentage: 123,
color: '<string>',
maxPanelNumber: 123,
hidePanelLayout: true,
autopanelingLayout: true,
catastralReference: '<string>',
obstacles: ['<string>']
}
],
location: {lng: 123, lat: 123},
atrTariff: {idTarifaATR: 123, nombre: '<string>', periods: 123, active: true},
geographicalZone: {idZona: 123, nombre: '<string>'},
energyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
powerPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
contractedPower: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123},
solarKit: {
idSolarKit: {},
kitSolarPanel: {
idKitSolarPanel: {},
manufacturer: {idManufacturer: 123, name: '<string>', clientUID: '<string>'},
solarKits: ['<string>'],
efficiency: 123,
peakPower: 123,
name: '<string>',
width: 123,
heigth: 123,
depth: 123
},
kitInverter: {},
price: 123,
identifier: '<string>',
peakPower: 123,
clientUID: '<string>',
panelNumber: 123,
inverterNumber: 123,
active: true,
coplanar: true
},
solarPanel: {},
name: '<string>',
identifier: '<string>',
consumption: {},
monthPeriodConsumptionDictionary: {},
monthConsumptionDictionary: {},
periodConsumptionDictionary: {},
results: {
totalProduction: 123,
totalSavings: 123,
totalSavingsByPeriod: {},
totalConsumptionCoverage: 123,
totalRawSpendingByPeriod: {},
totalRawSpending: 123,
netConsumption: {},
totalNetSpendingByPeriod: {},
totalNetSpending: 123,
excessesCurve: {},
totalExcesses: 123,
totalExcessesByPeriod: {},
contractedPowerSavingsByPeriod: {},
rawPeakConsumptionCostPt: 123,
netPeakConsumptionCostPt: 123,
alternativeTotalNetSpendingByPeriod: {},
totalSavingsByPeriodAlternativeSavings: {},
totalSavingsAlternativePrices: 123
},
peakPowerOptimizationMethod: {maxExcessesPercentage: 123, maxNumberOfOverproductionMonths: 123},
economicResults: {
peakPowerCost: 123,
instalationLifeTime: 123,
margen: 123,
commercialFeePercentage: 123,
totalCost: 123,
payback: 123,
irr: 123,
reselerFeePercentage: 123,
inflation: 123,
guaranteeProductionPercentage: 123,
simpleAmortizationYear: 123,
excessesBuyPrice: 123,
excessesSellingPrice: 123,
instalationFinancingPercentage: 123,
applyedDiscounts: {
concept: '<string>',
percentage: 123,
absoluteValue: 123,
fromLastDiscountResult: true,
uuid: '<string>'
},
financingConditions: {
anualInterestRate: 123,
anualEquivalentRate: 123,
financingMonths: 123,
initialInvestment: 123,
enableFinancing: true,
financingEntity: '<string>'
},
yearlyEconomicBalance: [
{
production: 123,
excesses: 123,
selfConsumedEnergy: 123,
savings: 123,
accumulatedSavings: 123,
year: 123,
netConsumptionByPeriod: {}
}
]
},
useAlternativePrices: true,
blocked: true,
alternativeEnergyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
alternativePowerPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
usingSipsIntegration: true,
comments: [{content: '<string>'}],
blockedSolarPanelSelection: true,
solarStudyProgress: {
stepsProgress: {},
stepsUpdates: {},
editingSolarStudy: true,
lastStateUpdateMomentMS: 123
},
limitProductionToNominalPower: true,
solarInverters: [
{
idInverter: 1,
efficiency: 97.5,
nominalPower: 5,
name: 'Inverter Model X',
imageUrl: 'http://example.com/image.jpg',
clientUID: 'UID12345',
manufacturingWarranty: 10,
materialsWarranty: 5,
active: true,
referenceId: 'REF12345',
phaseNumber: 'single_phase',
costPerUnit: 1500.75,
documents: [{}],
isMicroinverter: true,
isHybrid: true,
maxCapacityOfBattery: 10000,
description: '<string>',
technicalSheetDocumentURL: 'https://example.com'
}
],
bateries: [
{
idBattery: 123,
manufacturer: {},
solarKits: ['<string>'],
capacity: 123,
name: '<string>'
}
],
activeBatteries: true,
batteriesConfiguration: {
maxCapacityPercentage: 123,
minCapacityPercentage: 123,
initialCapacityPercentage: 123,
batteries: {
idBattery: 123,
manufacturer: {},
solarKits: ['<string>'],
capacity: 123,
name: '<string>'
},
capacity: 123,
cost: {}
},
batteriesEnergyBalance: {},
batteriesResults: {
totalProduction: 123,
totalSavings: 123,
totalSavingsByPeriod: {},
totalConsumptionCoverage: 123,
totalRawSpendingByPeriod: {},
totalRawSpending: 123,
netConsumption: {},
totalNetSpendingByPeriod: {},
totalNetSpending: 123,
excessesCurve: {},
totalExcesses: 123,
totalExcessesByPeriod: {},
contractedPowerSavingsByPeriod: {},
rawPeakConsumptionCostPt: 123,
netPeakConsumptionCostPt: 123,
alternativeTotalNetSpendingByPeriod: {},
totalSavingsByPeriodAlternativeSavings: {},
totalSavingsAlternativePrices: 123
},
periodDistribution: ['<string>'],
reeProfile: {},
lastStateUpdateMomentMS: 123,
scannedInvoinces: {},
monthlyConsumptionAddons: [{}],
layout: '<string>',
selectedConsumptionPattern: {},
monthlyConsumption: 123,
customAssets: ['<string>'],
consumptionAddons: ['<string>'],
selectedCustomAssets: ['<string>'],
applyConsumptionMovementPercentage: {},
referenceId: '<string>',
market: '<string>',
consumerTaskId: 123,
notes: ['<string>'],
kitCategoriesIncluded: {},
obstacles: ['<string>'],
shadowSimulationResults: {
shadowSimulation: [
{panelId: '<string>', shadowSimulationResult: [123], squareGrid: ['<unknown>']}
],
totalComputationTime: 123,
numberOfLightHours: 123,
surfacesToShadow: ['<string>']
},
uploadedProductionCurve: {productionFileCurve: {}, productionFileUrl: '<string>'},
mapCenter: {},
selectedChargers: ['<string>'],
heatpumpStudy: {
creationTimestamp: '<string>',
creationUserUID: '<string>',
lastEditTimestamp: '<string>',
lastEditUserUID: '<string>',
clientUID: '<string>',
name: '<string>',
identifier: '<string>',
clientDetails: {
identifier: '<string>',
contactNumber: '<string>',
sector: '<string>',
email: '<string>',
cups: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressCode: '<string>',
dniOrCif: '<string>',
instalationLocation: '<string>',
city: '<string>',
region: '<string>',
subregion: '<string>',
tariff: '<string>',
surname: '<string>',
includeTaxes: true,
taxesPercentage: 123,
business: true,
businessRepresentative: '<string>',
phonePrefix: '<string>',
phoneCountryCode: '<string>',
typeOfDocument: '<string>',
typeOfClient: '<string>',
cifOfClient: '<string>',
clientBusinessIdentifier: '<string>'
},
mapCenter: {},
selectedCustomAssets: ['<string>'],
economicResults: {},
referenceId: '<string>',
consumptionPattern: {},
market: '<string>',
comments: [{}],
creationSpentTime: {},
heatpumpStudyProgress: {},
lastStateUpdateMomentMS: 123,
selectedHeatpumps: ['<string>'],
heatpumpCalculationMethod: 'SRT',
totalSurface: 123,
buildingOrientation: 123,
numberOfRooms: 123,
heatLoadPerSquareMeter: 123,
geographicalZone: {idZona: 123, nombre: '<string>'},
atrTariff: {idTarifaATR: 123, nombre: '<string>', periods: 123, active: true},
typeOfBuilding: '<string>',
numberHabitants: 123,
numberOfFloors: 123,
originalHeatSystem: '<string>',
originalHeatSystemAnualSpending: 123,
useForHeating: true,
heatEmitors: '<string>',
heatEmitorsAction: '<string>',
useForCooling: true,
coolingEmitors: '<string>',
coolingEmitorsAction: '<string>',
useForWaterHeating: true,
waterHeatingLitersNeeded: 123,
waterHeatingLitersPerDayPerPerson: 123,
waterHeatingLitersAction: '<string>',
heatpumpSelectionMode: '<string>',
heatpumpRecommendedPower: 123,
heatPumpFilters: {},
energyPrices: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
workingHoursByMonth: {},
selectedWorkingHoursProfile: {},
heatpumpMonthlyConsumption: {},
heatpumpAnualConsumption: 123,
consumption: {},
heatpumpAnualSpending: 123,
heatpumpAnualSaving: 123,
notes: ['<string>'],
consumerTaskId: 123
},
radiationAnalysis: {},
extraCostPrice: {p1: 123, p2: 123, p3: 123, p4: 123, p5: 123, p6: 123, units: '<string>'},
powerPricesDiscount: 123,
energyPricesDiscount: 123,
clientDetails: {
identifier: '<string>',
contactNumber: '<string>',
sector: '<string>',
email: '<string>',
cups: '<string>',
phoneNumber: '<string>',
address: '<string>',
addressCode: '<string>',
dniOrCif: '<string>',
instalationLocation: '<string>',
city: '<string>',
region: '<string>',
subregion: '<string>',
tariff: '<string>',
surname: '<string>',
includeTaxes: true,
taxesPercentage: 123,
business: true,
businessRepresentative: '<string>',
phonePrefix: '<string>',
phoneCountryCode: '<string>',
typeOfDocument: '<string>',
typeOfClient: '<string>',
cifOfClient: '<string>',
clientBusinessIdentifier: '<string>'
},
clientsDetails: ['<string>'],
consumerProfiles: ['<string>'],
colectiveResults: {},
colectiveSharingCoeficientsStrategy: {},
colectiveSharingCoefficients: {},
customCoefficients: {},
solarStudyImages: ['<string>'],
colectiveConsumerProfilesEconomicResults: {},
colectiveClientsDetailsEconomicBalance: {},
colectiveProfileExcessesRetribution: {},
colectiveClientsExcessesRetribution: {},
archeliosProIntegrationData: {},
archeliosLastSyncTimestamp: '<string>',
solarStudyAiAgentChatUid: '<string>',
useBatteryAdvancedUI: true,
customFieldsValues: {},
solarDesignerProjectId: '<string>',
singleLineDiagram: {}
})
};
fetch('https://api.suntropy.ai/v2/studies/solar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.suntropy.ai/v2/studies/solar",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'creationTimestamp' => '<string>',
'creationUserUID' => '<string>',
'lastEditTimestamp' => '<string>',
'lastEditUserUID' => '<string>',
'clientUID' => '<string>',
'surfaces' => [
[
'surfaceId' => '<string>',
'name' => '<string>',
'polygonPath' => [
'<string>'
],
'area' => 123,
'dimensions' => [
],
'material' => '<string>',
'inclination' => 123,
'orientation' => 123,
'panelNumber' => 123,
'panelInclination' => 123,
'panelOrientation' => 123,
'panelPosition' => '<string>',
'production' => [
],
'availableAreaPercentage' => 123,
'lossesPercernage' => 123,
'panelsLayoutPolygons' => [
'<string>'
],
'columnDistance' => 123,
'rowDistance' => 123,
'lossesPercentage' => 123,
'color' => '<string>',
'maxPanelNumber' => 123,
'hidePanelLayout' => true,
'autopanelingLayout' => true,
'catastralReference' => '<string>',
'obstacles' => [
'<string>'
]
]
],
'location' => [
'lng' => 123,
'lat' => 123
],
'atrTariff' => [
'idTarifaATR' => 123,
'nombre' => '<string>',
'periods' => 123,
'active' => true
],
'geographicalZone' => [
'idZona' => 123,
'nombre' => '<string>'
],
'energyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'powerPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'contractedPower' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123
],
'solarKit' => [
'idSolarKit' => [
],
'kitSolarPanel' => [
'idKitSolarPanel' => [
],
'manufacturer' => [
'idManufacturer' => 123,
'name' => '<string>',
'clientUID' => '<string>'
],
'solarKits' => [
'<string>'
],
'efficiency' => 123,
'peakPower' => 123,
'name' => '<string>',
'width' => 123,
'heigth' => 123,
'depth' => 123
],
'kitInverter' => [
],
'price' => 123,
'identifier' => '<string>',
'peakPower' => 123,
'clientUID' => '<string>',
'panelNumber' => 123,
'inverterNumber' => 123,
'active' => true,
'coplanar' => true
],
'solarPanel' => [
],
'name' => '<string>',
'identifier' => '<string>',
'consumption' => [
],
'monthPeriodConsumptionDictionary' => [
],
'monthConsumptionDictionary' => [
],
'periodConsumptionDictionary' => [
],
'results' => [
'totalProduction' => 123,
'totalSavings' => 123,
'totalSavingsByPeriod' => [
],
'totalConsumptionCoverage' => 123,
'totalRawSpendingByPeriod' => [
],
'totalRawSpending' => 123,
'netConsumption' => [
],
'totalNetSpendingByPeriod' => [
],
'totalNetSpending' => 123,
'excessesCurve' => [
],
'totalExcesses' => 123,
'totalExcessesByPeriod' => [
],
'contractedPowerSavingsByPeriod' => [
],
'rawPeakConsumptionCostPt' => 123,
'netPeakConsumptionCostPt' => 123,
'alternativeTotalNetSpendingByPeriod' => [
],
'totalSavingsByPeriodAlternativeSavings' => [
],
'totalSavingsAlternativePrices' => 123
],
'peakPowerOptimizationMethod' => [
'maxExcessesPercentage' => 123,
'maxNumberOfOverproductionMonths' => 123
],
'economicResults' => [
'peakPowerCost' => 123,
'instalationLifeTime' => 123,
'margen' => 123,
'commercialFeePercentage' => 123,
'totalCost' => 123,
'payback' => 123,
'irr' => 123,
'reselerFeePercentage' => 123,
'inflation' => 123,
'guaranteeProductionPercentage' => 123,
'simpleAmortizationYear' => 123,
'excessesBuyPrice' => 123,
'excessesSellingPrice' => 123,
'instalationFinancingPercentage' => 123,
'applyedDiscounts' => [
'concept' => '<string>',
'percentage' => 123,
'absoluteValue' => 123,
'fromLastDiscountResult' => true,
'uuid' => '<string>'
],
'financingConditions' => [
'anualInterestRate' => 123,
'anualEquivalentRate' => 123,
'financingMonths' => 123,
'initialInvestment' => 123,
'enableFinancing' => true,
'financingEntity' => '<string>'
],
'yearlyEconomicBalance' => [
[
'production' => 123,
'excesses' => 123,
'selfConsumedEnergy' => 123,
'savings' => 123,
'accumulatedSavings' => 123,
'year' => 123,
'netConsumptionByPeriod' => [
]
]
]
],
'useAlternativePrices' => true,
'blocked' => true,
'alternativeEnergyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'alternativePowerPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'usingSipsIntegration' => true,
'comments' => [
[
'content' => '<string>'
]
],
'blockedSolarPanelSelection' => true,
'solarStudyProgress' => [
'stepsProgress' => [
],
'stepsUpdates' => [
],
'editingSolarStudy' => true,
'lastStateUpdateMomentMS' => 123
],
'limitProductionToNominalPower' => true,
'solarInverters' => [
[
'idInverter' => 1,
'efficiency' => 97.5,
'nominalPower' => 5,
'name' => 'Inverter Model X',
'imageUrl' => 'http://example.com/image.jpg',
'clientUID' => 'UID12345',
'manufacturingWarranty' => 10,
'materialsWarranty' => 5,
'active' => true,
'referenceId' => 'REF12345',
'phaseNumber' => 'single_phase',
'costPerUnit' => 1500.75,
'documents' => [
[
]
],
'isMicroinverter' => true,
'isHybrid' => true,
'maxCapacityOfBattery' => 10000,
'description' => '<string>',
'technicalSheetDocumentURL' => 'https://example.com'
]
],
'bateries' => [
[
'idBattery' => 123,
'manufacturer' => [
],
'solarKits' => [
'<string>'
],
'capacity' => 123,
'name' => '<string>'
]
],
'activeBatteries' => true,
'batteriesConfiguration' => [
'maxCapacityPercentage' => 123,
'minCapacityPercentage' => 123,
'initialCapacityPercentage' => 123,
'batteries' => [
'idBattery' => 123,
'manufacturer' => [
],
'solarKits' => [
'<string>'
],
'capacity' => 123,
'name' => '<string>'
],
'capacity' => 123,
'cost' => [
]
],
'batteriesEnergyBalance' => [
],
'batteriesResults' => [
'totalProduction' => 123,
'totalSavings' => 123,
'totalSavingsByPeriod' => [
],
'totalConsumptionCoverage' => 123,
'totalRawSpendingByPeriod' => [
],
'totalRawSpending' => 123,
'netConsumption' => [
],
'totalNetSpendingByPeriod' => [
],
'totalNetSpending' => 123,
'excessesCurve' => [
],
'totalExcesses' => 123,
'totalExcessesByPeriod' => [
],
'contractedPowerSavingsByPeriod' => [
],
'rawPeakConsumptionCostPt' => 123,
'netPeakConsumptionCostPt' => 123,
'alternativeTotalNetSpendingByPeriod' => [
],
'totalSavingsByPeriodAlternativeSavings' => [
],
'totalSavingsAlternativePrices' => 123
],
'periodDistribution' => [
'<string>'
],
'reeProfile' => [
],
'lastStateUpdateMomentMS' => 123,
'scannedInvoinces' => [
],
'monthlyConsumptionAddons' => [
[
]
],
'layout' => '<string>',
'selectedConsumptionPattern' => [
],
'monthlyConsumption' => 123,
'customAssets' => [
'<string>'
],
'consumptionAddons' => [
'<string>'
],
'selectedCustomAssets' => [
'<string>'
],
'applyConsumptionMovementPercentage' => [
],
'referenceId' => '<string>',
'market' => '<string>',
'consumerTaskId' => 123,
'notes' => [
'<string>'
],
'kitCategoriesIncluded' => [
],
'obstacles' => [
'<string>'
],
'shadowSimulationResults' => [
'shadowSimulation' => [
[
'panelId' => '<string>',
'shadowSimulationResult' => [
123
],
'squareGrid' => [
'<unknown>'
]
]
],
'totalComputationTime' => 123,
'numberOfLightHours' => 123,
'surfacesToShadow' => [
'<string>'
]
],
'uploadedProductionCurve' => [
'productionFileCurve' => [
],
'productionFileUrl' => '<string>'
],
'mapCenter' => [
],
'selectedChargers' => [
'<string>'
],
'heatpumpStudy' => [
'creationTimestamp' => '<string>',
'creationUserUID' => '<string>',
'lastEditTimestamp' => '<string>',
'lastEditUserUID' => '<string>',
'clientUID' => '<string>',
'name' => '<string>',
'identifier' => '<string>',
'clientDetails' => [
'identifier' => '<string>',
'contactNumber' => '<string>',
'sector' => '<string>',
'email' => '<string>',
'cups' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressCode' => '<string>',
'dniOrCif' => '<string>',
'instalationLocation' => '<string>',
'city' => '<string>',
'region' => '<string>',
'subregion' => '<string>',
'tariff' => '<string>',
'surname' => '<string>',
'includeTaxes' => true,
'taxesPercentage' => 123,
'business' => true,
'businessRepresentative' => '<string>',
'phonePrefix' => '<string>',
'phoneCountryCode' => '<string>',
'typeOfDocument' => '<string>',
'typeOfClient' => '<string>',
'cifOfClient' => '<string>',
'clientBusinessIdentifier' => '<string>'
],
'mapCenter' => [
],
'selectedCustomAssets' => [
'<string>'
],
'economicResults' => [
],
'referenceId' => '<string>',
'consumptionPattern' => [
],
'market' => '<string>',
'comments' => [
[
]
],
'creationSpentTime' => [
],
'heatpumpStudyProgress' => [
],
'lastStateUpdateMomentMS' => 123,
'selectedHeatpumps' => [
'<string>'
],
'heatpumpCalculationMethod' => 'SRT',
'totalSurface' => 123,
'buildingOrientation' => 123,
'numberOfRooms' => 123,
'heatLoadPerSquareMeter' => 123,
'geographicalZone' => [
'idZona' => 123,
'nombre' => '<string>'
],
'atrTariff' => [
'idTarifaATR' => 123,
'nombre' => '<string>',
'periods' => 123,
'active' => true
],
'typeOfBuilding' => '<string>',
'numberHabitants' => 123,
'numberOfFloors' => 123,
'originalHeatSystem' => '<string>',
'originalHeatSystemAnualSpending' => 123,
'useForHeating' => true,
'heatEmitors' => '<string>',
'heatEmitorsAction' => '<string>',
'useForCooling' => true,
'coolingEmitors' => '<string>',
'coolingEmitorsAction' => '<string>',
'useForWaterHeating' => true,
'waterHeatingLitersNeeded' => 123,
'waterHeatingLitersPerDayPerPerson' => 123,
'waterHeatingLitersAction' => '<string>',
'heatpumpSelectionMode' => '<string>',
'heatpumpRecommendedPower' => 123,
'heatPumpFilters' => [
],
'energyPrices' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'workingHoursByMonth' => [
],
'selectedWorkingHoursProfile' => [
],
'heatpumpMonthlyConsumption' => [
],
'heatpumpAnualConsumption' => 123,
'consumption' => [
],
'heatpumpAnualSpending' => 123,
'heatpumpAnualSaving' => 123,
'notes' => [
'<string>'
],
'consumerTaskId' => 123
],
'radiationAnalysis' => [
],
'extraCostPrice' => [
'p1' => 123,
'p2' => 123,
'p3' => 123,
'p4' => 123,
'p5' => 123,
'p6' => 123,
'units' => '<string>'
],
'powerPricesDiscount' => 123,
'energyPricesDiscount' => 123,
'clientDetails' => [
'identifier' => '<string>',
'contactNumber' => '<string>',
'sector' => '<string>',
'email' => '<string>',
'cups' => '<string>',
'phoneNumber' => '<string>',
'address' => '<string>',
'addressCode' => '<string>',
'dniOrCif' => '<string>',
'instalationLocation' => '<string>',
'city' => '<string>',
'region' => '<string>',
'subregion' => '<string>',
'tariff' => '<string>',
'surname' => '<string>',
'includeTaxes' => true,
'taxesPercentage' => 123,
'business' => true,
'businessRepresentative' => '<string>',
'phonePrefix' => '<string>',
'phoneCountryCode' => '<string>',
'typeOfDocument' => '<string>',
'typeOfClient' => '<string>',
'cifOfClient' => '<string>',
'clientBusinessIdentifier' => '<string>'
],
'clientsDetails' => [
'<string>'
],
'consumerProfiles' => [
'<string>'
],
'colectiveResults' => [
],
'colectiveSharingCoeficientsStrategy' => [
],
'colectiveSharingCoefficients' => [
],
'customCoefficients' => [
],
'solarStudyImages' => [
'<string>'
],
'colectiveConsumerProfilesEconomicResults' => [
],
'colectiveClientsDetailsEconomicBalance' => [
],
'colectiveProfileExcessesRetribution' => [
],
'colectiveClientsExcessesRetribution' => [
],
'archeliosProIntegrationData' => [
],
'archeliosLastSyncTimestamp' => '<string>',
'solarStudyAiAgentChatUid' => '<string>',
'useBatteryAdvancedUI' => true,
'customFieldsValues' => [
],
'solarDesignerProjectId' => '<string>',
'singleLineDiagram' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.suntropy.ai/v2/studies/solar"
payload := strings.NewReader("{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.suntropy.ai/v2/studies/solar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/studies/solar")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"surfaces\": [\n {\n \"surfaceId\": \"<string>\",\n \"name\": \"<string>\",\n \"polygonPath\": [\n \"<string>\"\n ],\n \"area\": 123,\n \"dimensions\": {},\n \"material\": \"<string>\",\n \"inclination\": 123,\n \"orientation\": 123,\n \"panelNumber\": 123,\n \"panelInclination\": 123,\n \"panelOrientation\": 123,\n \"panelPosition\": \"<string>\",\n \"production\": {},\n \"availableAreaPercentage\": 123,\n \"lossesPercernage\": 123,\n \"panelsLayoutPolygons\": [\n \"<string>\"\n ],\n \"columnDistance\": 123,\n \"rowDistance\": 123,\n \"lossesPercentage\": 123,\n \"color\": \"<string>\",\n \"maxPanelNumber\": 123,\n \"hidePanelLayout\": true,\n \"autopanelingLayout\": true,\n \"catastralReference\": \"<string>\",\n \"obstacles\": [\n \"<string>\"\n ]\n }\n ],\n \"location\": {\n \"lng\": 123,\n \"lat\": 123\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"contractedPower\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123\n },\n \"solarKit\": {\n \"idSolarKit\": {},\n \"kitSolarPanel\": {\n \"idKitSolarPanel\": {},\n \"manufacturer\": {\n \"idManufacturer\": 123,\n \"name\": \"<string>\",\n \"clientUID\": \"<string>\"\n },\n \"solarKits\": [\n \"<string>\"\n ],\n \"efficiency\": 123,\n \"peakPower\": 123,\n \"name\": \"<string>\",\n \"width\": 123,\n \"heigth\": 123,\n \"depth\": 123\n },\n \"kitInverter\": {},\n \"price\": 123,\n \"identifier\": \"<string>\",\n \"peakPower\": 123,\n \"clientUID\": \"<string>\",\n \"panelNumber\": 123,\n \"inverterNumber\": 123,\n \"active\": true,\n \"coplanar\": true\n },\n \"solarPanel\": {},\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"consumption\": {},\n \"monthPeriodConsumptionDictionary\": {},\n \"monthConsumptionDictionary\": {},\n \"periodConsumptionDictionary\": {},\n \"results\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"peakPowerOptimizationMethod\": {\n \"maxExcessesPercentage\": 123,\n \"maxNumberOfOverproductionMonths\": 123\n },\n \"economicResults\": {\n \"peakPowerCost\": 123,\n \"instalationLifeTime\": 123,\n \"margen\": 123,\n \"commercialFeePercentage\": 123,\n \"totalCost\": 123,\n \"payback\": 123,\n \"irr\": 123,\n \"reselerFeePercentage\": 123,\n \"inflation\": 123,\n \"guaranteeProductionPercentage\": 123,\n \"simpleAmortizationYear\": 123,\n \"excessesBuyPrice\": 123,\n \"excessesSellingPrice\": 123,\n \"instalationFinancingPercentage\": 123,\n \"applyedDiscounts\": {\n \"concept\": \"<string>\",\n \"percentage\": 123,\n \"absoluteValue\": 123,\n \"fromLastDiscountResult\": true,\n \"uuid\": \"<string>\"\n },\n \"financingConditions\": {\n \"anualInterestRate\": 123,\n \"anualEquivalentRate\": 123,\n \"financingMonths\": 123,\n \"initialInvestment\": 123,\n \"enableFinancing\": true,\n \"financingEntity\": \"<string>\"\n },\n \"yearlyEconomicBalance\": [\n {\n \"production\": 123,\n \"excesses\": 123,\n \"selfConsumedEnergy\": 123,\n \"savings\": 123,\n \"accumulatedSavings\": 123,\n \"year\": 123,\n \"netConsumptionByPeriod\": {}\n }\n ]\n },\n \"useAlternativePrices\": true,\n \"blocked\": true,\n \"alternativeEnergyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"alternativePowerPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"usingSipsIntegration\": true,\n \"comments\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"blockedSolarPanelSelection\": true,\n \"solarStudyProgress\": {\n \"stepsProgress\": {},\n \"stepsUpdates\": {},\n \"editingSolarStudy\": true,\n \"lastStateUpdateMomentMS\": 123\n },\n \"limitProductionToNominalPower\": true,\n \"solarInverters\": [\n {\n \"idInverter\": 1,\n \"efficiency\": 97.5,\n \"nominalPower\": 5,\n \"name\": \"Inverter Model X\",\n \"imageUrl\": \"http://example.com/image.jpg\",\n \"clientUID\": \"UID12345\",\n \"manufacturingWarranty\": 10,\n \"materialsWarranty\": 5,\n \"active\": true,\n \"referenceId\": \"REF12345\",\n \"phaseNumber\": \"single_phase\",\n \"costPerUnit\": 1500.75,\n \"documents\": [\n {}\n ],\n \"isMicroinverter\": true,\n \"isHybrid\": true,\n \"maxCapacityOfBattery\": 10000,\n \"description\": \"<string>\",\n \"technicalSheetDocumentURL\": \"https://example.com\"\n }\n ],\n \"bateries\": [\n {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n }\n ],\n \"activeBatteries\": true,\n \"batteriesConfiguration\": {\n \"maxCapacityPercentage\": 123,\n \"minCapacityPercentage\": 123,\n \"initialCapacityPercentage\": 123,\n \"batteries\": {\n \"idBattery\": 123,\n \"manufacturer\": {},\n \"solarKits\": [\n \"<string>\"\n ],\n \"capacity\": 123,\n \"name\": \"<string>\"\n },\n \"capacity\": 123,\n \"cost\": {}\n },\n \"batteriesEnergyBalance\": {},\n \"batteriesResults\": {\n \"totalProduction\": 123,\n \"totalSavings\": 123,\n \"totalSavingsByPeriod\": {},\n \"totalConsumptionCoverage\": 123,\n \"totalRawSpendingByPeriod\": {},\n \"totalRawSpending\": 123,\n \"netConsumption\": {},\n \"totalNetSpendingByPeriod\": {},\n \"totalNetSpending\": 123,\n \"excessesCurve\": {},\n \"totalExcesses\": 123,\n \"totalExcessesByPeriod\": {},\n \"contractedPowerSavingsByPeriod\": {},\n \"rawPeakConsumptionCostPt\": 123,\n \"netPeakConsumptionCostPt\": 123,\n \"alternativeTotalNetSpendingByPeriod\": {},\n \"totalSavingsByPeriodAlternativeSavings\": {},\n \"totalSavingsAlternativePrices\": 123\n },\n \"periodDistribution\": [\n \"<string>\"\n ],\n \"reeProfile\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"scannedInvoinces\": {},\n \"monthlyConsumptionAddons\": [\n {}\n ],\n \"layout\": \"<string>\",\n \"selectedConsumptionPattern\": {},\n \"monthlyConsumption\": 123,\n \"customAssets\": [\n \"<string>\"\n ],\n \"consumptionAddons\": [\n \"<string>\"\n ],\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"applyConsumptionMovementPercentage\": {},\n \"referenceId\": \"<string>\",\n \"market\": \"<string>\",\n \"consumerTaskId\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"kitCategoriesIncluded\": {},\n \"obstacles\": [\n \"<string>\"\n ],\n \"shadowSimulationResults\": {\n \"shadowSimulation\": [\n {\n \"panelId\": \"<string>\",\n \"shadowSimulationResult\": [\n 123\n ],\n \"squareGrid\": [\n \"<unknown>\"\n ]\n }\n ],\n \"totalComputationTime\": 123,\n \"numberOfLightHours\": 123,\n \"surfacesToShadow\": [\n \"<string>\"\n ]\n },\n \"uploadedProductionCurve\": {\n \"productionFileCurve\": {},\n \"productionFileUrl\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedChargers\": [\n \"<string>\"\n ],\n \"heatpumpStudy\": {\n \"creationTimestamp\": \"<string>\",\n \"creationUserUID\": \"<string>\",\n \"lastEditTimestamp\": \"<string>\",\n \"lastEditUserUID\": \"<string>\",\n \"clientUID\": \"<string>\",\n \"name\": \"<string>\",\n \"identifier\": \"<string>\",\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"mapCenter\": {},\n \"selectedCustomAssets\": [\n \"<string>\"\n ],\n \"economicResults\": {},\n \"referenceId\": \"<string>\",\n \"consumptionPattern\": {},\n \"market\": \"<string>\",\n \"comments\": [\n {}\n ],\n \"creationSpentTime\": {},\n \"heatpumpStudyProgress\": {},\n \"lastStateUpdateMomentMS\": 123,\n \"selectedHeatpumps\": [\n \"<string>\"\n ],\n \"heatpumpCalculationMethod\": \"SRT\",\n \"totalSurface\": 123,\n \"buildingOrientation\": 123,\n \"numberOfRooms\": 123,\n \"heatLoadPerSquareMeter\": 123,\n \"geographicalZone\": {\n \"idZona\": 123,\n \"nombre\": \"<string>\"\n },\n \"atrTariff\": {\n \"idTarifaATR\": 123,\n \"nombre\": \"<string>\",\n \"periods\": 123,\n \"active\": true\n },\n \"typeOfBuilding\": \"<string>\",\n \"numberHabitants\": 123,\n \"numberOfFloors\": 123,\n \"originalHeatSystem\": \"<string>\",\n \"originalHeatSystemAnualSpending\": 123,\n \"useForHeating\": true,\n \"heatEmitors\": \"<string>\",\n \"heatEmitorsAction\": \"<string>\",\n \"useForCooling\": true,\n \"coolingEmitors\": \"<string>\",\n \"coolingEmitorsAction\": \"<string>\",\n \"useForWaterHeating\": true,\n \"waterHeatingLitersNeeded\": 123,\n \"waterHeatingLitersPerDayPerPerson\": 123,\n \"waterHeatingLitersAction\": \"<string>\",\n \"heatpumpSelectionMode\": \"<string>\",\n \"heatpumpRecommendedPower\": 123,\n \"heatPumpFilters\": {},\n \"energyPrices\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"workingHoursByMonth\": {},\n \"selectedWorkingHoursProfile\": {},\n \"heatpumpMonthlyConsumption\": {},\n \"heatpumpAnualConsumption\": 123,\n \"consumption\": {},\n \"heatpumpAnualSpending\": 123,\n \"heatpumpAnualSaving\": 123,\n \"notes\": [\n \"<string>\"\n ],\n \"consumerTaskId\": 123\n },\n \"radiationAnalysis\": {},\n \"extraCostPrice\": {\n \"p1\": 123,\n \"p2\": 123,\n \"p3\": 123,\n \"p4\": 123,\n \"p5\": 123,\n \"p6\": 123,\n \"units\": \"<string>\"\n },\n \"powerPricesDiscount\": 123,\n \"energyPricesDiscount\": 123,\n \"clientDetails\": {\n \"identifier\": \"<string>\",\n \"contactNumber\": \"<string>\",\n \"sector\": \"<string>\",\n \"email\": \"<string>\",\n \"cups\": \"<string>\",\n \"phoneNumber\": \"<string>\",\n \"address\": \"<string>\",\n \"addressCode\": \"<string>\",\n \"dniOrCif\": \"<string>\",\n \"instalationLocation\": \"<string>\",\n \"city\": \"<string>\",\n \"region\": \"<string>\",\n \"subregion\": \"<string>\",\n \"tariff\": \"<string>\",\n \"surname\": \"<string>\",\n \"includeTaxes\": true,\n \"taxesPercentage\": 123,\n \"business\": true,\n \"businessRepresentative\": \"<string>\",\n \"phonePrefix\": \"<string>\",\n \"phoneCountryCode\": \"<string>\",\n \"typeOfDocument\": \"<string>\",\n \"typeOfClient\": \"<string>\",\n \"cifOfClient\": \"<string>\",\n \"clientBusinessIdentifier\": \"<string>\"\n },\n \"clientsDetails\": [\n \"<string>\"\n ],\n \"consumerProfiles\": [\n \"<string>\"\n ],\n \"colectiveResults\": {},\n \"colectiveSharingCoeficientsStrategy\": {},\n \"colectiveSharingCoefficients\": {},\n \"customCoefficients\": {},\n \"solarStudyImages\": [\n \"<string>\"\n ],\n \"colectiveConsumerProfilesEconomicResults\": {},\n \"colectiveClientsDetailsEconomicBalance\": {},\n \"colectiveProfileExcessesRetribution\": {},\n \"colectiveClientsExcessesRetribution\": {},\n \"archeliosProIntegrationData\": {},\n \"archeliosLastSyncTimestamp\": \"<string>\",\n \"solarStudyAiAgentChatUid\": \"<string>\",\n \"useBatteryAdvancedUI\": true,\n \"customFieldsValues\": {},\n \"solarDesignerProjectId\": \"<string>\",\n \"singleLineDiagram\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"surfaces": [
{
"surfaceId": "<string>",
"name": "<string>",
"polygonPath": [
"<string>"
],
"area": 123,
"dimensions": {},
"material": "<string>",
"inclination": 123,
"orientation": 123,
"panelNumber": 123,
"panelInclination": 123,
"panelOrientation": 123,
"panelPosition": "<string>",
"production": {},
"availableAreaPercentage": 123,
"lossesPercernage": 123,
"panelsLayoutPolygons": [
"<string>"
],
"columnDistance": 123,
"rowDistance": 123,
"lossesPercentage": 123,
"color": "<string>",
"maxPanelNumber": 123,
"hidePanelLayout": true,
"autopanelingLayout": true,
"catastralReference": "<string>",
"obstacles": [
"<string>"
]
}
],
"location": {
"lng": 123,
"lat": 123
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"contractedPower": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123
},
"solarKit": {
"idSolarKit": {},
"kitSolarPanel": {
"idKitSolarPanel": {},
"manufacturer": {
"idManufacturer": 123,
"name": "<string>",
"clientUID": "<string>"
},
"solarKits": [
"<string>"
],
"efficiency": 123,
"peakPower": 123,
"name": "<string>",
"width": 123,
"heigth": 123,
"depth": 123
},
"kitInverter": {},
"price": 123,
"identifier": "<string>",
"peakPower": 123,
"clientUID": "<string>",
"panelNumber": 123,
"inverterNumber": 123,
"phaseNumber": "single_phase",
"active": true,
"coplanar": true
},
"solarPanel": {},
"peakPowerIntroductionMode": "solarPanel",
"name": "<string>",
"identifier": "<string>",
"consumption": {},
"monthPeriodConsumptionDictionary": {},
"monthConsumptionDictionary": {},
"periodConsumptionDictionary": {},
"results": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"instalationPhaseNumber": "single_phase",
"installationConnectionType": "gridConnected",
"consumptionIntroductionMode": "cups",
"peakPowerOptimizationMethod": {
"maxExcessesPercentage": 123,
"maxNumberOfOverproductionMonths": 123
},
"economicResults": {
"peakPowerCost": 123,
"instalationLifeTime": 123,
"margen": 123,
"commercialFeePercentage": 123,
"totalCost": 123,
"payback": 123,
"irr": 123,
"reselerFeePercentage": 123,
"inflation": 123,
"guaranteeProductionPercentage": 123,
"simpleAmortizationYear": 123,
"excessesCompensationMode": "PPA",
"excessesBuyPrice": 123,
"excessesSellingPrice": 123,
"instalationFinancingPercentage": 123,
"applyedDiscounts": {
"concept": "<string>",
"percentage": 123,
"absoluteValue": 123,
"fromLastDiscountResult": true,
"uuid": "<string>"
},
"financingConditions": {
"anualInterestRate": 123,
"anualEquivalentRate": 123,
"financingMonths": 123,
"initialInvestment": 123,
"enableFinancing": true,
"financingEntity": "<string>"
},
"yearlyEconomicBalance": [
{
"production": 123,
"excesses": 123,
"selfConsumedEnergy": 123,
"savings": 123,
"accumulatedSavings": 123,
"year": 123,
"netConsumptionByPeriod": {}
}
]
},
"useAlternativePrices": true,
"blocked": true,
"alternativeEnergyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"alternativePowerPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"usingSipsIntegration": true,
"comments": [
{
"content": "<string>"
}
],
"blockedSolarPanelSelection": true,
"solarStudyProgress": {
"stepsProgress": {},
"stepsUpdates": {},
"editingSolarStudy": true,
"lastStateUpdateMomentMS": 123
},
"limitProductionToNominalPower": true,
"solarInverters": [
{
"idInverter": 1,
"efficiency": 97.5,
"nominalPower": 5,
"name": "Inverter Model X",
"imageUrl": "http://example.com/image.jpg",
"clientUID": "UID12345",
"manufacturingWarranty": 10,
"materialsWarranty": 5,
"active": true,
"referenceId": "REF12345",
"phaseNumber": "single_phase",
"costPerUnit": 1500.75,
"manufacturer": {
"name": "Manufacturer X",
"idManufacturer": 1,
"clientUID": "UID12345",
"imageUrl": "http://example.com/image.jpg"
},
"documents": [
{}
],
"isMicroinverter": true,
"isHybrid": true,
"maxCapacityOfBattery": 10000,
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
}
],
"bateries": [
{
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
}
],
"activeBatteries": true,
"batteriesConfiguration": {
"maxCapacityPercentage": 123,
"minCapacityPercentage": 123,
"initialCapacityPercentage": 123,
"batteries": {
"idBattery": 123,
"manufacturer": {},
"solarKits": [
"<string>"
],
"capacity": 123,
"name": "<string>"
},
"capacity": 123,
"cost": {}
},
"batteriesEnergyBalance": {},
"batteriesResults": {
"totalProduction": 123,
"totalSavings": 123,
"totalSavingsByPeriod": {},
"totalConsumptionCoverage": 123,
"totalRawSpendingByPeriod": {},
"totalRawSpending": 123,
"netConsumption": {},
"totalNetSpendingByPeriod": {},
"totalNetSpending": 123,
"excessesCurve": {},
"totalExcesses": 123,
"totalExcessesByPeriod": {},
"contractedPowerSavingsByPeriod": {},
"rawPeakConsumptionCostPt": 123,
"netPeakConsumptionCostPt": 123,
"alternativeTotalNetSpendingByPeriod": {},
"totalSavingsByPeriodAlternativeSavings": {},
"totalSavingsAlternativePrices": 123
},
"periodDistribution": [
"<string>"
],
"reeProfile": {},
"lastStateUpdateMomentMS": 123,
"scannedInvoinces": {},
"monthlyConsumptionAddons": [
{}
],
"layout": "<string>",
"selectedConsumptionPattern": {},
"monthlyConsumption": 123,
"customAssets": [
"<string>"
],
"consumptionAddons": [
"<string>"
],
"selectedCustomAssets": [
"<string>"
],
"applyConsumptionMovementPercentage": {},
"referenceId": "<string>",
"market": "<string>",
"consumerTaskId": 123,
"notes": [
"<string>"
],
"kitCategoriesIncluded": {},
"obstacles": [
"<string>"
],
"shadowSimulationResults": {
"shadowSimulation": [
{
"panelId": "<string>",
"shadowSimulationResult": [
123
],
"squareGrid": [
"<unknown>"
]
}
],
"totalComputationTime": 123,
"numberOfLightHours": 123,
"surfacesToShadow": [
"<string>"
]
},
"uploadedProductionCurve": {
"productionFileCurve": {},
"productionFileUrl": "<string>",
"productionFileOrigin": "archelios"
},
"mapCenter": {},
"selectedSolarStudyMode": "individual",
"selectedChargers": [
"<string>"
],
"heatpumpStudy": {
"creationTimestamp": "<string>",
"creationUserUID": "<string>",
"lastEditTimestamp": "<string>",
"lastEditUserUID": "<string>",
"clientUID": "<string>",
"name": "<string>",
"identifier": "<string>",
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"mapCenter": {},
"instalationPhaseNumber": "single_phase",
"selectedCustomAssets": [
"<string>"
],
"economicResults": {},
"referenceId": "<string>",
"consumptionPattern": {},
"market": "<string>",
"comments": [
{}
],
"creationSpentTime": {},
"heatpumpStudyProgress": {},
"lastStateUpdateMomentMS": 123,
"selectedHeatpumps": [
"<string>"
],
"heatpumpCalculationMethod": "SRT",
"totalSurface": 123,
"buildingOrientation": 123,
"isolationType": "good-isolation",
"numberOfRooms": 123,
"heatLoadPerSquareMeter": 123,
"geographicalZone": {
"idZona": 123,
"nombre": "<string>"
},
"atrTariff": {
"idTarifaATR": 123,
"nombre": "<string>",
"periods": 123,
"active": true
},
"typeOfBuilding": "<string>",
"numberHabitants": 123,
"numberOfFloors": 123,
"originalHeatSystem": "<string>",
"originalHeatSystemAnualSpending": 123,
"useForHeating": true,
"heatEmitors": "<string>",
"heatEmitorsAction": "<string>",
"useForCooling": true,
"coolingEmitors": "<string>",
"coolingEmitorsAction": "<string>",
"useForWaterHeating": true,
"waterHeatingLitersNeeded": 123,
"waterHeatingLitersPerDayPerPerson": 123,
"waterHeatingLitersAction": "<string>",
"heatpumpSelectionMode": "<string>",
"heatpumpRecommendedPower": 123,
"selectedHeatpumpsKit": {
"idHeatpumpKit": 1,
"price": 1000.5,
"clientUID": "C123",
"identifier": "SK123",
"defaultTaxesPercentage": 15,
"materialsWarranty": 5,
"referenceId": "REF123",
"useTotalKitCostAsPrice": true,
"heatpumpKitCustomAssets": [
"<string>"
],
"active": true,
"heatpump": {
"identifier": "Heatpump X",
"idHeatpump": 1,
"manufacturer": {
"name": "Manufacturer X",
"idManufacturer": 1,
"clientUID": "UID12345",
"imageUrl": "http://example.com/image.jpg"
},
"width": 20,
"height": 50,
"depth": 10,
"lowerPower": 50,
"upperPower": 50,
"price": 500.75,
"clientUID": "C123",
"manufacturingWarranty": 2,
"materialsWarranty": 1,
"referenceId": "REF123",
"costPerUnit": 250.25,
"documents": "http://example.com/docs",
"imageUrl": "http://example.com/image.jpg",
"active": true,
"scop": true,
"phases_number": true,
"heatpumpKits": "<array>",
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
},
"description": "<string>",
"technicalSheetDocumentURL": "https://example.com"
},
"heatPumpFilters": {},
"energyPrices": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"workingHoursByMonth": {},
"selectedWorkingHoursProfile": {},
"heatpumpMonthlyConsumption": {},
"heatpumpAnualConsumption": 123,
"consumption": {},
"heatpumpAnualSpending": 123,
"heatpumpAnualSaving": 123,
"notes": [
"<string>"
],
"consumerTaskId": 123,
"studyMode": "individual"
},
"radiationAnalysis": {},
"extraCostPrice": {
"p1": 123,
"p2": 123,
"p3": 123,
"p4": 123,
"p5": 123,
"p6": 123,
"units": "<string>"
},
"powerPricesDiscount": 123,
"energyPricesDiscount": 123,
"clientDetails": {
"identifier": "<string>",
"contactNumber": "<string>",
"sector": "<string>",
"email": "<string>",
"cups": "<string>",
"phoneNumber": "<string>",
"address": "<string>",
"addressCode": "<string>",
"dniOrCif": "<string>",
"instalationLocation": "<string>",
"city": "<string>",
"region": "<string>",
"subregion": "<string>",
"tariff": "<string>",
"surname": "<string>",
"includeTaxes": true,
"taxesPercentage": 123,
"business": true,
"businessRepresentative": "<string>",
"phonePrefix": "<string>",
"phoneCountryCode": "<string>",
"typeOfDocument": "<string>",
"typeOfClient": "<string>",
"cifOfClient": "<string>",
"clientBusinessIdentifier": "<string>"
},
"clientsDetails": [
"<string>"
],
"consumerProfiles": [
"<string>"
],
"colectiveResults": {},
"colectiveSharingCoeficientsStrategy": {},
"colectiveSharingCoefficients": {},
"customCoefficients": {},
"solarStudyImages": [
"<string>"
],
"colectiveConsumerProfilesEconomicResults": {},
"colectiveClientsDetailsEconomicBalance": {},
"colectiveProfileExcessesRetribution": {},
"colectiveClientsExcessesRetribution": {},
"archeliosProIntegrationData": {},
"archeliosLastSyncTimestamp": "<string>",
"solarStudyAiAgentChatUid": "<string>",
"useBatteryAdvancedUI": true,
"customFieldsValues": {},
"solarDesignerProjectId": "<string>",
"singleLineDiagram": {}
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"warning": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Identifier for the state of the solar study
Used to add default client configuration to solar study, applies after merging mock with input study. Can be configured in Configuration Tab -> Self Consumption Study
Used to create a shareable automatically when a study is created
Identifier of the template used while creating shareable, must be input if create shareable is enabled
Amount of days the automatically created shareable stays valid, counting from the creation date. Only applies if create shareable is enabled. Must be a positive integer, otherwise the default of 15 days is used
Save as a new copy of an existing study: the name gets a " (n)" suffix when it is repeated and the saveAsNewSolarStudy automation event is emitted.
true, false Body
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
solarPanel, solarKit Show child attributes
Show child attributes
single_phase, three_phase gridConnected, offGrid cups, periods, monthly_consumption, monthly_periods, upload, datadis, consumptionByPeriod Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
individual, colective, VECharger, heatpumps, battery Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes