SDK Reference
Fuel Fuel transaction records, summaries, vehicle fuel rows, cards, fuel types, and transaction assignment.
Important
Fuel endpoints are dashboard-derived and can include tenant-specific columns.
The SDK keeps the common fields typed and leaves additional columns available on
the returned record.
Input Object parameter. Expand to see child parameters.
Show child parameters Number of records to request.
Page number to request.
Default: 1
fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
[filter]QueryValue
optional Additional fuel report filters forwarded as query parameters.
Returns Fuel transaction records for the requested page.
Show child fields driverstring | null
optional fuelCardNumberstring | null
optional fuelPricenumber | null
optional Fuel transaction identifier.
petrolStationstring | null
optional Petrol station display name.
refuelednumber | null
optional totalnumber | null
optional Total transaction amount.
transactionDateISODateString
optional vehicleLinxioRecord | null
optional Vehicle payload when included by Linxio.
Pagination metadata.
Show child fields Total matching record count.
Typed SDK error when records cannot be loaded.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const records = await linxio.fuel. records ({
fields: [ "transactionDate" , "vehicleIds" , "total" ],
limit: 100 ,
});
if (records.error) {
throw records.error;
} {
"data" : [
{
"driver" : {
"id" : "36541" ,
"email" : "driver@example.com.au" ,
"name" : "Example" ,
"surname" : "Driver" ,
"role" : {
"id" : 6 ,
"name" : "admin" ,
"displayName" : "Admin"
} ,
"phone" : "+61401000123" ,
"status" : "active" ,
"lastLoggedAt" : "2026-05-24T08:31:46+00:00" ,
"driverSensorId" : "F4CFB22527B2" ,
"driverFOBId" : "1"
} ,
"fuelCardNumber" : "string" ,
"fuelPrice" : 123 ,
"id" : 64553 ,
"petrolStation" : "string" ,
"refueled" : 123 ,
"total" : 2 ,
"transactionDate" : "2026-06-08T12:00:00+08:00" ,
"vehicle" : { }
}
] ,
"meta" : {
"limit" : 100 ,
"page" : 1 ,
"total" : 2
} ,
"error" : null
}
Input Same filters and field projection as fuel.records().
Show child parameters fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
Maximum records to request per page.
Page number to request.
Default: 1
Sort expression accepted by Linxio for that endpoint.
[filter]QueryValue
optional Additional endpoint-specific filters forwarded as query parameters.
Returns Flat array containing every loaded fuel record.
Show child fields driverstring | null
optional fuelCardNumberstring | null
optional fuelPricenumber | null
optional Fuel transaction identifier.
petrolStationstring | null
optional Petrol station display name.
refuelednumber | null
optional totalnumber | null
optional Total transaction amount.
transactionDateISODateString
optional vehicleLinxioRecord | null
optional Vehicle payload when included by Linxio.
Typed SDK error if any page fails.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const { data : records , error } = await linxio.fuel. iterateRecords ({
limit: 100 ,
});
if (error) {
throw error;
} {
"data" : [
{
"driver" : {
"id" : "36541" ,
"email" : "driver@example.com.au" ,
"name" : "Example" ,
"surname" : "Driver" ,
"role" : {
"id" : 6 ,
"name" : "admin" ,
"displayName" : "Admin"
} ,
"phone" : "+61401000123" ,
"status" : "active" ,
"lastLoggedAt" : "2026-05-24T08:31:46+00:00" ,
"driverSensorId" : "F4CFB22527B2" ,
"driverFOBId" : "1"
} ,
"fuelCardNumber" : "string" ,
"fuelPrice" : 123 ,
"id" : 64553 ,
"petrolStation" : "string" ,
"refueled" : 123 ,
"total" : 2 ,
"transactionDate" : "2026-06-08T12:00:00+08:00" ,
"vehicle" : { }
}
] ,
"error" : null
}
Input Same filters and field projection as fuel.records().
Show child parameters fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
Maximum records to request per page.
Page number to request.
Default: 1
Sort expression accepted by Linxio for that endpoint.
[filter]QueryValue
optional Additional endpoint-specific filters forwarded as query parameters.
Returns One fuel record at a time.
Show child fields driverstring | null
optional fuelCardNumberstring | null
optional fuelPricenumber | null
optional Fuel transaction identifier.
petrolStationstring | null
optional Petrol station display name.
refuelednumber | null
optional totalnumber | null
optional Total transaction amount.
transactionDateISODateString
optional vehicleLinxioRecord | null
optional Vehicle payload when included by Linxio.
Thrown if a page request fails.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
for await ( const record of linxio.fuel. streamRecords ({ limit: 100 })) {
console. log (record.transactionDate, record.total);
} {
"yield" : {
"driver" : {
"id" : "36541" ,
"email" : "driver@example.com.au" ,
"name" : "Example" ,
"surname" : "Driver" ,
"role" : {
"id" : 6 ,
"name" : "admin" ,
"displayName" : "Admin"
} ,
"phone" : "+61401000123" ,
"status" : "active" ,
"lastLoggedAt" : "2026-05-24T08:31:46+00:00" ,
"driverSensorId" : "F4CFB22527B2" ,
"driverFOBId" : "1"
} ,
"fuelCardNumber" : "string" ,
"fuelPrice" : 123 ,
"id" : 64553 ,
"petrolStation" : "string" ,
"refueled" : 123 ,
"total" : 2 ,
"transactionDate" : "2026-06-08T12:00:00+08:00" ,
"vehicle" : { }
}
}
Input Pagination, field projection, and report filters such as date range or vehicle filters when supported.
Show child parameters fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
Maximum records to request per page.
Page number to request.
Default: 1
Sort expression accepted by Linxio for that endpoint.
[filter]QueryValue
optional Additional endpoint-specific filters forwarded as query parameters.
Returns Summary rows with depot, groups, mileage, refueled, regNo, and total when supplied.
Show child fields depotstring | null
optional groupsstring | null
optional mileagenumber | null
optional Mileage in the summary period.
refuelednumber | null
optional Fuel volume in the summary period.
regNostring | null
optional Vehicle registration number.
totalnumber | null
optional Total fuel cost in the summary period.
Pagination metadata.
Show child fields Total matching record count.
Typed SDK error when summary rows cannot be loaded.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const summary = await linxio.fuel. summary ({
limit: 100 ,
startDate: "2026-06-01T00:00:00+08:00" ,
endDate: "2026-06-08T00:00:00+08:00" ,
});
if (summary.error) {
throw summary.error;
} {
"data" : [
{
"depot" : {
"id" : 1128 ,
"name" : "Westminster Depot" ,
"status" : 1 ,
"createdAt" : "2026-01-15T03:59:25+00:00" ,
"color" : "#0065d1"
} ,
"groups" : [
{
"id" : 1391 ,
"name" : "North Metropolitan" ,
"color" : "#009221"
}
] ,
"mileage" : 123 ,
"refueled" : 123 ,
"regNo" : "1ABC234" ,
"total" : 2
}
] ,
"meta" : {
"limit" : 100 ,
"page" : 1 ,
"total" : 2
} ,
"error" : null
}
Input Pagination, field projection, and vehicle/date filters accepted by Linxio.
Show child parameters fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
Maximum records to request per page.
Page number to request.
Default: 1
Sort expression accepted by Linxio for that endpoint.
[filter]QueryValue
optional Additional endpoint-specific filters forwarded as query parameters.
Returns Fuel records from the by-vehicle endpoint.
Show child fields driverstring | null
optional fuelCardNumberstring | null
optional fuelPricenumber | null
optional Fuel transaction identifier.
petrolStationstring | null
optional Petrol station display name.
refuelednumber | null
optional totalnumber | null
optional Total transaction amount.
transactionDateISODateString
optional vehicleLinxioRecord | null
optional Vehicle payload when included by Linxio.
Pagination metadata.
Show child fields Total matching record count.
Typed SDK error when records cannot be loaded.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const records = await linxio.fuel. recordsByVehicle ({
vehicleId,
limit: 100 ,
});
if (records.error) {
throw records.error;
} {
"data" : [
{
"driver" : {
"id" : "36541" ,
"email" : "driver@example.com.au" ,
"name" : "Example" ,
"surname" : "Driver" ,
"role" : {
"id" : 6 ,
"name" : "admin" ,
"displayName" : "Admin"
} ,
"phone" : "+61401000123" ,
"status" : "active" ,
"lastLoggedAt" : "2026-05-24T08:31:46+00:00" ,
"driverSensorId" : "F4CFB22527B2" ,
"driverFOBId" : "1"
} ,
"fuelCardNumber" : "string" ,
"fuelPrice" : 123 ,
"id" : 64553 ,
"petrolStation" : "string" ,
"refueled" : 123 ,
"total" : 2 ,
"transactionDate" : "2026-06-08T12:00:00+08:00" ,
"vehicle" : { }
}
] ,
"meta" : {
"limit" : 100 ,
"page" : 1 ,
"total" : 2
} ,
"error" : null
}
Input Pagination, field projection, sorting, and dashboard-derived filters.
Show child parameters fieldsFuelRecordField[]
optional Fuel transaction fields to include in the response projection.
Possible enum values
transactionDateFuel transaction timestamp.
vehicleIdsRelated vehicle identifiers.
driverIdRelated driver identifier.
totalTotal transaction amount.
fuelPriceUnit fuel price.
petrolStationPetrol station display name.
Maximum records to request per page.
Page number to request.
Default: 1
Sort expression accepted by Linxio for that endpoint.
[filter]QueryValue
optional Additional endpoint-specific filters forwarded as query parameters.
Returns Fuel card records with id, cardNumber, and vehicleId when supplied.
Show child fields vehicleIdLinxioId | null
optional Assigned vehicle identifier.
Pagination metadata.
Show child fields Total matching record count.
Typed SDK error when cards cannot be loaded.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const cards = await linxio.fuel. cards ({ limit: 100 });
if (cards.error) {
throw cards.error;
} {
"data" : [
{
"cardNumber" : "string" ,
"id" : 64553 ,
"vehicleId" : 64553
}
] ,
"meta" : {
"limit" : 100 ,
"page" : 1 ,
"total" : 2
} ,
"error" : null
}
Input fuelTypes() does not take parameters.
Returns dataLinxioRecord[] | null
optional Fuel type records. Shape can vary by tenant.
Typed SDK error when fuel types cannot be loaded.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
Input Fuel transaction record identifier.
vehicleIdLinxioId
required Vehicle identifier to assign to the transaction.
Returns Updated fuel transaction record.
Show child fields driverstring | null
optional fuelCardNumberstring | null
optional fuelPricenumber | null
optional Fuel transaction identifier.
petrolStationstring | null
optional Petrol station display name.
refuelednumber | null
optional totalnumber | null
optional Total transaction amount.
transactionDateISODateString
optional vehicleLinxioRecord | null
optional Vehicle payload when included by Linxio.
Typed SDK error when assignment fails.
Show child fields Original cause when available.
HTTP method when the error came from a request.
API path when the error came from a request.
Request identifier from X-Request-Id when supplied.
const assigned = await linxio.fuel. assignTransaction (recordId, vehicleId);
if (assigned.error) {
throw assigned.error;
} {
"data" : {
"driver" : {
"id" : "36541" ,
"email" : "driver@example.com.au" ,
"name" : "Example" ,
"surname" : "Driver" ,
"role" : {
"id" : 6 ,
"name" : "admin" ,
"displayName" : "Admin"
} ,
"phone" : "+61401000123" ,
"status" : "active" ,
"lastLoggedAt" : "2026-05-24T08:31:46+00:00" ,
"driverSensorId" : "F4CFB22527B2" ,
"driverFOBId" : "1"
} ,
"fuelCardNumber" : "string" ,
"fuelPrice" : 123 ,
"id" : 64553 ,
"petrolStation" : "string" ,
"refueled" : 123 ,
"total" : 2 ,
"transactionDate" : "2026-06-08T12:00:00+08:00" ,
"vehicle" : { }
} ,
"error" : null
}