Function getRebatesByZip
Description
This function returns the Rebates available in any zipcode.
Parameters
| Parameter |
Description |
Required |
| key |
Your API Key. Contact us to get one. |
Yes |
| function |
Function to execute (getRebatesByZip). |
Yes |
| zipcode |
Zip code valid (US). |
Yes |
| output |
Return results in XML or JSON (defaults to XML). |
No |
| category |
Filter category for result list (see below). Accept multiple categories separate with semicolon character (;) (All by default). For example: category=Appliances;Roofs |
No |
Note: If a given category is selected, all the rebates in that category (and its child categories) will be returned.
Sample Function Call
http://www.wattzon.com/api-function?key=<YOUR-API-KEY>&function=getRebatesByZip&zipcode=94105&output=XML&
category=All
Function Results
| Parameter |
Description |
| request |
Request from client. |
| function |
Execution function. |
| output |
Format data returned. |
| response |
Response from service. |
| code |
Status code of the result (see information below). |
| msg |
Further information about the result. |
| rebates |
List of rebates found. |
| rebate |
Rebate Found. |
| id |
ID of rebate. |
| category |
Category of rebate. |
| subCategory |
If found in subcategory rebate. |
| area |
Area of rebate. |
| name |
Name of rebate. |
| type |
Type of rebate. |
| amount |
Amount of rebate. |
| description |
Description of rebate. |
| provider |
Provider of rebate. |
| notes |
Notes about the rebate. |
Sample Function Response
<api>
<request>
<function>getRebatesByZip</function>
<zipCode>94105</zipCode>
<category>All</category>
<output>xml</output>
</request>
<response>
<code>200</code>
<msg>OK</msg>
</response>
<rebates>
<rebate>
<id>2</id>
<category>Appliances</category>
<subCategory></subCategory>
<area>State of CA</area>
<name>Clothes Washer Rebate</name>
<provider>Pacific Gas & Electric</provider>
<type>Energy Utility</type>
<amount>
$50 on qualified, high-efficiency clothes
</amount>
<description>
High efficiency clothes washers
</description>
<notes> The rebate period began on Earth Day</notes>
</rebate>
......
</rebates>
</api>
Rebates Categories Available
| air-quality-appliances |
| appliances |
| clothes-washers-dryers |
| dehumidifier |
| dishwashers |
| refrigerators-freezers |
| clothes-line |
| energy-audits-evaluations |
| heating-cooling |
| air-conditioners-fans |
| boilers |
| duct-sealing |
| evaporative-coolers |
| fireplace |
| furnaces |
| heat-pumps |
| room-air-conditioners |
| solar-heating-system |
| wood-burning-stove |
| home-electronics |
| home-energy-retrofit |
| hot-water-heating |
| indoor-water-efficiency |
| showerheads-aerators |
| toilets |
| insulation |
| landscaping-irrigation |
| trees |
| lighting |
| compact-fluorescent-light-bulbs-cfls |
| daylighting |
| indoor-lighting |
| led-light-bulbs |
| lighting-controls-sensors |
| outdoor-lighting |
| loan |
| low-income-services |
| manufactured-home |
| minor-repairs |
| pools |
| pool-filtration-pumps-and-motors |
| radiant-barrier |
| recycle |
| renewable-energy |
| geothermal |
| solar-electricity |
| solar-hot-water |
| wind-turbines |
| roofs |
| cool-roofs |
| sealing-air-leaks |
| weatherization |
| tax-incentive |
| vehicles |
| windows-doors |
| doors |
| windows-window-treatments |