Triggers the workflow new_lead

POST /wf/new_lead

Triggers the workflow new_lead

Body

Body of the POST request

  • address object Required

    The address where the installation will be conducted. It can be different from the customer's personal address.

    Hide address attributes Show address attributes object
    • address string

      Formatted address

    • lat number(float)

      Address latitude

    • lng number(float)

      Address longitude

  • country string Required

    The country where the installation will be conducted.

    Values are Germany, Sweden, Switzerland, or Netherlands.

  • organization string Required

    You can obtain your sales representative ID by making a GET request to the Get User Information endpoint.

  • customer_email string Required
  • customer_first_name string Required
  • customer_last_name string Required
  • customer_phone string
  • comment string
  • sales_rep_id string Required

    You can obtain your sales representative ID by making a GET request to the Get User Information endpoint.

  • estimated_cost_of_installation number(float) Required

    Estimated total cost of the installation after subsidies, including VAT.

Responses

  • 200

    Workflow response

    Hide response attributes Show response attributes object
    • status string

      Outcome of the workflow

    • response object
  • 400

    Workflow failure

    Hide response attributes Show response attributes object
    • status string

      Outcome of the workflow

    • message string

      Error message for the workflow

  • 401

    Permission denied

    Hide response attribute Show response attribute object
    • message string

      Error message for the operation

  • 404

    Not found

    Hide response attribute Show response attribute object
    • message string

      Error message for the operation

  • 405

    Wrong method

    Hide response attribute Show response attribute object
    • message string

      Error message for the operation

  • 429

    Too many requests

    Hide response attribute Show response attribute object
    • message string

      Error message for the operation

  • 500

    Internal bug. Please file a bug report at bubble.io/support/report with the request that triggers this bug

    Hide response attributes Show response attributes object
    • code string

      Error code

    • message string

      Error message for the operation

  • 503

    Service Unavailable

    Hide response attribute Show response attribute object
    • message string

      Error message for the operation

POST /wf/new_lead
curl \
 --request POST 'https://cloover.co/api/1.1/wf/new_lead' \
 --data '{"address":{"address":"string","lat":42.0,"lng":42.0},"country":"Germany","organization":"string","customer_email":"string","customer_first_name":"string","customer_last_name":"string","customer_phone":"string","comment":"string","sales_rep_id":"string","estimated_cost_of_installation":42.0}'
Request examples
{
  "address": {
    "address": "string",
    "lat": 42.0,
    "lng": 42.0
  },
  "country": "Germany",
  "organization": "string",
  "customer_email": "string",
  "customer_first_name": "string",
  "customer_last_name": "string",
  "customer_phone": "string",
  "comment": "string",
  "sales_rep_id": "string",
  "estimated_cost_of_installation": 42.0
}
Response examples (200)
{
  "status": "string",
  "response": {}
}
Response examples (400)
{
  "status": "string",
  "message": "string"
}
Response examples (401)
{
  "message": "string"
}
Response examples (404)
{
  "message": "string"
}
Response examples (405)
{
  "message": "string"
}
Response examples (429)
{
  "message": "string"
}
Response examples (500)
{
  "code": "string",
  "message": "string"
}
Response examples (503)
{
  "message": "string"
}