Webhooks
Payload
The payload value structure is identical to that of the respective REST API.
Photovoltaics Leads
PVLead
This is the root of the payload and has some meta information about the lead as well as all other payload data nested below it.
| Property | Type | Description |
|---|---|---|
id * | integer | |
lead_type | string | |
created * | string(date-time) | Date and time the lead was created |
location * | Location | Location of the partner |
product * | ExportProduct | Product offered by the partner |
customer * | Customer | Customer who created the lead |
legal * | Legal | Legal documents the customer agreed to |
parameters * | PVParameters | Parameters given by the customer |
calculations * | PVCalculations | Calculations made based on given parameters |
prices * | PVPrices | Prices shown to the customer based on the pricing information provided by the partner |
photos * | [Photo] | Photos uploaded by the customer |
Location
PV companies have one or more locations (company sites). This section identifies the location the lead was created with.
| Property | Type | Description |
|---|---|---|
id * | integer | Location identifier |
name * | string | Location name |
Product
PV companies can offer multiple products on our platform. The most common differentiator is the type of financing (buying vs. renting). This section identifies the product that was offered to the user.
| Property | Type | Description |
|---|
Customer
Every Lead is associated with one Customer which represents the prospective customer.
| Property | Type | Description |
|---|---|---|
first_name * | string | First name |
last_name * | string | Last name |
year_of_birth | integer | Year of birth of the customer – this is only prompted when a renting option is selected in |
street * | string | Street name |
street_number * | string | Street number |
zipcode * | string | Zip code |
city * | string | City |
coordinate * | Coordinates | Geo coordinates for the given address |
email * | string | Confirmed e-mail address |
phone * | string | Phone number |
Coordinate
The geographic coordinate for the given address.
| Property | Type | Description |
|---|
PVParameters
All the information given by the customer in their inquiry. These have already been matched with the partner's requirements so that only matching leads are pushed.
| Property | Type | Description |
|---|---|---|
house_type * | string – one of
| Type of house |
energy_consumption * | number(double) | Energy consumption in kWh per year |
is_interested_in_emobility * | boolean | Whether the customer is also interested in e-mobility products |
is_interested_in_heat_pump * | boolean | Whether the customer is also interested in a heat pump product |
is_interested_in_batteries * | boolean | Whether the customer is also interested in a battery product |
roof_angle * | integer | Angle of the roof in degrees – 0° is flat |
roof_orientation * | integer | Orientation of the roof in degrees – 0° is North |
roof_area | string | Size of the roof in m² |
roof_material * | string | Material of the roof |
roof_renovated_period * | string | When the roof was built or last renovated |
installation_time * | string – one of
| When the customer would like the installation to happen |
customer_is_owner * | boolean | Whether the customer is the owner of the house |
financing * | [ – one of
] | Financing options the customer is interested in |
PVCalculations
The results of the calculations based on the parameters given by the customer.
| Property | Type | Description |
|---|---|---|
netto_capacity * | number(double) | Netto capacity of the battery in kWp |
suitability * | string – one of
| Suitability of the roof for PV – |
pv_area * | PVArea | Roof areas and their suitability for mounting a PV plant. |
max_energy * | number(double) | Maximum possible energy yield (on all roof surfaces classified as at least suitable) in kWh/year |
number_of_panels * | integer | Total size of all plants in number of modules |
kwp * | number(double) | Peak power of the PV plant in kWp |
yearly_yield * | number(double) | Yearly yield of the PV plant in kWh/year |
autarky * | integer | Degree of autarky in percent received with given solar plant |
co2_savings * | number(double) | CO₂ savings in tons per year |
PVArea
Information about roof areas and their suitabilty for mounting a PV plant.
| Property | Type | Description |
|---|---|---|
well_suited * | number(double) | Area of the roof in m² that is well suited |
suited * | number(double) | Area of the roof in m² that is suited |
barely_suited * | number(double) | Area of the roof in m² that is barely suited |
PVPrices
Prices shown to the customer based on the pricing information provided by the partner
| Property | Type | Description |
|---|---|---|
with_battery * | number(double) | Price for solar plant with battery |
without_battery * | number(double) | Price for solar plant without battery – possibly identical to |
Photo
Different types of photos uploaded by the customer to further substantiate their requirements and parameters.
| Property | Type | Description |
|---|---|---|
type | string – one of
| Type of the image |
url * | string(uri) | URL to the image file |
score * | string – one of
| How the image was rated by the AI |
Legal
Information about the legal documents the customer agreed to.
| Property | Type | Description |
|---|---|---|
terms_and_conditions_accepted * | boolean | Whether the customer agreed to the Selfmade Energy terms and conditions |
data_privacy_accepted * | boolean | Whether the customer agreed to the Selfmade Energy data privacy policy |
Example
Please find an example webhook request here.
Heatpump Leads
HeatPumpLead
This is the root of the payload and has some meta information about the lead as well as all other payload data nested below it.
| Property | Type | Description |
|---|---|---|
id * | integer | |
lead_type | string | |
created * | string(date-time) | Date and time the lead was created |
location * | Location | Location of the partner |
product * | ExportProduct | Product offered by the partner |
customer * | Customer | Customer who created the lead |
legal * | Legal | Legal documents the customer agreed to |
parameters * | HeatPumpParameters | Parameters given by the customer |
prices * | HeatPumpPrices | Prices shown to the customer based on the pricing information provided by the partner |
remarks | string | Special wishes or questions from the customer |
heatpump_targeted_consultation_topics * | [string – one of
] | List of translated consultation topic names |
Location
PV companies have one or more locations (company sites). This section identifies the location the lead was created with.
| Property | Type | Description |
|---|---|---|
id * | integer | Location identifier |
name * | string | Location name |
Product
PV companies can offer multiple products on our platform. This section identifies the product that was offered to the user.
| Property | Type | Description |
|---|
Customer
Every Lead is associated with one Customer which represents the prospective customer.
| Property | Type | Description |
|---|---|---|
first_name * | string | First name |
last_name * | string | Last name |
year_of_birth | integer | Year of birth of the customer – this is only prompted when a renting option is selected in |
street * | string | Street name |
street_number * | string | Street number |
zipcode * | string | Zip code |
city * | string | City |
coordinate * | Coordinates | Geo coordinates for the given address |
email * | string | Confirmed e-mail address |
phone * | string | Phone number |
Coordinate
The geographic coordinate for the given address.
| Property | Type | Description |
|---|
HeatPumpParameters
All the information given by the customer in their inquiry. These have already been matched with the partner's requirements so that only matching leads are pushed.
| Property | Type | Description |
|---|---|---|
house_type * | string – one of
| Type of house |
house_size * | string – one of
| Size of the house |
energy_efficiency_class * | string – one of
| Energy efficiency class of the house |
construction_year | string – one of
| Year the house was built |
modernization_year | integer | Year of the last modernization |
modernization_types * | [] | Types of modernization the house has undergone |
energy_source * | string – one of
| Energy source for heating |
energy_demand * | integer | Energy demand of the house in kWh per year |
heating_system * | string – one of
| Current heating system |
heating_location * | string – one of
| Location of the current heating system |
installation_time * | string – one of
| When the customer would like the installation to happen |
zipcode * | string | Customer's zip code |
HeatPumpPrices
Prices shown to the customer based on the pricing information provided by the partner
| Property | Type | Description |
|---|---|---|
price_without_buffer * | number(double) | |
price_with_buffer * | number(double) | |
days_to_installation * | integer |
Legal
Information about the legal documents the customer agreed to.
| Property | Type | Description |
|---|---|---|
terms_and_conditions_accepted * | boolean | Whether the customer agreed to the Selfmade Energy terms and conditions |
data_privacy_accepted * | boolean | Whether the customer agreed to the Selfmade Energy data privacy policy |
Example
Please find an example webhook request here.