API reference · version 1.0.0

Solarise Solar Potential & Financial Analysis API documentation

One HTTPS request returns a complete roof, solar and financial analysis of a property. This page documents the endpoint, every field, the errors and the rules for retries and rate limits. New to the API? See what the Solar Potential & Financial Analysis API does.

Endpoint
POST https://app.solarise.app/api/v1/roof-analyses
Authentication
Authorization: Bearer <key>
Format
JSON in and out: application/json
OpenAPI
openapi.json (OpenAPI 3.1.0)

What the API does

The Solar Potential & Financial Analysis API analyses one property per request. You send a location; Solarise finds the building, selects the best available aerial imagery, identifies the roof and its faces, places panels and sizes a solar system for each preset of your SunnyForm. Each system comes back priced with your products, prices and discounts, with its payback, savings, a 25-year projection, battery figures, monthly production and financing.

It is the analysis the Solarise calculator runs for your website visitors, without the visitor: nobody selects the roof by hand. Use it to enrich CRM leads, power your own quoting tool or analyse many properties in bulk.

POST /api/v1/roof-analyses · Analyse a roof's solar potential and financials

Runs Solarise's complete analysis for one property and returns the result: Solarise finds the location, selects the best aerial imagery, identifies the building and its roof faces, places panels, sizes a system for every preset of the SunnyForm, and prices and finances each one. A successful analysis uses one measurement of your plan; a failed one uses none. Analyses usually take 30 to 90 seconds.

Quick start

  1. Create a free Solarise account, sign in to the dashboard, open API and create an API key. Copy it straight away: it is shown only once.
  2. Store the key on your server, for example in the SOLARISE_API_KEY environment variable.
  3. Send your first analysis from a terminal.

Coordinates only: Solarise defaults for the country

curl -X POST https://app.solarise.app/api/v1/roof-analyses \
  -H "Authorization: Bearer $SOLARISE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  --max-time 180 \
  -d '{
  "location": {
    "latitude": 53.3438,
    "longitude": -6.2546
  }
}'

The response arrives in the same request, usually after 30 to 90 seconds. Without sunnyform_id, Solarise prices the systems with its defaults for the property’s country; send your own SunnyForm to use your products and prices.

Coverage

  • Roof analysis works worldwide wherever suitable aerial imagery exists. Where none is available, the request fails with no_imagery_available and is not charged.
  • Electricity prices: Solarise has default import and export prices for 45+ countries, with US prices by state and UK prices by region. Other countries use a general default, so send import_price_per_kwh and export_price_per_kwh there for accurate savings.
  • Roof geometry: Solarise also measures roofs with open elevation surveys: LIDAR in England, Wales, Scotland, the Netherlands, North Rhine-Westphalia, Hesse and most of France, and surface models from aerial photography in Brandenburg, Berlin, Mecklenburg-Western Pomerania and the rest of France. Elsewhere it measures the roof from the imagery.
  • Tariffs: STANDARD works everywhere; OCTOPUS_FLUX and ECONOMY_7 are UK tariffs.
  • Currencies: results are in the SunnyForm’s currency, which can be any currency a SunnyForm supports.
  • Buildings: houses, commercial buildings and apartment buildings, set with building_type; COMMUNITY is the value for an apartment building.

Authentication

Every request needs an API key in the Authorization header: Authorization: Bearer <key>. Keys look like solarise_sk_<id>_<secret>.

  • Create a key: sign in to the Solarise dashboard, open API and create an API key. The full key is shown once; store it in your secret manager or server environment straight away. Afterwards the dashboard shows only its non-secret beginning.
  • Revoke or regenerate: revoke a key you no longer need, or regenerate it to replace it under the same name. In both cases the old key stops working immediately.
  • Scope: a key belongs to one company. It can use that company’s SunnyForms and draws on the account’s measurements.
  • Keep it server-side: never put a key in a website, mobile app, repository or log. Anyone with the key can run analyses on your plan.

A missing, unknown or revoked key returns missing_api_key, invalid_api_key or api_key_revoked (HTTP 401). A key of an inactive account returns account_inactive (HTTP 403).

Measurements and billing

  • Each successful analysis uses one measurement of your Solarise plan. The API shares the measurement balance with your SunnyForm calculators.
  • Solarise checks the balance before the analysis starts. With no measurements left, or with a paused subscription, the request fails at once with insufficient_measurements (HTTP 402) and nothing runs. Add measurements in the dashboard and send the request again.
  • Failed analyses are never charged. When an analysis fails after it started, its measurement goes back to your balance.
  • A retry with the same Idempotency-Key returns the stored result without using another measurement.
  • Every successful response reports measurements.charged and measurements.remaining, so you can track the balance without another call. Recorded requests also appear in the dashboard’s request history under their analysis_id.

Request

Send one JSON object per property. Only location is required; every other field is optional and falls back to the default in the table below. Unknown fields are rejected with invalid_request, so check every field name.

Headers

Request headers
HeaderFormatRequiredDescription
AuthorizationBearer solarise_sk_<id>_<secret>YesA Solarise API key, created in the Solarise dashboard under API, sent as Authorization: Bearer <key>.
Content-Typeapplication/jsonYesThe body is a JSON object.
Idempotency-Keystring, up to 255 charactersNo, but always send itA unique value per analysis, such as a UUID: 1 to 255 visible ASCII characters, compared exactly. Retrying with the same key returns the stored result of a finished analysis instead of paying for a second one.

Body fields

Request body fields
Field and typeDescription
locationobject · requiredThe property to analyse. Where the property is: exactly one of latitude and longitude together, address, eircode or plus_code.
location.latitudenumber or null · optionalLatitude of a point on the building, in decimal degrees (WGS 84). Send with longitude.
Default
null
Limits
at least -90, at most 90
location.longitudenumber or null · optionalLongitude of a point on the building, in decimal degrees (WGS 84). Send with latitude.
Default
null
Limits
at least -180, at most 180
location.addressstring or null · optionalA full street address including the house number, for example '1600 Amphitheatre Parkway, Mountain View, CA 94043'. A postcode, street or town alone is rejected.
Default
null
Limits
3 to 300 characters
location.eircodestring or null · optionalAn Irish Eircode, which identifies one address, for example 'D02 X285'.
Default
null
Limits
up to 60 characters
location.plus_codestring or null · optionalAn Open Location Code (Plus Code): a full code such as '9C5M8WRQ+2V', or a short code with its town, such as '8WRQ+2V Dublin'.
Default
null
Limits
up to 60 characters
country_codestring · optionalISO 3166-1 alpha-2 code of the property's country, for example 'GB'. It restricts address lookups to that country; coordinates do not need it.
Default
""
building_typestring · optionalThe kind of building on the property.
Default
"RESIDENTIAL"
Allowed values
  • RESIDENTIAL
  • COMMERCIAL
  • COMMUNITY
What the values mean
sunnyform_idstring (uuid) or null · optionalA SunnyForm of the API key's company whose products, prices, discounts, financing, presets and panel orientation the analysis uses. Without it, Solarise uses the company's API default SunnyForm for the location's country, which it creates on first use with the defaults of a new SunnyForm.
Default
null
roof_materialstring or null · optionalThe roof's material. Required when the SunnyForm prices systems by roof material, and one of the SunnyForm's roof materials when given.
Default
null
Allowed values
  • TILES
  • WOOD
  • SLATE
  • STANDING_SEAM
annual_consumption_kwhnumber or null · optionalThe building's electricity use per year in kWh. Send this or average_monthly_energy_bill, not both. Without either, Solarise estimates the consumption.
Default
null
Limits
greater than 0, at most 50,000,000
average_monthly_energy_billnumber or null · optionalThe average monthly electricity bill in the SunnyForm's currency. Send this or annual_consumption_kwh, not both.
Default
null
Limits
greater than 0, at most 10,000,000
usage_patternstring · optionalWhen the building uses most of its electricity: ALL_DAY, or MORNINGS_AND_EVENINGS for households that are out during the day.
Default
"ALL_DAY"
Allowed values
  • MORNINGS_AND_EVENINGS
  • ALL_DAY
import_price_per_kwhnumber or null · optionalThe price paid per kWh imported from the grid, in the SunnyForm's currency. Defaults to Solarise's average price for the location.
Default
null
Limits
greater than 0, at most 1,000
export_price_per_kwhnumber or null · optionalThe price received per kWh exported to the grid, in the SunnyForm's currency. Defaults to Solarise's average export price for the location.
Default
null
Limits
at least 0, at most 1,000
include_batteryboolean or null · optionaltrue: every system includes a battery, or the analysis fails with battery_not_available. false: no system includes one, or the analysis fails with battery_required. Left out, each system gets the first battery of the SunnyForm that fits it when sunnyform_id names a SunnyForm with a battery for the building type, and otherwise only a battery its inverter is built into.
Default
null
tariffstring · optionalThe electricity tariff after installation. OCTOPUS_FLUX and ECONOMY_7 are UK tariffs for systems with a battery and must be enabled in the SunnyForm's tariff step.
Default
"STANDARD"
Allowed values
  • STANDARD
  • OCTOPUS_FLUX
  • ECONOMY_7
What the values mean
namestring · optionalThe customer's name. Stored with the lead when save_to_crm is true; with send_webhook alone it goes only to the webhooks.
Default
""
Limits
up to 40 characters
emailstring · optionalThe customer's email address. Stored with the lead when save_to_crm is true: details of an existing customer of your account link the lead to that customer, and details that cannot be linked to one customer of your account are refused with customer_contact_conflict. With send_webhook alone it goes only to the webhooks.
Default
""
Limits
up to 255 characters
phone_numberstring · optionalThe customer's phone number in international format, for example '+353861234567'. Stored with the lead when save_to_crm is true; with send_webhook alone it goes only to the webhooks.
Default
""
Limits
up to 15 characters
save_to_crmboolean · optionalSave the analysis as a lead in the SunnyForm's CRM, as if the customer had used the calculator. Left out or false, nothing of the analysis is kept but the record of the request in your API history.
Default
false
send_webhookboolean · optionalSend the finished analysis once, as an offer.created event, to every enabled webhook of the SunnyForm that subscribes to it, right after the response and whatever the webhook's send interval. Left out or false, no webhook receives the analysis.
Default
false

Location formats

Send exactly one of these in location:

Coordinates and Plus Codes mark the building itself. An address or Eircode is geocoded to a point on its plot, so send coordinates when you have them. A postcode, street or town on its own does not identify one building and is rejected with location_not_specific; a location that cannot be found returns location_not_found. The response’s location shows the address and coordinates Solarise analysed.

SunnyForms

A SunnyForm is the calculator configuration you manage in the Solarise dashboard. Send sunnyform_id to analyse with one of your company’s SunnyForms: the analysis then uses its products, prices, discounts, financing, presets and panel orientation, so results match the offers your calculator makes.

  • The SunnyForm must belong to the API key’s company, or the request fails with sunnyform_not_found.
  • It must support the building_type (building_type_not_supported). When it prices systems by roof material, send roof_material with one of its materials (roof_material_required, roof_material_not_supported).
  • Without sunnyform_id, Solarise uses your company’s “API defaults <country code>” SunnyForm for the property’s country, for example “API defaults IE”. Solarise creates it on first use with the defaults a new SunnyForm gets for that country. It is listed in your dashboard with your other SunnyForms: change its products, prices and settings there, and later analyses in that country use them.
  • The response’s sunnyform_id names the SunnyForm the analysis used.

Electricity consumption

Send the building’s yearly use as annual_consumption_kwh or its average_monthly_energy_bill in the SunnyForm’s currency, not both. Without either, Solarise estimates the consumption:

  • Homes: the typical yearly electricity use of a household in the property’s country: ODYSSEE-MURE (2023 data) for EU countries, Ofgem for the United Kingdom, the EIA for the United States and national sources elsewhere. Where no national figure exists, Solarise uses the EU-27 average.
  • Commercial and apartment buildings: the analysed roof’s footprint, taken as one storey of floor area, at 136 kWh per m² per year in the United States (EIA CBECS 2018) or 95 kWh per m² per year elsewhere (CIBSE TM46 general office benchmark).

An estimate fits a typical building, not this one, so send the real figure when you know it. usage_pattern says when the building uses its electricity (ALL_DAY or MORNINGS_AND_EVENINGS); it changes how much of the solar production the building uses itself, and so the savings.

Prices and tariffs

import_price_per_kwh and export_price_per_kwh default to Solarise’s average prices for the location: by state in the United States, by region in the United Kingdom and by country elsewhere, in the SunnyForm’s currency. Send your customer’s actual prices when you know them. The response’s electricity_prices shows the prices used and whether each was PROVIDED or a LOCATION_DEFAULT.

tariff is the electricity tariff after installation. STANDARD, the default, keeps single-rate import and export prices. OCTOPUS_FLUX and ECONOMY_7 model those UK time-of-use tariffs. They need a property in the United Kingdom, a system with a battery and the tariff enabled in the SunnyForm’s tariff step; otherwise the request fails with tariff_not_available.

Batteries

  • Set include_battery to true to require a battery in every system. A preset gets the first battery of the SunnyForm that fits its system, as the calculator offers when a customer turns batteries on. The request fails with battery_not_available when the SunnyForm has no battery for the building type, or when no battery fits one of the systems.
  • Set it to false for solar-only systems. The request fails with battery_required when a system can only work with a battery because its inverter is built into the battery.
  • Leave it out to let each system follow the SunnyForm. If you sent sunnyform_id and that SunnyForm has a battery for the building type, each system gets the first battery that fits it. Otherwise, including with the API defaults SunnyForm, a system gets a battery only when its inverter is built into one.
  • presets[].system.battery shows each system’s battery, or null. battery_included is true when any system has one, and always equals include_battery when you set it. A failed request is not charged.
  • presets[].battery_metrics compares the system with and without its battery: backup hours for critical loads, and the first-year savings and self-consumption without the battery.

CRM leads and webhooks

By default an analysis only comes back to you: nothing of it is kept but the record of the request in your API history, and no webhook receives it. Two options change that for the request that sets them:

  • save_to_crm: true saves the analysis as a lead in the SunnyForm’s CRM, as if the customer had used the calculator. crm.lead_url links to the lead in the dashboard. From then on it is a lead like any other.
  • send_webhook: true sends the finished analysis once, as an offer.created event, to every enabled webhook of the SunnyForm that subscribes to it, right after the response and whatever the webhook’s delivery interval. webhook.receivers says how many webhooks receive it. Without save_to_crm there is no lead to open, so the event’s full_quote_url is empty.

The customer’s name, email and phone_number are stored only with a lead, when save_to_crm is true. Details of an existing customer of your account link the lead to that customer. If they cannot be linked to one customer of your account, for example because the email address and phone number belong to different contacts, the request fails with customer_contact_conflict: send the pair that belongs together, other details, or none. With send_webhook alone, the details go only to the webhooks.

Request examples

Coordinates only: Solarise defaults for the country

curl -X POST https://app.solarise.app/api/v1/roof-analyses \
  -H "Authorization: Bearer $SOLARISE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  --max-time 180 \
  -d '{
  "location": {
    "latitude": 53.3438,
    "longitude": -6.2546
  }
}'

An address analysed with a SunnyForm and the customer's consumption

curl -X POST https://app.solarise.app/api/v1/roof-analyses \
  -H "Authorization: Bearer $SOLARISE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  --max-time 180 \
  -d '{
  "location": {
    "address": "12 Example Close, Leicester LE2 0XX"
  },
  "country_code": "GB",
  "sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
  "annual_consumption_kwh": 3200,
  "usage_pattern": "MORNINGS_AND_EVENINGS",
  "include_battery": true
}'

An Eircode saved as a CRM lead and sent to the SunnyForm's webhooks

curl -X POST https://app.solarise.app/api/v1/roof-analyses \
  -H "Authorization: Bearer $SOLARISE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  --max-time 180 \
  -d '{
  "location": {
    "eircode": "D04 X2Y3"
  },
  "sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
  "average_monthly_energy_bill": 140,
  "roof_material": "TILES",
  "name": "Alex Murphy",
  "email": "[email protected]",
  "phone_number": "+353861234567",
  "save_to_crm": true,
  "send_webhook": true
}'

Response

A new analysis returns HTTP 201 with status OK. A retry with the same Idempotency-Key after the analysis finished returns the stored result with HTTP 200 and the header Idempotent-Replayed: true.

Prices and amounts are in currency, the SunnyForm’s currency. Measurements are always metric (unit_system METRIC: m², kWh, kWp, °C, kg and m), also in the United States. The top level describes the property: location, roof, climate and electricity_prices. presets holds one complete system per preset, and crm, webhook and measurements report what happened to the analysis.

Status codes

HTTP status codes
StatusMeaning
200The stored result of an earlier request with the same Idempotency-Key. The response carries the Idempotent-Replayed: true header and no measurement is used.
201Successful Response
400The body is not valid JSON.
401The API key is missing, invalid or revoked.
402No measurements are left on the plan.
403The account of the key is not active.
404The SunnyForm does not belong to the key's company.
409The Idempotency-Key or the contact details conflict.
413The body is too large.
422The request is invalid, or the property cannot be analysed (location, imagery, roof, system).
429Too many requests or analyses running.
500The analysis failed. Not charged.
503A dependency is unavailable. Not charged.
504The analysis took too long. Not charged.

Presets

Presets are the system sizing strategies of the SunnyForm’s calculator. presets has one entry for each preset the SunnyForm supports, in the SunnyForm’s order. default_preset names the preset the calculator shows first; its entry has presets[].is_default set to true. Presets are chosen from the panel layouts alone, before any battery is added, so a preset’s payback with its battery can come later than another preset’s.

Presets
PresetName in the calculatorHow the system is sized
FASTEST_BREAK_EVENFastest paybackThe panel layout that pays for itself soonest without a battery.
HIGHEST_PRODUCTIONHighest productionThe system that produces the most electricity the roof allows.
OPTIMAL_FOR_USER_ELECTRICITY_BILLPerfect fitThe system whose yearly production best matches the building's electricity use.
OPTIMAL_PANEL_PLACEMENTOptimal panel placementThe system that fills the best-oriented face of each roof.

Every preset includes its presets[].system (panels, inverters, battery, size and cabling), presets[].pricing before and after the SunnyForm’s discounts, presets[].financials (payback, first-year and 25-year savings, home value increase, self-consumption), presets[].battery_metrics, presets[].environment, presets[].generation per year and per month, and presets[].financing with the SunnyForm’s default package of each enabled financing type.

How the figures are calculated

Solarise simulates each system hour by hour: the production of the placed panels with the location’s solar irradiance and weather, the building’s consumption spread over the day by its usage pattern, the battery’s charging and discharging, and grid imports and exports at their prices. It projects 25 years with the expected electricity price growth for the country (or US state), 0.5% yearly panel degradation and battery capacity fade.

presets[].financials.payback_years is when the cumulative savings repay the price after discounts, and null when that does not happen within 25 years. All figures are estimates for sales conversations, not a guaranteed quote, yield or saving.

Response fields

Response fields of a successful analysis
Field and typeDescription
analysis_idstring (uuid)The analysis; also listed in the dashboard's request history.
statusstringAlways OK for an analysis; errors answer with status ERROR and an error object.
Values
  • OK
created_atstring (date-time)When the analysis was requested, in UTC.
sunnyform_idstring (uuid)The SunnyForm whose configuration the analysis used.
building_typestringThe building type the analysis used.
Values
  • RESIDENTIAL
  • COMMERCIAL
  • COMMUNITY
What the values mean
currencystringCurrency of every price and amount in the response.
unit_systemstringUnits of every measurement: m², kWh, kWp, °C, kg and m.
Values
  • METRIC
locationobjectThe address Solarise resolved and the point it analysed.
location.addressstringThe address Solarise resolved and analysed.
location.latitudenumberLatitude of the analysed building, in decimal degrees.
location.longitudenumberLongitude of the analysed building, in decimal degrees.
location.country_codestringISO 3166-1 alpha-2 code of the location's country.
roofobjectThe roof Solarise identified on the building.
roof.total_area_m2numberTotal area of the roof surfaces, in m².
roof.usable_area_m2numberArea of the roof that can hold panels after obstacles, setbacks and unsuitable faces, in m².
roof.average_slope_degreesnumberArea-weighted average pitch of the roof faces, in degrees.
climateobjectSunshine and last year's temperatures at the location.
climate.sunny_hours_per_yearnumberSunshine hours per year at the location.
climate.min_temperature_last_year_cnumberLowest air temperature at the location last year, °C.
climate.max_temperature_last_year_cnumberHighest air temperature at the location last year, °C.
climate.frost_days_last_yearintegerDays with frost at the location last year.
electricity_pricesobjectThe import and export prices the financial figures use, and where they come from.
electricity_prices.import_price_per_kwhnumberPrice per kWh imported from the grid, analysis currency.
electricity_prices.export_price_per_kwhnumberPrice per kWh exported to the grid, analysis currency.
electricity_prices.import_price_sourcestringPROVIDED when the request set the price, LOCATION_DEFAULT when Solarise used its default for the location.
Values
  • PROVIDED
  • LOCATION_DEFAULT
electricity_prices.export_price_sourcestringPROVIDED when the request set the price, LOCATION_DEFAULT when Solarise used its default for the location.
Values
  • PROVIDED
  • LOCATION_DEFAULT
usage_patternstringWhen the building uses its electricity, which sets how much solar power it uses itself.
Values
  • MORNINGS_AND_EVENINGS
  • ALL_DAY
tariffstringThe electricity tariff the financial figures assume.
Values
  • STANDARD
  • OCTOPUS_FLUX
  • ECONOMY_7
What the values mean
battery_includedbooleanWhether any preset's system includes a battery; each preset's system.battery says which. Equals include_battery when the request sets it.
default_presetstringThe preset to show first; a lead saved to the CRM shows its system.
Values
  • FASTEST_BREAK_EVEN
  • HIGHEST_PRODUCTION
  • OPTIMAL_FOR_USER_ELECTRICITY_BILL
  • OPTIMAL_PANEL_PLACEMENT
presetsarray of objectsOne system per preset the SunnyForm supports.
presets[].presetstringThe system sizing strategy.
Values
  • FASTEST_BREAK_EVEN
  • HIGHEST_PRODUCTION
  • OPTIMAL_FOR_USER_ELECTRICITY_BILL
  • OPTIMAL_PANEL_PLACEMENT
presets[].namestringThe preset's name in the Solarise calculator.
presets[].is_defaultbooleanWhether this is the preset the calculator selects first.
presets[].systemobjectThe system: size, panels, inverters, battery and cabling.
presets[].system.size_kwpnumberInstalled panel capacity, in kWp.
presets[].system.panelobjectThe panel model; quantity is the number of panels.
presets[].system.panel.idstring (uuid)The product in the Solarise catalogue.
presets[].system.panel.namestringThe product's model name.
presets[].system.panel.manufacturerstringThe product's manufacturer.
presets[].system.panel.quantityintegerNumber of units in the system.
presets[].system.panel.power_wnumberRated power of one panel at standard test conditions, in W.
presets[].system.invertersarray of objectsThe separate inverters. Empty when the battery's integrated inverter is used.
presets[].system.inverters[].idstring (uuid)The product in the Solarise catalogue.
presets[].system.inverters[].namestringThe product's model name.
presets[].system.inverters[].manufacturerstringThe product's manufacturer.
presets[].system.inverters[].quantityintegerNumber of units in the system.
presets[].system.inverters[].rated_power_kwnumberRated AC power of one inverter, in kW.
presets[].system.batteryobject or nullThe battery, when the system includes one.
presets[].system.battery.idstring (uuid)The product in the Solarise catalogue.
presets[].system.battery.namestringThe product's model name.
presets[].system.battery.manufacturerstringThe product's manufacturer.
presets[].system.battery.quantityintegerNumber of units in the system.
presets[].system.battery.usable_capacity_kwhnumberUsable capacity of one battery, in kWh.
presets[].system.battery.expansion_namestring or nullThe battery expansion module, when the system has one.
presets[].system.battery.expansion_quantityintegerNumber of battery expansion modules.
presets[].system.estimated_cabling_mnumberEstimated total length of DC, AC and earthing cable, in m.
presets[].pricingobjectThe system's price before and after discounts.
presets[].pricing.price_without_discountsnumberEstimated system price before discounts.
presets[].pricing.discountsarray of objectsThe SunnyForm's discounts that apply.
presets[].pricing.discounts[].titlestringThe discount's name, as the SunnyForm shows it.
presets[].pricing.discounts[].amountnumberDiscount amount, in the analysis currency.
presets[].pricing.price_with_discountsnumberEstimated system price after discounts.
presets[].financialsobjectPayback, savings, home value and self-consumption of the system.
presets[].financials.payback_yearsnumber or nullYears until savings repay the discounted price; null when they never do within 25 years.
presets[].financials.annual_savingsnumberSavings in the first year, in the analysis currency.
presets[].financials.twenty_five_year_savingsnumberElectricity savings over 25 years before the system's price is subtracted, in the analysis currency.
presets[].financials.home_value_increase_percentnumberEstimated increase of the property's value, in %.
presets[].financials.self_consumption_ratenumberShare of the solar production the building uses itself, from 0 to 1.
presets[].battery_metricsobject or nullSet when the system has a battery.
presets[].battery_metrics.backup_duration_hoursnumberHours the battery can supply critical loads in an outage.
presets[].battery_metrics.annual_savings_without_batterynumber or nullFirst-year savings of the same system without the battery.
presets[].battery_metrics.self_consumption_rate_without_batterynumber or nullSelf-consumption of the same system without the battery, from 0 to 1.
presets[].environmentobjectThe emissions the system avoids.
presets[].environment.co2_reduction_kg_per_yearnumberCO₂ emissions avoided per year, in kg.
presets[].environment.trees_equivalentnumberNumber of trees that absorb that much CO₂.
presets[].generationobjectThe system's electricity generation.
presets[].generation.annual_kwhnumberElectricity the system generates in its first year, in kWh.
presets[].generation.monthly_kwharray of numbersGeneration per calendar month, January first, in kWh.
presets[].financingarray of objectsFinancing with the SunnyForm's default package of each enabled financing type.
presets[].financing[].typestringLOAN, LEASING or PPA (power purchase agreement).
Values
  • LOAN
  • LEASING
  • PPA
presets[].financing[].package_idstring (uuid)The SunnyForm's financing package the figures use.
presets[].financing[].term_yearsintegerLength of the financing, in years.
presets[].financing[].monthly_paymentnumberFirst-year monthly payment, in the analysis currency.
presets[].financing[].twenty_five_year_net_savingsnumberSavings over 25 years after the financing payments, in the analysis currency.
presets[].financing[].apr_percentnumber or nullThe loan's annual percentage rate, for LOAN.
presets[].financing[].escalator_percentnumber or nullYearly payment increase, for LEASING and PPA, in %.
presets[].financing[].price_per_kwhnumber or nullFirst-year price per kWh of solar electricity, for PPA.
crmobjectWhether the analysis was saved as a lead in the CRM.
crm.savedbooleanWhether the analysis was saved as a lead in the SunnyForm's CRM.
crm.lead_urlstring or nullThe lead in the Solarise dashboard, when it was saved.
webhookobjectWhether the analysis was sent to the SunnyForm's webhooks.
webhook.requestedbooleanWhether the request set send_webhook.
webhook.receiversintegerEnabled webhooks of the SunnyForm that will receive offer.created.
measurementsobjectThe measurement the analysis used and the plan's balance.
measurements.chargedintegerMeasurements the analysis took from the plan: 1. A replay (HTTP 200 with Idempotent-Replayed: true) returns this stored answer unchanged and takes none.
measurements.remainingintegerMeasurements left on the plan when the analysis finished; a replay repeats the stored value.

Example response

A residential analysis with a battery:

{
  "analysis_id": "5b0e9c2a-8f1d-4c6e-a3b7-2d9f4e6a1c58",
  "status": "OK",
  "created_at": "2026-11-20T10:15:42Z",
  "sunnyform_id": "3f2c8a51-7d64-4e0b-9a1d-5c3e2b7f9a10",
  "building_type": "RESIDENTIAL",
  "currency": "GBP",
  "unit_system": "METRIC",
  "location": {
    "address": "12 Example Close, Leicester LE2 0XX, UK",
    "latitude": 52.608512,
    "longitude": -1.121704,
    "country_code": "GB"
  },
  "roof": {
    "total_area_m2": 118.4,
    "usable_area_m2": 61.7,
    "average_slope_degrees": 30.5
  },
  "climate": {
    "sunny_hours_per_year": 1892.1,
    "min_temperature_last_year_c": -6.1,
    "max_temperature_last_year_c": 30.9,
    "frost_days_last_year": 28
  },
  "electricity_prices": {
    "import_price_per_kwh": 0.2541,
    "export_price_per_kwh": 0.1203,
    "import_price_source": "LOCATION_DEFAULT",
    "export_price_source": "LOCATION_DEFAULT"
  },
  "usage_pattern": "MORNINGS_AND_EVENINGS",
  "tariff": "STANDARD",
  "battery_included": true,
  "default_preset": "OPTIMAL_PANEL_PLACEMENT",
  "presets": [
    {
      "preset": "FASTEST_BREAK_EVEN",
      "name": "Fastest payback",
      "is_default": false,
      "system": {
        "size_kwp": 0.88,
        "panel": {
          "id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
          "name": "Q.TRON BLK M-G2+ 440W",
          "manufacturer": "Qcells",
          "quantity": 2,
          "power_w": 440
        },
        "inverters": [
          {
            "id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
            "name": "IQ8M-72-2-US",
            "manufacturer": "Enphase",
            "quantity": 2,
            "rated_power_kw": 0.325
          }
        ],
        "battery": {
          "id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
          "name": "IQ Battery 5P",
          "manufacturer": "Enphase",
          "quantity": 1,
          "usable_capacity_kwh": 5,
          "expansion_name": null,
          "expansion_quantity": 0
        },
        "estimated_cabling_m": 28.4
      },
      "pricing": {
        "price_without_discounts": 6496,
        "discounts": [],
        "price_with_discounts": 6496
      },
      "financials": {
        "payback_years": null,
        "annual_savings": 121.04,
        "twenty_five_year_savings": 3706.78,
        "home_value_increase_percent": 8,
        "self_consumption_rate": 0.9996
      },
      "battery_metrics": {
        "backup_duration_hours": 3.2,
        "annual_savings_without_battery": 120.84,
        "self_consumption_rate_without_battery": 0.9962
      },
      "environment": {
        "co2_reduction_kg_per_year": 101,
        "trees_equivalent": 4
      },
      "generation": {
        "annual_kwh": 476.4,
        "monthly_kwh": [
          18.3,
          19.7,
          37.4,
          54.2,
          63.5,
          66.8,
          61.2,
          55.9,
          43,
          27.3,
          18.4,
          10.7
        ]
      },
      "financing": []
    },
    {
      "preset": "HIGHEST_PRODUCTION",
      "name": "Highest production",
      "is_default": false,
      "system": {
        "size_kwp": 6.6,
        "panel": {
          "id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
          "name": "Q.TRON BLK M-G2+ 440W",
          "manufacturer": "Qcells",
          "quantity": 15,
          "power_w": 440
        },
        "inverters": [
          {
            "id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
            "name": "IQ8M-72-2-US",
            "manufacturer": "Enphase",
            "quantity": 15,
            "rated_power_kw": 0.325
          }
        ],
        "battery": {
          "id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
          "name": "IQ Battery 5P",
          "manufacturer": "Enphase",
          "quantity": 1,
          "usable_capacity_kwh": 5,
          "expansion_name": null,
          "expansion_quantity": 0
        },
        "estimated_cabling_m": 149.6
      },
      "pricing": {
        "price_without_discounts": 16220,
        "discounts": [],
        "price_with_discounts": 16220
      },
      "financials": {
        "payback_years": 22.4,
        "annual_savings": 617.55,
        "twenty_five_year_savings": 18595.44,
        "home_value_increase_percent": 8,
        "self_consumption_rate": 0.7005
      },
      "battery_metrics": {
        "backup_duration_hours": 3.2,
        "annual_savings_without_battery": 527.76,
        "self_consumption_rate_without_battery": 0.4464
      },
      "environment": {
        "co2_reduction_kg_per_year": 621.5,
        "trees_equivalent": 28
      },
      "generation": {
        "annual_kwh": 2931.6,
        "monthly_kwh": [
          85.6,
          104.9,
          216.8,
          335.9,
          424.5,
          460.7,
          413.6,
          354.1,
          247.8,
          149.3,
          87.1,
          51.2
        ]
      },
      "financing": []
    },
    {
      "preset": "OPTIMAL_FOR_USER_ELECTRICITY_BILL",
      "name": "Perfect fit",
      "is_default": false,
      "system": {
        "size_kwp": 6.6,
        "panel": {
          "id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
          "name": "Q.TRON BLK M-G2+ 440W",
          "manufacturer": "Qcells",
          "quantity": 15,
          "power_w": 440
        },
        "inverters": [
          {
            "id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
            "name": "IQ8M-72-2-US",
            "manufacturer": "Enphase",
            "quantity": 15,
            "rated_power_kw": 0.325
          }
        ],
        "battery": {
          "id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
          "name": "IQ Battery 5P",
          "manufacturer": "Enphase",
          "quantity": 1,
          "usable_capacity_kwh": 5,
          "expansion_name": null,
          "expansion_quantity": 0
        },
        "estimated_cabling_m": 149.6
      },
      "pricing": {
        "price_without_discounts": 16220,
        "discounts": [],
        "price_with_discounts": 16220
      },
      "financials": {
        "payback_years": 22.4,
        "annual_savings": 617.55,
        "twenty_five_year_savings": 18595.44,
        "home_value_increase_percent": 8,
        "self_consumption_rate": 0.7005
      },
      "battery_metrics": {
        "backup_duration_hours": 3.2,
        "annual_savings_without_battery": 527.76,
        "self_consumption_rate_without_battery": 0.4464
      },
      "environment": {
        "co2_reduction_kg_per_year": 621.5,
        "trees_equivalent": 28
      },
      "generation": {
        "annual_kwh": 2931.6,
        "monthly_kwh": [
          85.6,
          104.9,
          216.8,
          335.9,
          424.5,
          460.7,
          413.6,
          354.1,
          247.8,
          149.3,
          87.1,
          51.2
        ]
      },
      "financing": []
    },
    {
      "preset": "OPTIMAL_PANEL_PLACEMENT",
      "name": "Optimal panel placement",
      "is_default": true,
      "system": {
        "size_kwp": 3.08,
        "panel": {
          "id": "8a1f3c5e-2b7d-4e9a-b6c4-1d3f5a7b9c20",
          "name": "Q.TRON BLK M-G2+ 440W",
          "manufacturer": "Qcells",
          "quantity": 7,
          "power_w": 440
        },
        "inverters": [
          {
            "id": "4c6e8a0b-3d5f-4a7c-9e1b-6f8a2c4e6d31",
            "name": "IQ8M-72-2-US",
            "manufacturer": "Enphase",
            "quantity": 7,
            "rated_power_kw": 0.325
          }
        ],
        "battery": {
          "id": "9e2b4d6f-7a1c-4e3b-8d5f-0a2c4e6b8d42",
          "name": "IQ Battery 5P",
          "manufacturer": "Enphase",
          "quantity": 1,
          "usable_capacity_kwh": 5,
          "expansion_name": null,
          "expansion_quantity": 0
        },
        "estimated_cabling_m": 74.4
      },
      "pricing": {
        "price_without_discounts": 10236,
        "discounts": [],
        "price_with_discounts": 10236
      },
      "financials": {
        "payback_years": 21.5,
        "annual_savings": 403.41,
        "twenty_five_year_savings": 12319.27,
        "home_value_increase_percent": 8,
        "self_consumption_rate": 0.9435
      },
      "battery_metrics": {
        "backup_duration_hours": 3.2,
        "annual_savings_without_battery": 333.41,
        "self_consumption_rate_without_battery": 0.5952
      },
      "environment": {
        "co2_reduction_kg_per_year": 353.5,
        "trees_equivalent": 16
      },
      "generation": {
        "annual_kwh": 1667.5,
        "monthly_kwh": [
          64,
          69,
          130.7,
          189.8,
          222.3,
          233.9,
          214.3,
          195.7,
          150.4,
          95.5,
          64.4,
          37.5
        ]
      },
      "financing": []
    }
  ],
  "crm": {
    "saved": false,
    "lead_url": null
  },
  "webhook": {
    "requested": false,
    "receivers": 0
  },
  "measurements": {
    "charged": 1,
    "remaining": 249
  }
}

Enumerations

The values of the API’s enumerated fields, and the fields that use them.

Currency

Used by the response field currency.

  • AED
  • AFN
  • ALL
  • AMD
  • ANG
  • AOA
  • ARS
  • AUD
  • AWG
  • AZN
  • BAM
  • BBD
  • BDT
  • BGN
  • BHD
  • BIF
  • BMD
  • BND
  • BOB
  • BRL
  • BSD
  • BTC
  • BTN
  • BWP
  • BYN
  • BYR
  • BZD
  • CAD
  • CDF
  • CHF
  • CLF
  • CLP
  • CNY
  • CNH
  • COP
  • CRC
  • CUC
  • CUP
  • CVE
  • CZK
  • DJF
  • DKK
  • DOP
  • DZD
  • EGP
  • ERN
  • ETB
  • EUR
  • FJD
  • FKP
  • GBP
  • GEL
  • GGP
  • GHS
  • GIP
  • GMD
  • GNF
  • GTQ
  • GYD
  • HKD
  • HNL
  • HRK
  • HTG
  • HUF
  • IDR
  • ILS
  • IMP
  • INR
  • IQD
  • IRR
  • ISK
  • JEP
  • JMD
  • JOD
  • JPY
  • KES
  • KGS
  • KHR
  • KMF
  • KPW
  • KRW
  • KWD
  • KYD
  • KZT
  • LAK
  • LBP
  • LKR
  • LRD
  • LSL
  • LTL
  • LVL
  • LYD
  • MAD
  • MDL
  • MGA
  • MKD
  • MMK
  • MNT
  • MOP
  • MRU
  • MUR
  • MVR
  • MWK
  • MXN
  • MYR
  • MZN
  • NAD
  • NGN
  • NIO
  • NOK
  • NPR
  • NZD
  • OMR
  • PAB
  • PEN
  • PGK
  • PHP
  • PKR
  • PLN
  • PYG
  • QAR
  • RON
  • RSD
  • RUB
  • RWF
  • SAR
  • SBD
  • SCR
  • SDG
  • SEK
  • SGD
  • SHP
  • SLE
  • SLL
  • SOS
  • SRD
  • STD
  • SVC
  • SYP
  • SZL
  • THB
  • TJS
  • TMT
  • TND
  • TOP
  • TRY
  • TTD
  • TWD
  • TZS
  • UAH
  • UGX
  • USD
  • UYU
  • UZS
  • VES
  • VND
  • VUV
  • WST
  • XAF
  • XAG
  • XAU
  • XCD
  • XDR
  • XOF
  • XPF
  • YER
  • ZAR
  • ZMK
  • ZMW
  • ZWL

ElectricityUsagePatternType

Used by the request field usage_pattern, the response field usage_pattern.

  • MORNINGS_AND_EVENINGS
  • ALL_DAY

OfferPresetType

Used by the response field default_preset, the response field presets[].preset.

  • FASTEST_BREAK_EVEN
  • HIGHEST_PRODUCTION
  • OPTIMAL_FOR_USER_ELECTRICITY_BILL
  • OPTIMAL_PANEL_PLACEMENT

OfferRoofMaterial

Used by the request field roof_material.

  • TILES
  • WOOD
  • SLATE
  • STANDING_SEAM

RoofAnalysisBuildingType

The building to analyse: RESIDENTIAL for houses, COMMERCIAL for business buildings, COMMUNITY for apartment buildings with shared systems. The SunnyForm must serve the building type.

Used by the request field building_type, the response field building_type.

  • RESIDENTIAL
  • COMMERCIAL
  • COMMUNITY

RoofAnalysisTariff

The electricity tariff the financial figures assume. STANDARD keeps the location's single-rate import and export prices. OCTOPUS_FLUX and ECONOMY_7 are UK time-of-use tariffs for systems with a battery, available when the SunnyForm's tariff step offers them.

Used by the request field tariff, the response field tariff.

  • STANDARD
  • OCTOPUS_FLUX
  • ECONOMY_7

Timing, timeouts and idempotency

  • Analyses are synchronous: the response arrives in the same HTTP request, usually after 30 to 90 seconds.
  • Use an HTTP client timeout of at least 180 seconds, and make the call outside a user-facing request, for example in a background job.
  • Send an Idempotency-Key header with a new unique value, such as a UUID, for every analysis, and keep it with the job until the job is done. A key is 1 to 255 visible ASCII characters and is compared exactly, letter case included.

Retry the same request with the same key when the call fails with a network error or the response is 500, 503, 504. The key makes the retry safe:

  • If the analysis is still running, the retry gets request_in_progress with a Retry-After header. Wait that many seconds and retry again.
  • Once the analysis has finished, the retry gets the stored result with HTTP 200 and Idempotent-Replayed: true. No second measurement is used.
  • If the analysis failed, its key is released: the retry starts a new analysis, which is charged only if it succeeds.
  • A key belongs to one request body. Reusing it with a different body returns idempotency_key_reused. Keys are scoped to the company the API key belongs to.

Do not retry other 4xx errors without changing the request. An analysis that runs too long is stopped with analysis_timeout, and you are not charged.

Rate limits

  • 60 requests per minute per Solarise account, across all its keys. Further requests return rate_limited.
  • 3 analyses running at the same time per Solarise account, across all its keys. Further analyses return too_many_concurrent_requests.
  • Repeated requests with invalid keys from one IP address are blocked for a while with rate_limited.

These responses carry a Retry-After header with the seconds to wait. For bulk work, run at most three analyses in parallel and queue the rest.

Errors

Every error has the same envelope: status ERROR, analysis_id and error with error.code, error.message, error.request_id and, for invalid input, error.details.

  • Branch on error.code, never on the message: messages are written for people and can change.
  • analysis_id identifies the recorded request, which is also listed in the dashboard’s request history. It is null when the request was rejected before it was recorded, for example for an invalid key.
  • Quote error.request_id when you contact Solarise support at [email protected].
  • For invalid_request, error.details lists each invalid field as a dotted path with a message.
Error response fields
Field and typeDescription
statusstringAlways ERROR for an error response.
Values
  • ERROR
analysis_idstring (uuid) or nullThe recorded request, also listed in the dashboard's request history.
errorobjectWhat went wrong.
error.codestringStable machine-readable error code.
error.messagestringWhat went wrong and what to do, in English.
error.request_idstring or nullQuote it when you contact Solarise support.
error.detailsarray of objects or nullThe invalid fields of the request.
error.details[].fieldstringThe request field, as a dotted path, for example 'location.latitude'.
error.details[].messagestringWhy the field is invalid.

Error codes

Stable machine-readable error codes. Each code always comes with the same HTTP status; the x-error-codes catalogue lists them with their default messages.

Error codes
CodeHTTP statusMeaning
missing_api_key401Send your API key in the Authorization header as 'Bearer <key>'.
invalid_api_key401The API key is not valid.
api_key_revoked401This API key has been revoked. Create a new key in the Solarise dashboard.
account_inactive403The Solarise account or company of this API key is not active.
insufficient_measurements402Your plan has no measurements left, or your subscription is paused. Add measurements in the Solarise dashboard and try again.
invalid_json400The request body is not valid JSON.
invalid_request422The request does not match the API contract. See error.details.
payload_too_large413The request body is too large.
sunnyform_not_found404No SunnyForm with this ID belongs to the company of this API key.
building_type_not_supported422The SunnyForm does not support this building type.
roof_material_required422The SunnyForm prices systems by roof material, so roof_material is required.
roof_material_not_supported422The SunnyForm does not offer this roof material.
battery_not_available422The SunnyForm has no battery for this building type, so include_battery cannot be true.
battery_required422Every inverter of the SunnyForm for this building type is built into a battery, so include_battery cannot be false.
tariff_not_available422This tariff is not available for this analysis.
location_not_found422The location could not be found.
location_not_specific422The location is not specific enough to identify one building. Send a full street address with its house number, an Eircode, a Plus Code, or coordinates.
location_not_supported422Solarise cannot analyse properties in this location's country yet.
customer_contact_conflict409The contact details cannot be linked to one customer of this account, for example because the email and phone number belong to different contacts. Send the pair that belongs together, other details, or none.
idempotency_key_reused409This Idempotency-Key was already used with a different request.
request_in_progress409An analysis with this Idempotency-Key is still running. Retry the same request later to get its result.
rate_limited429Too many requests. Retry after the time in the Retry-After header.
too_many_concurrent_requests429Too many analyses are running for this account. Retry after the time in the Retry-After header.
no_imagery_available422No suitable aerial imagery is available at this location.
roof_not_found422No roof could be identified at this location.
no_suitable_system422No solar system configuration with the SunnyForm's products fits this roof.
analysis_failed500The analysis could not be completed. You were not charged.
analysis_timeout504The analysis took too long and was stopped. You were not charged.
service_unavailable503A service the analysis depends on is temporarily unavailable. You were not charged. Retry later.
internal_error500An unexpected error occurred. You were not charged.

Handling errors

How to handle errors
SituationCodesWhat to do
The key or account cannot be usedStop and fix the configuration: check the key, or create a new one in the dashboard.
No measurements are leftStop sending analyses and ask an administrator to add measurements.
The request is invalidFix the request. Sending it again unchanged gives the same error.
The location does not identify one buildingAsk for coordinates or a full street address with the house number.
The location’s country is not supportedCheck that the property’s country is right; Solarise does not analyse properties there yet.
The property cannot be analysedTell the user that this property could not be analysed automatically.
The same analysis is still runningWait for the seconds in Retry-After, then retry with the same Idempotency-Key.
The Idempotency-Key belongs to another requestUse a new Idempotency-Key for a new request.
Too many requestsWait for the seconds in Retry-After, then retry.
The analysis failed on our sideRetry later with the same Idempotency-Key. You were not charged.

Error examples

HTTP 400The body is not valid JSON

{
  "status": "ERROR",
  "analysis_id": null,
  "error": {
    "code": "invalid_json",
    "message": "The request body is not valid JSON.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 401An unknown or mistyped key

{
  "status": "ERROR",
  "analysis_id": null,
  "error": {
    "code": "invalid_api_key",
    "message": "The API key is not valid.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 402The plan has no measurements left

{
  "status": "ERROR",
  "analysis_id": "0b6f9a3e-1c2d-4e5f-8a7b-9c0d1e2f3a4b",
  "error": {
    "code": "insufficient_measurements",
    "message": "Your plan has no measurements left, or your subscription is paused. Add measurements in the Solarise dashboard and try again.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 404The SunnyForm belongs to another company

{
  "status": "ERROR",
  "analysis_id": "d97a8475-9762-487a-9bf2-62ba1118586d",
  "error": {
    "code": "sunnyform_not_found",
    "message": "No SunnyForm with this ID belongs to the company of this API key.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 409A retry while the first request still runs

{
  "status": "ERROR",
  "analysis_id": null,
  "error": {
    "code": "request_in_progress",
    "message": "An analysis with this Idempotency-Key is still running. Retry the same request later to get its result.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 422Invalid fields

{
  "status": "ERROR",
  "analysis_id": "9f8d6da2-60fd-4458-bf14-f0814d165fd5",
  "error": {
    "code": "invalid_request",
    "message": "The request does not match the API contract. See error.details.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": [
      {
        "field": "location",
        "message": "Send latitude and longitude together."
      },
      {
        "field": "tariff",
        "message": "Input should be 'STANDARD', 'OCTOPUS_FLUX' or 'ECONOMY_7'"
      }
    ]
  }
}

HTTP 422A postcode instead of an address

{
  "status": "ERROR",
  "analysis_id": "a0aa7763-9b99-404d-8137-e18822c40626",
  "error": {
    "code": "location_not_specific",
    "message": "The location is not specific enough to identify one building. Send a full street address with its house number, an Eircode, a Plus Code, or coordinates.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 422No roof at the location

{
  "status": "ERROR",
  "analysis_id": "5d1c7b2e-8f3a-4b6c-9d0e-1f2a3b4c5d6e",
  "error": {
    "code": "roof_not_found",
    "message": "No roof could be identified at this location.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 429Too many requests in a minute

{
  "status": "ERROR",
  "analysis_id": null,
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Retry after the time in the Retry-After header.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 500The analysis failed; nothing was charged

{
  "status": "ERROR",
  "analysis_id": "6e2d8c3f-9a4b-4c7d-8e1f-2a3b4c5d6e7f",
  "error": {
    "code": "analysis_failed",
    "message": "The analysis could not be completed. You were not charged.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 503A provider is down; retry later

{
  "status": "ERROR",
  "analysis_id": "7f3e9d4a-0b5c-4d8e-9f2a-3b4c5d6e7f80",
  "error": {
    "code": "service_unavailable",
    "message": "A service the analysis depends on is temporarily unavailable. You were not charged. Retry later.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

HTTP 504The analysis ran too long

{
  "status": "ERROR",
  "analysis_id": "8a4f0e5b-1c6d-4e9f-8a3b-4c5d6e7f8091",
  "error": {
    "code": "analysis_timeout",
    "message": "The analysis took too long and was stopped. You were not charged.",
    "request_id": "kqzvtbmhwrcxfdpn",
    "details": null
  }
}

Limitations

  • The API analyses new rooftop systems. Balcony systems and battery retrofits for existing solar systems are not available in version 1.
  • One property per request, answered synchronously. There is no batch endpoint and no endpoint to read an earlier analysis, so store each response you need with its analysis_id.
  • Results are estimates from aerial imagery, elevation data where available, weather data and your SunnyForm’s configuration. They support sales conversations and do not replace a site survey; see the Terms of service.
  • All measurements are metric. Convert them if you show imperial units.

Integration patterns

CRM enrichment

When a lead with an address arrives in your CRM, run an analysis from a background job and write the roof area, system size, price and payback onto the lead. Keep analysis_id with the record, and leave save_to_crm off when the lead already lives in your own CRM.

Quoting tool

Send your sunnyform_id so prices, discounts and financing match your offers. Show the default_preset first and let users compare the other presets. Ask for the customer’s consumption or bill, so the systems are sized for the building rather than a typical one.

Bulk processing

Put the properties in a queue and run at most three analyses at once. Give every property its own Idempotency-Key, stored with the job, so a retry after a crash or timeout never pays twice. Honour Retry-After, and pause the queue on insufficient_measurements until measurements are added.

Coding agents

Give your AI coding agent the prompt below. It points the agent to this page and the OpenAPI document and lists the rules for keys, timeouts, retries and errors.

Prompt for coding agents

Paste this prompt into your AI coding agent in the project that should call the API. It asks the agent to confirm the fields to store before it writes code, and never to enable CRM or webhook delivery without asking you.

Integrate the Solarise Solar Potential & Financial Analysis API into this project.

Solarise analyses a property's roof from a single API call: it finds the building, measures its roof faces, places panels, sizes a solar system for each preset, and returns prices, savings, payback, generation, battery and financing figures.

Read these first and treat them as the source of truth:
- Documentation: https://www.solarise.app/docs/api
- OpenAPI 3.1 document: https://www.solarise.app/docs/api/openapi.json (generate request and response types from it instead of writing them by hand)

The API in short:
- Endpoint: POST https://app.solarise.app/api/v1/roof-analyses with a JSON body.
- Authentication: the header `Authorization: Bearer <key>`. Read the key from the environment variable SOLARISE_API_KEY. Never hard-code it, never log it, and never send it to a browser or mobile app: call the API from server-side code only.
- The only required field is `location`, with exactly one of: `latitude` and `longitude`; `address` (a full street address with the house number); `eircode`; or `plus_code`. Everything else is optional and has documented defaults. Send `sunnyform_id` to use one of our SunnyForms (products, prices, discounts, financing); without it Solarise uses its defaults for the country.
- Each successful analysis uses one measurement of our Solarise plan. Failed analyses are free. Do not call the live API from automated tests.
- Analyses take 30 to 90 seconds. Use an HTTP timeout of at least 180 seconds and do not block a user-facing request thread while waiting; run the call in a background job if this project has a job system.
- Always send an `Idempotency-Key` header with a new UUID per analysis. When a call fails with a network error or returns 500, 503 or 504, retry the same request with the same key: a finished analysis is returned instead of run again, and a retry is never charged twice. A 409 `request_in_progress` means an analysis with that key has not finished yet: wait for the `Retry-After` seconds and retry with the same key.
- Success is HTTP 201 with `"status": "OK"`; a replay of a stored result is HTTP 200 with the `Idempotent-Replayed: true` header. Errors have `"status": "ERROR"` and `error.code`, `error.message`, `error.request_id` and, for invalid input, `error.details` with one entry per field. Branch on `error.code`, never on the message text.
- Handle at least these codes: `invalid_api_key` and `api_key_revoked` (stop and report a configuration problem), `insufficient_measurements` (402: stop and tell an administrator to add measurements), `invalid_request` (fix the input; do not retry), `location_not_found` and `location_not_specific` (ask the user for a full address or coordinates), `roof_not_found` and `no_suitable_system` (show that this property could not be analysed), `rate_limited` and `too_many_concurrent_requests` (wait for `Retry-After`), `service_unavailable` and `analysis_timeout` (retry later with the same Idempotency-Key).
- The response describes one system per preset in `presets`, and `default_preset` names the one to show first. All amounts are in `currency`; all measurements are metric (m², kWh, kWp, °C, kg, m). Send `annual_consumption_kwh` or `average_monthly_energy_bill` when the user knows it; without either, Solarise sizes the systems for a typical building.
- `save_to_crm: true` also saves the analysis as a lead in our Solarise CRM, and `send_webhook: true` sends it to the SunnyForm's webhooks. Both default to false, and then nothing of the analysis is kept but the record of the request; only set them when the user asks for it.

Your tasks:
1. Find where this project needs roof or solar analyses and confirm with me which fields to store and show before writing code.
2. Add one small server-side client for the endpoint: typed request and response models generated from the OpenAPI document, the bearer key from SOLARISE_API_KEY, the Idempotency-Key, the timeout and the retry rules above.
3. Map the response into this project's own models. Keep `analysis_id` so a result can be found again, and store the full response if the project keeps raw provider data.
4. Turn each error code into a clear message or action for the user, as listed above.
5. Write tests with recorded responses taken from the documented examples (success, a 422 validation error, a 402, and a 409 in progress). Mock the HTTP layer; never call the live API in tests.
6. Document the SOLARISE_API_KEY variable and how to create a key: Solarise dashboard, then API, then Create API key. The key is shown only once.

Ask me before choosing a SunnyForm, sending customer contact details, or enabling save_to_crm or send_webhook.

OpenAPI document

The OpenAPI 3.1.0 document at /docs/api/openapi.json describes the endpoint, every field, the examples on this page and the error catalogue (in x-error-codes). Generate request and response types from it instead of writing them by hand. This page is generated from the same document, for API version 1.0.0.

FAQ

How long does an analysis take?

Usually 30 to 90 seconds. The API answers in the same HTTP request, so use a client timeout of at least 180 seconds and run the call from a background job.

Does a failed analysis use a measurement?

No. Only successful analyses use a measurement. When an analysis fails after it started, its measurement goes back to your balance, and retrying with the same Idempotency-Key never charges twice.

Do I need a SunnyForm to use the API?

No. Without one, Solarise uses an “API defaults” SunnyForm for the property’s country, which it creates on first use with the defaults of a new SunnyForm. Send your own SunnyForm’s ID to price systems with your products, prices, discounts and financing.

Which locations can I send?

Coordinates, a full street address with the house number, an Irish Eircode or a Plus Code. A postcode, street or town on its own is rejected because it does not identify one building.

Which countries does the API cover?

Any location with suitable aerial imagery. Default electricity prices cover 45+ countries, with US prices by state and UK prices by region, and open elevation surveys refine roofs in England, Wales, Scotland, the Netherlands, France and four German states.

What if I do not know the customer’s electricity use?

Solarise estimates it: a typical household of the country for homes, and the roof’s footprint at a typical commercial use per square metre for commercial and apartment buildings. Send the real consumption or bill when you have it, so the systems and savings fit the building.

Can I call the API from a browser or a mobile app?

No. Keep the API key on your server and call the API from server-side code only. Anyone with the key can run analyses on your plan.

Is there a test environment?

No, the API has one production environment. Test your integration against the documented example responses with a mocked HTTP layer; every successful live call uses a measurement.