/api/v1/things/{id}/fuel (GET)
GET
/api/v1/things/{id}/fuel
const url = 'https://example.com/api/v1/things/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fuel?limit=20&f.full=0&sort=takenAt&dir=asc';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/things/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fuel?limit=20&f.full=0&sort=takenAt&dir=asc'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
f.when
string
f.unit
Any of:
string
Array<string>
f.vendor
Any of:
string format: uuid
Array<string>
f.full
string
not
Any of:
string
Array<string>
sort
string
dir
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
takenAt
required
string
amount
required
string
unit
required
string
isFull
required
boolean
missedBefore
required
boolean
cost
string
currency
string
moneyHidden
boolean
pricePerUnit
string
vendor
object
id
required
string format: uuid
name
required
string
reading
object
id
required
string format: uuid
value
required
string
state
required
string
receipt
object
attachmentId
required
string format: uuid
fileId
required
string format: uuid
thumbUrl
required
string | null
loggedBy
required
object
displayName
required
string
rowVersion
required
integer
next_cursor
required
string | null
Example
{ "items": [ { "unit": "L", "moneyHidden": true, "reading": { "state": "accepted" } } ]}