Create a subscription
Create a new subscription.
Consumption plans:
meter.typemay besmartoranalogcustomer.vat_idis optionalintended_start_datemay be any future date; a date in the past is corrected to the next possible date, and when omitted, the next possible start date is usedprevious_suppliermay be set to cancel the customer’s existing contractproduct_ordersmay order a smart meter or §14a EnWG grid fee reductions, if the plan supports them
Requests that break one of these rules are rejected with 400 BAD_REQUEST and a message naming the violated rule. Feed-in plans are only available from the 2026-05-27.curie API version onwards; requesting one returns 400 BAD_REQUEST.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The subscription to create
Plan ID
"pln_n1ly4hv3nj1m9bv8skvjof3o"
- Option 1
- Option 2
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
ID of the previous supplier, possible to obtain via /suppliers. Only supported for consumption plans.
"mp_e1lf0vbqtvk2e8ijk2zjvq0s"
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"
Lead to track attribution of the subscription
"lead_pbbitpx2jpxlthnewopfgefh"
Array of additional product orders. Each item has a 'type' and may include an additional object with the same name as the type for its details. Only supported for consumption plans: §14a EnWG does not apply to feed-in, and feed-in requires a smart meter before signup.
[
{ "type": "smart-meter" },
{
"type": "14a_enwg",
"14a_enwg": { "module_1": true }
}
]Metadata of the subscription. Store any type of information, custom to your needs. E.g. the user_id of your in-house user. Restricted to 10KB.
{
"utm_source": "google",
"utm_campaign": "campaign_name",
"user_id": "1234567890"
}Response
The created subscription details
Type of the object, always 'subscription'
subscription Unique identifier for the subscription
"sub_rocbrf1u5e48mm0reeqoag90"
ID of the plan
"pln_ctj3tjzc7dywznuw1dy80lb3"
ID of the customer
"cus_a8n8ol7yd4h0wohx824f0bui"
ID of the address
"adr_a7gurqkul8lzzsy1pf9p9388"
ID of the meter
"mtr_azk4zue2ijx4ff1dbjt14m5h"
ID of the payment method
"pm_adc9utqqpcp7tx054l7vg56s2"
Status of the subscription
pending, active, ended "active"
Estimated yearly usage in kWh, provided by the customer in the checkout.
Timestamp when the subscription was created
"2024-03-14T12:00:00Z"
Timestamp when the subscription was updated
"2024-03-14T12:00:00Z"
ID of the previous supplier
"mp_a0x6jm5h92wde6s5dnuvha4c"
Human-readable identifier for the subscription
"4X44EMKX"
Timestamp when delivery was started / will start
"2024-03-14T12:00:00Z"
Timestamp when delivery was terminated
"2024-03-14T12:00:00Z"
Timestamp when the subscription was ended / will end
"2024-03-14T12:00:00Z"
Metadata of the subscription. Store any type of information, custom to your needs. E.g. the user_id of your in-house user. Restricted to 10KB.
{
"utm_source": "google",
"utm_campaign": "campaign_name",
"user_id": "1234567890"
}