Body
Body of the POST request
-
The first name of the customer.
-
The last name of the customer.
-
This is the email of the customer the offer is sent to.
-
The address where the installation will be conducted. It can be different from the customer's personal address.
-
The type of project among the following possibilities.
Values are
Solar,Solar + Battery/Charging station, orBattery/Charging station. -
The country where the installation will be conducted.
Values are
Germany,Sweden,Switzerland, orNetherlands. -
The currency of the project's invoice.
Values are
EUR,kr, orCHF. -
For a better user experience you can pass here a link to the technical offer (PDF) of the project. You need to host the file.
-
The type of customer.
Values are
IndividualorCompany. -
You can obtain your sales representative ID by making a GET request to the Get User Information endpoint.
-
You can get your organization ID by making a GET request to the Get User Information endpoint.
-
Indicates if the offer email should be sent to the customer.
-
The phone number of the customer.
-
Indicates if VAT is applicable.
-
Available financing options.
Values are
InvoiceorFinancing. -
Available financing durations.
Values are
1 year,2 years,3 years,4 years,5 years,6 years,7 years,8 years,9 years,10 years,11 years,12 years,13 years,14 years,15 years,16 years,17 years,18 years,19 years, or20 years. -
Subsidized price for the heat pump installation.
-
Total cost of the installation after subsidies, including VAT.
curl \
--request POST 'https://cloover.co/version-test/api/1.1/wf/new_project_2' \
--data '{"first_name_customer":"string","last_name_customer":"string","email_customer":"string","address_project":{"address":"string","lat":42.0,"lng":42.0},"type_project":"Solar","country_project":"Germany","currency_project":"EUR","offer_PDF":["string"],"type_customer":"Individual","sales_rep":"string","organization":"string","send_offer_email":true,"phone_customer":"string","VAT":true,"financing_options":["Financing","Invoice"],"financing_durations":["5 years","10 years","15 years"],"Heatpump_subsidized_price":42.0,"Total_cost_installation":42.0}'
{
"first_name_customer": "string",
"last_name_customer": "string",
"email_customer": "string",
"address_project": {
"address": "string",
"lat": 42.0,
"lng": 42.0
},
"type_project": "Solar",
"country_project": "Germany",
"currency_project": "EUR",
"offer_PDF": [
"string"
],
"type_customer": "Individual",
"sales_rep": "string",
"organization": "string",
"send_offer_email": true,
"phone_customer": "string",
"VAT": true,
"financing_options": [
"Financing",
"Invoice"
],
"financing_durations": [
"5 years",
"10 years",
"15 years"
],
"Heatpump_subsidized_price": 42.0,
"Total_cost_installation": 42.0
}
{
"status": "string",
"response": {
"checkout_link": "string",
"project_id": "string",
"financial_offer": "string"
}
}
{
"status": "string",
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"code": "string",
"message": "string"
}
{
"message": "string"
}