Example: query interval reads for gas service points

The following examples use &top=1000 to return only the first 1000 results. This value can be up to 10,000 to suit your needs.
-
HTTP example:
CopyGET /FactSpReadingGasInterval?$top=1000&$select=ServicePointKey,DayID,TimeOfDayID,Volume&$filter=DayID eq 20200501 HTTP/1.1
Host: https://services.itrontotal.com/odata
itron-route-override: iaodata
Authorization: Bearer
{{Token}} -
cURL example:
Copycurl --location --request GET 'https://services.itrontotal.com/odata/FactSpReadingGasInterval?$top=1000&$select=ServicePointKey,DayID,TimeOfDayID,Volume&$filter=DayID%20eq%2020200501' \
--header 'itron-route-override: iaodata' \
--header 'Authorization: Bearer
{{Token}}

Copy
{
"@odata.context": "https://services.itrontotal.com/odata/$metadata#FactSpReadingGasInterval(ServicePointKey,DayID,TimeOfDayID,Volume)",
"value": [
{
"ServicePointKey": 101702,
"DayID": 20200501,
"TimeOfDayID": 100,
"Volume": 0
},
{
"ServicePointKey": 101702,
"DayID": 20200501,
"TimeOfDayID": 200,
"Volume": 0
},
{
"ServicePointKey": 101702,
"DayID": 20200501,
"TimeOfDayID": 300,
"Volume": 0
},
…
]
}