Customers
The people you plan PV systems for. A customer can have several projects.
List customers
Returns your customers, newest first. Filter with `name`, `email` and `city`, sort with `sort` (e.g. `sort=lastName.asc`) and page with `limit` and `offset`. Requires the `read:customers` scope.
Create a customer
Creates a customer. Only `firstName` is required. The response contains the new customer's `id`, which you need to create a project for them. Requires the `write:customers` scope.
Get a customer
Returns one customer. Requires the `read:customers` scope.
Update a customer
Changes a customer. Send only the fields to change; the others keep their value. `null` clears a field. Requires the `write:customers` scope.
Delete a customer
Deletes a customer who has no projects. Delete the customer's projects first (`DELETE /v1/projects/{id}`); that also deletes their offers. Requires the `write:customers` scope.