GET
/
v1
/
sites
/
{siteId}
/
annualSpendAndSavings
curl --request GET \
  --url https://api.voltview.co.uk/v1/sites/{siteId}/annualSpendAndSavings \
  --header 'Authorization: Bearer <token>'
{
  "siteId": "<string>",
  "period": "<string>",
  "spend": 123,
  "savings": 123,
  "comparisonPeriod": "<string>",
  "previousSpend": 123,
  "spendChange": 123
}

Authorizations

Authorization
string
header
required

JWT token obtained from /v1/requestToken endpoint

Path Parameters

siteId
string
required

Site identifier

Response

200
application/json
Annual spend and savings data retrieved successfully
siteId
string
required

Site identifier

spend
number
required

Energy spend in GBP

period
string

Reporting period

savings
number

Cost savings in GBP

comparisonPeriod
string

Previous period for comparison

previousSpend
number

Previous period spend in GBP

spendChange
number

Percentage change in spend