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.

PropertyTypeDescription
id *integer
lead_typestring
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.

PropertyTypeDescription
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.

PropertyTypeDescription

Customer

Every Lead is associated with one Customer which represents the prospective customer.

PropertyTypeDescription
first_name *string

First name

last_name *string

Last name

year_of_birthinteger

Year of birth of the customer – this is only prompted when a renting option is selected in financing

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.

PropertyTypeDescription

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.

PropertyTypeDescription
house_type *string – one of
  • detached house
  • semi-detached house
  • townhouse
  • end-terrace house
  • apartment building
  • non-residential

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_areastring

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
  • right away
  • 1-6 months
  • 6-12 months
  • not planned yet
  • unknown

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
  • buybuy
  • rentrent
]

Financing options the customer is interested in

PVCalculations

The results of the calculations based on the parameters given by the customer.

PropertyTypeDescription
netto_capacity *number(double)

Netto capacity of the battery in kWp

suitability *string – one of
  • verygood
  • good
  • okay
  • none
  • unknown

Suitability of the roof for PV – none means not suitable, unknown means not calculated

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.

PropertyTypeDescription
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

PropertyTypeDescription
with_battery *number(double)

Price for solar plant with battery

without_battery *number(double)

Price for solar plant without battery – possibly identical to with_battery when partner only offers solar plants with battery

Photo

Different types of photos uploaded by the customer to further substantiate their requirements and parameters.

PropertyTypeDescription
typestring – one of
  • roof surface
  • house and surroundings
  • gable view
  • meter cabinet
  • tiles

Type of the image

url *string(uri)

URL to the image file

score *string – one of
  • good
  • medium
  • bad

How the image was rated by the AI

Information about the legal documents the customer agreed to.

PropertyTypeDescription
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.

PropertyTypeDescription
id *integer
lead_typestring
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

remarksstring

Special wishes or questions from the customer

heatpump_targeted_consultation_topics *[string – one of
  • Suitability of my property for a heat pump
  • Suitable installation location for the heat pump
  • Combination with a photovoltaic system
  • Subsidies and government grants
  • Energy consulting and efficiency improvement
  • Dismantling old heating / Oil tank disposal
]

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.

PropertyTypeDescription
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.

PropertyTypeDescription

Customer

Every Lead is associated with one Customer which represents the prospective customer.

PropertyTypeDescription
first_name *string

First name

last_name *string

Last name

year_of_birthinteger

Year of birth of the customer – this is only prompted when a renting option is selected in financing

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.

PropertyTypeDescription

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.

PropertyTypeDescription
house_type *string – one of
  • detached house
  • semi-detached house
  • townhouse
  • end-terrace house
  • apartment building
  • non-residential

Type of house

house_size *string – one of
  • 0-to-100-qm
  • 101 to 150 qm
  • 151 to 200 qm
  • 201 to 300 qm
  • over 300 qm

Size of the house

energy_efficiency_class *string – one of
  • ABC
  • D
  • E
  • F
  • G
  • H
  • not sure

Energy efficiency class of the house

construction_yearstring – one of
  • until 1958
  • between 1959 and 1968
  • between 1969 and 1977
  • between 1978 and 1994
  • between 1995 and 2001
  • since 2002
  • new building

Year the house was built

modernization_yearinteger

Year of the last modernization

modernization_types *[]

Types of modernization the house has undergone

energy_source *string – one of
  • wood
  • gas
  • oil
  • electricity
  • remote heating
  • pellets
  • environmental heat

Energy source for heating

energy_demand *integer

Energy demand of the house in kWh per year

heating_system *string – one of
  • underfloor heating
  • radiators
  • underfloor heating and radiators

Current heating system

heating_location *string – one of
  • basement
  • ground floor
  • upper floor
  • attic

Location of the current heating system

installation_time *string – one of
  • now to three months
  • three to six months
  • six to twelve months
  • only informative

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

PropertyTypeDescription
price_without_buffer *number(double)
price_with_buffer *number(double)
days_to_installation *integer

Information about the legal documents the customer agreed to.

PropertyTypeDescription
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.

Previous
HTTP Requests