Last active
June 6, 2017 10:47
-
-
Save baseten/cfa4d4fd0fd3433a4a0cc486df18f74c to your computer and use it in GitHub Desktop.
Squeaky Quote API Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"quote_reference": "0123457", | |
"email_address": "someone@somewhere.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"postcode": "N1 2AJ" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"addresses": [ | |
{ | |
"company_name": "Squeaky Clean Energy Ltd", | |
"street_1": "Henry Wood House", | |
"street_2": "2 Riding House Street", | |
"street_3": "", | |
"city": "London", | |
"postcode": "W1W 7FA", | |
"mpan": "031362371015683976462" | |
}, | |
{ | |
"company_name": "Squeaky Clean Energy Ltd", | |
"street_1": "Henry Wood House", | |
"street_2": "2 Riding House Street", | |
"street_3": "", | |
"city": "London", | |
"postcode": "W1W 7FA", | |
"mpan": "041362371015683976462" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": { | |
"company_name": "Squeaky Clean Energy Ltd", | |
"street_1": "Henry Wood House", | |
"street_2": "2 Riding House Street", | |
"street_3": "", | |
"city": "London", | |
"postcode": "W1W 7FA", | |
"mpan": "031362371015683976462" | |
}, | |
"current_supplier": "EDF Energy", | |
"quote_details": { | |
"units": 4000, | |
"spend": 600, | |
"start_date": "2017-05-26T09:57:04.649Z", | |
"period_months": [ 12, 24 ] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"quote_reference": "0123457", | |
"quote": { | |
"monthly": 150.39, | |
"annually": 1804.68 | |
}, | |
"generator_name": "Pant y Wal Wind Farm", | |
"electricity_unit_rates": [ | |
{ | |
"name": "Day", | |
"value": 16 | |
}, | |
{ | |
"name": "Night", | |
"value": 12 | |
} | |
], | |
"electricity_standing_charge": 2, | |
"tariff_end_date": "2017-05-26T09:57:04.649Z", | |
"guaranteed_date": "2017-05-26T09:57:04.649Z", | |
"electricity_projected_cost": 1804.68, | |
"tariff_comparison_rate": 14 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": { | |
"title": "Mr", | |
"first_name": "Chris", | |
"last_name": "Bowden" | |
}, | |
"address": { | |
"company_name": "Squeaky Clean Energy Ltd", | |
"street_1": "Henry Wood House", | |
"street_2": "2 Riding House Street", | |
"street_3": "", | |
"city": "London", | |
"postcode": "W1W 7FA", | |
"mpan": "031362371015683976462" | |
}, | |
"contact_details": { | |
"phone": "0203 126 4947", | |
"email": "someone@somewhere.com", | |
"confirm_email": "someone@somewhere.com", | |
}, | |
"terms_accepted": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contract_reference": "0123457", | |
"switch_date": "2017-05-26T09:57:04.649Z" | |
} |
I have updated the term reference
to be more specific as in some cases I think this is the quote reference and in others the contract reference?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does
switch-request.json
need a reference to the quote that was generated previously?