Create a savings study
Generates the customer-facing savings-study PDF, stores it privately, e-mails it to the recipient
(shareable link + the PDF attached), and returns the link. The link points at
GET /api/v1/studies/{id}/pdf, which redirects to a short-lived SAS on each visit — the PDF is
never a permanently-open public URL (GDPR: expiry + access logs + revocation on delete).
Headers
Optional id of the caller's own end-user this study belongs to. Tag studies
with it to list them back later via GET /api/v1/studies. Opaque to Cubee — never send a name or e-mail.
Cube IT only. Company identification number (IČO) of the company embedding the calculator, which brands the study (logo + contact) as that partner's instead of generic Cubee. Marks the call as an embed: any other token sending it gets 403, and a CIN matching no partner falls back to generic Cubee branding.
Body
The study inputs plus the recipient's e-mail address.
The savings-study PDF request, delivered as an e-mail with the PDF attached.
Total installed PV power - kWp.
Constraints: The system currently supports only a single PV array, so this represents the total capacity.
If you need to create custom production profiles, use the CustomProductionConsumptionData property instead.
Configuration of the battery system used in the simulation.
Settings related to the electricity distributor and regulated fees.
Configuration for electricity purchasing strategy (either fixed or spot-based).
- FixBuyingSettings
- SpotBuyingSettings
The customer the study is for — delivery address and CRM contact details.
Type of time period to evaluate — a specific year like "2024", "2025", or the rolling range "12M"
(last 12 completed months). Accepted values come from GET /api/v1/reference/periods.
Optional: leave it null and set from + to instead to evaluate an explicit date range.
When both from and to are provided this field is ignored. Exactly one of
{ periodType } or { from + to } must be supplied.
Optional explicit start of the evaluation period (date only, inclusive), e.g. "2025-01-01". Must be set
together with to. When both are set, periodType is ignored — this lets you pin the exact
window a study was computed over (e.g. a "last 12 months" run) so it can be reproduced later. The range
must fall within the available data window (see the 400 response for the allowed bounds).
Optional explicit end of the evaluation period (date only, inclusive), e.g. "2025-12-31". Must be set
together with from. The whole day is included. A full calendar year (from = Jan 1, to = Dec 31)
yields the same result as the matching periodType year.
Estimated total annual electricity consumption of the household in kilowatt-hours (kWh).
Configuration for electricity selling strategy (if can't sell, set null).
- FixSellingSettings
- SpotSellingSettings
Optional custom production and consumption data for more accurate modeling.
This is not required; if not provided, the model will use default estimations based on TotalKWp and YearlyConsumptionKWh.
Model requires 1 hour granularity data for the entire period specified in PeriodType.
Customer details shown on the study cover.
Response
OK
Result of creating a study: the stored PDF's link plus whether the e-mail actually went out.
The calculation id (also the blob name).
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Absolute URL of the public broker endpoint that redirects to a short-lived SAS.
"https://api.partner.cubee.cz/api/v1/studies/3fa85f64-5717-4562-b3fc-2c963f66afa6/pdf"
true if the e-mail was sent; false if e-mail is disabled or sending failed (PDF is still stored and reachable via Url).
true