Create a lead
This endpoint can be used to create a secure, pre-filled checkout link. The link (returned in the “link” property) contains all provided customer, address and meter data, allowing the prospect to finalize their signup with only providing the missing payment information, essentially enabling a 2-click checkout experience. Leads are tracked in the Nomos Dashboard for detailed conversion analytics.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The lead to create
Plan ID
"pln_yagkfjnzki2hsof97cq3tqlc"
- Option 1
- Option 2
ID of the previous supplier, possible to obtain via /suppliers. Only supported for consumption plans.
"mp_j02cmjngyd79q2e7axgx0jyn"
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.
true
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.
"2024-01-01"
Reason of changing the supplier
supplier_change, move_in "supplier_change"
Email of the user who created the lead
"john.doe@example.com"
Metadata of the lead, can be internal data
{
"utm_source": "google",
"utm_campaign": "campaign_name",
"user_id": "1234567890"
}Response
The created lead details
lead Unique identifier for the lead
"lead_a8n8ol7yd4h0wohx824f0bui"
URL of the lead
"https://nomos.checkout.energy/?id=lead_a8n8ol7yd4h0wohx824f0bui"
Timestamp when the lead was created
"2024-03-14T12:00:00Z"
ID of the subscription, if the lead is converted to a subscription
"sub_a8n8ol7yd4h0wohx824f0bui"
Timestamp when the lead was converted to a subscription
"2024-03-14T12:00:00Z"
Email of the user who created the lead
"john.doe@example.com"
Timestamp when the lead was last visited
"2024-03-14T12:00:00Z"
Metadata of the lead, can be internal data
{
"utm_source": "google",
"utm_campaign": "campaign_name",
"user_id": "1234567890"
}