POST Api/Comparison/SaveComparisonHistory/{PresaleID}/{EnergyType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| PresaleID | integer |
Required |
|
| EnergyType | integer |
Default value is -1 |
Body Parameters
ComparisonDataHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| ElecRetailerID | integer |
None. |
|
| GasRetailerID | integer |
None. |
|
| ElecPlanID | integer |
None. |
|
| GasPlanID | integer |
None. |
|
| ElecPossibleSavings | decimal number |
None. |
|
| GasPossibleSavings | decimal number |
None. |
|
| ElectricityEstimatedCost | decimal number |
None. |
|
| GasEstimatedCost | decimal number |
None. |
|
| TotalEstimatedCost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ElecRetailerID": 1,
"GasRetailerID": 1,
"ElecPlanID": 1,
"GasPlanID": 1,
"ElecPossibleSavings": 1.0,
"GasPossibleSavings": 1.0,
"ElectricityEstimatedCost": 1.0,
"GasEstimatedCost": 1.0,
"TotalEstimatedCost": 1.0
}
application/xml, text/xml
Sample:
<ComparisonDataHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoSwitch.CustomerTools.Models.ComparisonHistory.Parameter"> <ElecPlanID>1</ElecPlanID> <ElecPossibleSavings>1</ElecPossibleSavings> <ElecRetailerID>1</ElecRetailerID> <ElectricityEstimatedCost>1</ElectricityEstimatedCost> <GasEstimatedCost>1</GasEstimatedCost> <GasPlanID>1</GasPlanID> <GasPossibleSavings>1</GasPossibleSavings> <GasRetailerID>1</GasRetailerID> <TotalEstimatedCost>1</TotalEstimatedCost> </ComparisonDataHistory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.