Create a Subscription
Create a new subscription with the given parameters.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
ID of the plan associated with this subscription.
"pln_d9rfz7502xdyklkp9946ttci"
When the subscription is intended to start. Must be a date in YYYY-MM-DD format or "next possible".
"next possible"
ID of the previous energy supplier. Required if switching from another energy supplier.
"sup_gppx5tpmpakl2pfon4tzeijd"
Response
Type of object is always subscription.
"subscription"
Unique identifier for the subscription.
"sub_a05fl82x36f6endetxm8rrra"
Unique number for the subscription.
"28510261"
ID of the plan associated with this subscription.
"pln_d9rfz7502xdyklkp9946ttci"
ID of the customer associated with this subscription.
"cus_e2dl2weoltplx906rq9ur7or"
ID of the delivery address.
"adr_bhsnhlfe3wds3r9ku5tkrdsw"
ID of the meter associated with this subscription.
"mtr_d9rfz7502xdyklkp9946ttci"
ID of the payment method associated with this subscription.
"pm_d9rfz7502xdyklkp9946ttci"
Status of the subscription.
pending
, active
, ended
"pending"
When the subscription was created.
"2024-01-01T00:00:00Z"
When the subscription became active.
null
When the subscription was terminated.
null
When the subscription ended.
null