Update a lead
Update the editable fields of a lead. Send only the fields that change. metadata is merged key-by-key onto the stored object (a key set to null is removed; metadata: null clears every key). The request body must be JSON without repeated keys, and any unknown field is rejected with 400 BAD_REQUEST.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
"lead_mi4f0oda6x9m7gcsvjk0ole1"
Body
The lead fields to update
A field left out stays as it is. metadata merges key by key, with a null value removing that key.
- Person
- Company
ID of the previous supplier, possible to obtain via /suppliers. Only supported for consumption plans.
"mp_mi4f0oda6x9m7gcsvjk0ole1"
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 merged key-by-key onto the stored object. A key set to null is removed; metadata: null clears every key.
Response
The updated lead
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