Commission Site And Devices
POST
/v1/commissionNote that you need the client authentication token (not the site token) to access the API.
Request
The ID of the site in your system.
In the sandbox, use zip codes 88800, 88801 or 88802 to match with test programs.
An ID assigned to the residential customer by the utility. Can typically be found on the utility bill.
The ID of the device in your system.
Structure depends on type
. They are not user-adjustable and should be configured during installation / commissioning.
Structure depends on type
The date the device was installed at the customer's site, or the date it received permission to operate from the utility, if different.
{
"site": {
"id": "string",
"first_name": "string",
"last_name": "string",
"email": "[email protected]",
"state_code": "st",
"city": "string",
"zip_code": "88800",
"street_address": "string",
"street_address2": "string",
"service_account_id": "string"
},
"devices": [
{
"id": "string",
"manufacturer_name": "string",
"product_name": "string",
"serial_number": "string",
"type": "BATTERY",
"attributes": {
"battery_capacity_wh": 0,
"battery_power_input_w": 0,
"battery_power_output_w": 0
},
"configuration": {
"reserve_percentage": 0
},
"install_date": "2019-08-24T14:15:22.123Z"
}
],
"can_auto_enroll": true
}
Request samples
Responses
Can be null if the minimum commitment is currently not known.
List of calendar months (range 1-12) in which the program is active
Estimated one-time upfront earnings in the program, based on the site information
Estimated yearly recurring earnings in the program, based on the site information
A program might require special information from the end user on enrollment. If it does, this array will contain each of them. They should be used to dynamically convert into form fields.
If a program requires terms and conditions to be agreed with, the current version will be provided here. It should not be displayed to the user.
If a program requires terms and conditions to be agreed with, the full text of the current version, in Markdown format, will be provided here. It should be displayed to the user.
{
"programs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"eligible_device_types": [
"BATTERY"
],
"can_auto_enroll": true,
"minimum_commitment_months": 0,
"participation_months": [
0
],
"earnings_for_site_upfront": 0,
"earnings_for_site_yearly": 0,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"enrollment_form": [
{
"name": "string",
"label": "string",
"type": "boolean"
}
],
"terms_and_conditions_version": "string",
"terms_and_conditions_text": "string"
}
],
"enrollment": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"device_ids": [
"string"
],
"site_id": "string",
"program_id": "70c1146b-e933-4cb2-a789-bbca5312b517",
"enroll_method": "AUTO_ENROLL",
"status": "ACTIVE",
"status_reason": "string",
"enrolled_at": "2019-08-24T14:15:22.123Z",
"unenrolled_at": "2019-08-24T14:15:22.123Z",
"program_specific_attributes": [
{
"name": "string",
"value": "string"
}
],
"has_agreed_to_terms_and_conditions": true,
"terms_and_conditions_version": "string"
}
}