Skip to main content
POST
Create a lead

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The lead to create

plan
string
required

Plan ID

Example:

"pln_mi4f0oda6x9m7gcsvjk0ole1"

address
object
required
meter
object
required
customer
Person · object
payment_method
object | null
previous_supplier
string | null

ID of the previous supplier, possible to obtain via /suppliers. Only supported for consumption plans.

Example:

"mp_mi4f0oda6x9m7gcsvjk0ole1"

next_possible_start
boolean | null

If set to false we will request the cancellation of the previous supplier / grid operator signup to the date provided in intended_start_date. If set to true we will request the next possible date.

Example:

true

intended_start_date
string<date> | null

Intended start date of the subscription. Must be a date in the future. For feed-in plans it must be the first day of a month, at least one month in the future; when omitted, the next possible production start date is used.

Example:

"2024-01-01"

change_reason
enum<string>

Reason of changing the supplier

Available options:
supplier_change,
move_in
Example:

"supplier_change"

created_by
string | null

Email of the user who created the lead

Example:

"john.doe@example.com"

metadata
object

Metadata of the lead, can be internal data

Example:

Response

The created lead details

object
enum<string>
required
Available options:
lead
id
string
required

Unique identifier for the lead

Example:

"lead_a8n8ol7yd4h0wohx824f0bui"

URL of the lead

Example:

"https://nomos.checkout.energy/?id=lead_a8n8ol7yd4h0wohx824f0bui"

created_at
required

Timestamp when the lead was created

Example:

"2024-03-14T12:00:00Z"

subscription
string | null

ID of the subscription, if the lead is converted to a subscription

Example:

"sub_a8n8ol7yd4h0wohx824f0bui"

subscribed_at

Timestamp when the lead was converted to a subscription

Example:

"2024-03-14T12:00:00Z"

created_by
string | null

Email of the user who created the lead

Example:

"john.doe@example.com"

last_visited_at

Timestamp when the lead was last visited

Example:

"2024-03-14T12:00:00Z"

metadata
object | null

Metadata of the lead, can be internal data

Example: