POST
/
subscriptions

Authorizations

Authorization
string
headerrequired

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

Body

application/json
plan
string
required

ID of the plan associated with this subscription.

customer
required
address
required
meter
required
payment_method
required
intended_start_date
string
required

When the subscription is intended to start. Must be a date in YYYY-MM-DD format or "next possible".

previous_supplier
string

ID of the previous energy supplier. Required if switching from another energy supplier.

Response

201 - application/json
object
string
required

Type of object is always subscription.

id
string
required

Unique identifier for the subscription.

number
string
required

Unique number for the subscription.

plan
object
required
customer
object
required
address
object
required
meter
object
required
payment_method
object
required
intended_start_date
string
required

When the subscription is intended to start. Must be a date in YYYY-MM-DD format or "next possible".

created_at
string
required

When the subscription was created.

previous_supplier
object
status
enum<string>

Status of the subscription.

Available options:
pending,
active,
ended
start_at
string

When the subscription became active.

terminated_at
string

When the subscription was terminated.

end_at
string

When the subscription ended.