Get Tip
get
/apis/tips-v1/{utilityCode}/energy_guide/customers/{id}/tips/{tipId}
Retrieve a single tip with associated metadata for a customer.
Request
Path Parameters
-
id(required): integer
The unique identifier of the customer.
-
tipId(required): string
The unique identifier of the tip.
-
utilityCode(required): string
A 3- or 4-character representation of the client code, in all uppercase characters. Valid example "UTIL".
Query Parameters
-
locale: string
The locale to retrieve tips in language_territory format which uses two letters for language and territory. For example en_US or fr_FR. The customer locale is used as the default. Only locales supported by the utility are allowed.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : SingleTipResponse
Type:
object
Response contains a single tip.
Show Source
Example:
{
"response":{
"tipName":"tip018_improve_window_shading",
"title":"Improve shading for windows",
"score":215.68625,
"group":"COOLING",
"fuelType":[
"ELEC"
],
"costCategory":"SMART_PURCHASE",
"image":"tip018_improve_window_shading.jpg",
"status":"WILL_DO",
"numParticipating":4984,
"season":[
"SUMMER",
"SPRING"
],
"why":"If the sun creates overwhelming heat in your home during the warmer months, you may wish to make targeted investments to improve the way you shade your windows.",
"shortBody":"<p>Window shades can help you stay cooler in the summer and warmer in the winter.</p>\n<p>Shading the outside of your windows with awnings, shutters, solar blinds, or solar screening will most effectively block summer heat, while indoor window treatments insulate well in the winter.</p>\n<p>Use what's right for each window. Pay special attention to windows that face south, east, and west and receive the most sunlight.</p>",
"longBody":"<strong>Things to think about:</strong>\n<ul>\n<li>Provide adequate shade ??? especially to windows that face south, west, or east, since they let in the most heat in summer months.</li>\n<li>Shading the outside of your windows is more effective at blocking heat than using indoor shades or drapes. Consider shading the exterior of your home with shutters, awnings, exterior solar blinds or solar screening. Just remember that you'll want any exterior shading to be removable during the winter months, when sunlight can help heat your home's interior.</li>\n<li>Planting deciduous trees ??? trees that usually lose their leaves in the fall ??? nearby is an excellent way to increase shading, because it shades the windows in the summer but allows sun exposure in the winter.</li>\n<li>Light-colored drapes and shades reflect the sun's energy, while darker ones absorb it and release heat.</li>\n<li>Remote control blinds are available for hard-to-reach windows.</li>\n</ul>",
"savings":"Save up to $90 per year.",
"cost":"Varies. Solar screens cost an average of $0.05 per square foot. New shades start at about $30.",
"payback":"Six months to two years.",
"imagePathsBySize":{
"40x40":"https://dh9c80tglww64.cloudfront.net/asset_files/528911/tip018_improve_window_shading.jpg",
"60x60":"https://dh9c80tglww64.cloudfront.net/asset_files/528913/tip018_improve_window_shading.jpg",
"75x75":"https://dh9c80tglww64.cloudfront.net/asset_files/528916/tip018_improve_window_shading.jpg",
"80x100":"https://dh9c80tglww64.cloudfront.net/asset_files/528917/tip018_improve_window_shading.jpg",
"140x140":"https://dh9c80tglww64.cloudfront.net/asset_files/528919/tip018_improve_window_shading.jpg",
"140x170":"https://dh9c80tglww64.cloudfront.net/asset_files/528921/tip018_improve_window_shading.jpg",
"190x230":"https://dh9c80tglww64.cloudfront.net/asset_files/528922/tip018_improve_window_shading.jpg",
"large":"https://dh9c80tglww64.cloudfront.net/asset_files/528924/tip018_improve_window_shading.svg",
"small":"https://dh9c80tglww64.cloudfront.net/asset_files/528925/tip018_improve_window_shading.svg"
}
}
}
Nested Schema : TipDTO
Type:
Show Source
object
-
cost:
string
Description of the cost of completing the tip, in HTML format.
-
costCategory(required):
string
Allowed Values:
[ "FREE", "PURCHASE", "INVESTMENT" ]
FREE means no up-front cost. PURCHASE means a ???smart purchase??? (medium up-front cost). INVESTMENT means ???a great investment??? (significant up-front cost). -
fuelType(required):
array FuelTypeList
The fuel types supported for the tip.
-
group(required):
string
Allowed Values:
[ "APPLIANCES", "COOLING", "HEATING", "HAC", "LIGHTING", "POOL", "OTHER", "WATER_HEATING", "OFFICE_EQUIPMENT", "IRRIGATION_CROPS", "REFRIGERATION", "FOOD_PREPARATION" ]
The tip group the tip belongs to. -
image(required):
string
Relative URI to image associated with the tip
-
imagePathsBySize(required):
object imagePathsBySize
Additional Properties Allowed: additionalPropertiesAbsolute URIs of the path to the tip image for the applicable image size.
-
longBody(required):
string
Pre-formatted long description of the tip, in HTML format.
-
numParticipating(required):
integer
Number of customers whose status for this tip is currently either DONE or WILL_DO.
-
payback:
string
Description of time needed to recoup the costs of completing a tip, in HTML format.
-
rebate:
string
Description of available rebates when completing a tip, in HTML format.
-
savings:
string
Description of the savings potential of completing the tip, in HTML format.
-
score(required):
number
A score that takes into consideration the potential energy the customer could save by doing the tip as well as the likelihood she will do the tip, based on the characteristics of her home and other factors. The higher the score, the more relevant a tip is for that customer.
-
season:
array TipsSeasonList
Seasons the tip applies to.
-
shortBody(required):
string
Pre-formatted short description of the tip, in HTML format.
-
status:
string
Allowed Values:
[ "DONE", "WILL_DO", "NO_THANKS", "NOT_YET" ]
The status of a tip for a particular customer. -
tipName(required):
string
Tip name, for example tip001_buy_energy_star.
-
title(required):
string
Short title of the tip.
-
voiceText:
string
Text for digital assistants.
-
why(required):
string
Pre-formatted description of why a customer should complete a tip, in HTML format.
Nested Schema : FuelTypeList
Type:
array
The fuel types supported for the tip.
Show Source
-
Array of:
string
Allowed Values:
[ "ELEC", "GAS" ]
The fuel type of the meter.
Nested Schema : imagePathsBySize
Type:
object
Additional Properties Allowed
Show Source
Absolute URIs of the path to the tip image for the applicable image size.
Nested Schema : TipsSeasonList
Type:
array
Seasons the tip applies to.
Show Source
-
Array of:
string
Allowed Values:
[ "WINTER", "SPRING", "SUMMER", "FALL" ]
Season
400 Response
Invalid request
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
401 Response
Authorization failure
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
404 Response
Customer not found or no tips found for the specified locale
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
500 Response
Internal error
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.