Sandbox Scope Matrix
| Scope | Public sandbox grant | Unlocks | Notes |
|---|---|---|---|
utility:read | Yes | POST /v1/utility/get | Look up utilities and rate plans. |
homes:read | Yes | Home lookup and list routes | Requires a sandbox home. |
homes:write | Yes | Create, update, and remove sandbox homes | Use only non-production test records. |
price_signal:read | Yes | Home-backed price signals | Public price signals require home context. |
bill_impact:read | Yes | Home-backed and no-home bill routes | The no-home route supports quote-stage rate-plan bills. |
battery:estimate | Yes | Battery estimated savings | Estimate solar+battery savings for sandbox homes. |
feedback:write | Yes | POST /v1/feedback | Send implementation feedback from tests. |
1. Request Sandbox Access
Create or sign in to a sandbox account from Get API Key, then create a sandbox key with the scopes needed for the flow. For an automated agent credential flow, request these scopes:battery:estimate is granted, continue through the battery savings step after creating or selecting a sandbox home with the chosen rate plan.
2. Look Up Utility And Rate Plans
Use a ZIP code in the target service territory and ask for solar-aware ordering.ratePlans[].
- Use
ratePlans[].idasratePlanIdin WattShift API paths and request bodies. - Use
ratePlans[].rateIDas the semantic tariff reference for display and audit trails. - Inspect
solarBillingProgramandexportCompensationRefsto confirm export compensation coverage.
3. Calculate A Quote-Stage Bill
Use the no-home rate-plan period route when the proposal has a selected tariff but should not persist a home yet. Quote-stage requests must cover complete calendar months or complete calendar years:startDate must be the first day of a month, and endDate must be the first day of a later month.
july-period-bill.json must be strict JSON with one 96-value daily array for every day in July:
billTotal depends on the selected live rate plan and interval profile. Treat the response shape as the stable contract and refresh fixture totals when updating sandbox docs.
4. Calculate Battery Savings
Battery estimated savings is home-backed:months, where 1 is January and 12 is December. The sandbox credential must include battery:estimate for this step.