linxio-js
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.

fuel.records()

GET

List fuel transactions

/fuel-cards/jsonlinxio.fuel.records(params)

Loads one page of fuel transaction records.

Input

object
optional
Object parameter. Expand to see child parameters.
Show child parameters
number
optional
Number of records to request.
number
optional
Page number to request.
Default: 1
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

QueryValue
optional
Additional fuel report filters forwarded as query parameters.

Returns

optional
Fuel transaction records for the requested page.
Show child fields
string | null
optional
Driver display name.
string | null
optional
Fuel card number.
number | null
optional
Fuel price.
LinxioId
required
Fuel transaction identifier.
string | null
optional
Petrol station display name.
number | null
optional
Fuel volume.
number | null
optional
Total transaction amount.
ISODateString
optional
Transaction timestamp.
LinxioRecord | null
optional
Vehicle payload when included by Linxio.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when records cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.iterateRecords()

GET

Load all fuel transactions

/fuel-cards/jsonlinxio.fuel.iterateRecords(params)

Auto-paginates fuel transaction records into one result object.

Input

optional
Same filters and field projection as fuel.records().
Show child parameters
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.

Returns

optional
Flat array containing every loaded fuel record.
Show child fields
string | null
optional
Driver display name.
string | null
optional
Fuel card number.
number | null
optional
Fuel price.
LinxioId
required
Fuel transaction identifier.
string | null
optional
Petrol station display name.
number | null
optional
Fuel volume.
number | null
optional
Total transaction amount.
ISODateString
optional
Transaction timestamp.
LinxioRecord | null
optional
Vehicle payload when included by Linxio.
optional
Typed SDK error if any page fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.streamRecords()

GET

Stream fuel transactions

/fuel-cards/jsonlinxio.fuel.streamRecords(params)

Streams fuel records lazily across pages.

Input

optional
Same filters and field projection as fuel.records().
Show child parameters
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.

Returns

optional
One fuel record at a time.
Show child fields
string | null
optional
Driver display name.
string | null
optional
Fuel card number.
number | null
optional
Fuel price.
LinxioId
required
Fuel transaction identifier.
string | null
optional
Petrol station display name.
number | null
optional
Fuel volume.
number | null
optional
Total transaction amount.
ISODateString
optional
Transaction timestamp.
LinxioRecord | null
optional
Vehicle payload when included by Linxio.
optional
Thrown if a page request fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.summary()

GET

List fuel summary rows

/fuel-summary-reportlinxio.fuel.summary(params)

Loads one page of fuel summary report rows.

Input

optional
Pagination, field projection, and report filters such as date range or vehicle filters when supported.
Show child parameters
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.

Returns

optional
Summary rows with depot, groups, mileage, refueled, regNo, and total when supplied.
Show child fields
string | null
optional
Depot label.
string | null
optional
Vehicle groups label.
number | null
optional
Mileage in the summary period.
number | null
optional
Fuel volume in the summary period.
string | null
optional
Vehicle registration number.
number | null
optional
Total fuel cost in the summary period.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when summary rows cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.recordsByVehicle()

GET

List fuel records by vehicle

/fuel-cards-by-vehicle/jsonlinxio.fuel.recordsByVehicle(params)

Loads fuel transaction rows grouped or filtered by vehicle.

Input

optional
Pagination, field projection, and vehicle/date filters accepted by Linxio.
Show child parameters
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.

Returns

optional
Fuel records from the by-vehicle endpoint.
Show child fields
string | null
optional
Driver display name.
string | null
optional
Fuel card number.
number | null
optional
Fuel price.
LinxioId
required
Fuel transaction identifier.
string | null
optional
Petrol station display name.
number | null
optional
Fuel volume.
number | null
optional
Total transaction amount.
ISODateString
optional
Transaction timestamp.
LinxioRecord | null
optional
Vehicle payload when included by Linxio.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when records cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.cards()

GET

List fuel cards

/fuel-cards/jsonlinxio.fuel.cards(params)

Lists fuel card records. This endpoint shares the dashboard path used by fuel transaction records, so returned columns can depend on tenant setup.

Input

optional
Pagination, field projection, sorting, and dashboard-derived filters.
Show child parameters
FuelRecordField[]
optional
Fuel transaction fields to include in the response projection.
Possible enum values
transactionDate

Fuel transaction timestamp.

vehicleIds

Related vehicle identifiers.

driverId

Related driver identifier.

refueled

Fuel volume.

total

Total transaction amount.

fuelPrice

Unit fuel price.

petrolStation

Petrol station display name.

number
optional
Maximum records to request per page.
number
optional
Page number to request.
Default: 1
string
optional
Sort expression accepted by Linxio for that endpoint.
QueryValue
optional
Additional endpoint-specific filters forwarded as query parameters.

Returns

optional
Fuel card records with id, cardNumber, and vehicleId when supplied.
Show child fields
string
optional
Fuel card number.
LinxioId
required
Fuel card identifier.
LinxioId | null
optional
Assigned vehicle identifier.
optional
Pagination metadata.
Show child fields
number
required
Page size.
number
required
Current page number.
number
required
Total matching record count.
optional
Typed SDK error when cards cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.fuelTypes()

GET

List fuel types

/fuel-typeslinxio.fuel.fuelTypes()

Lists fuel types configured by Linxio.

Input

void
optional
fuelTypes() does not take parameters.

Returns

LinxioRecord[] | null
optional
Fuel type records. Shape can vary by tenant.
optional
Typed SDK error when fuel types cannot be loaded.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

fuel.assignTransaction()

PATCH

Assign fuel transaction to vehicle

/fuel-cards/record/{recordId}linxio.fuel.assignTransaction(recordId, vehicleId)

Assigns a fuel transaction record to a vehicle.

Input

LinxioId
required
Fuel transaction record identifier.
LinxioId
required
Vehicle identifier to assign to the transaction.

Returns

optional
Updated fuel transaction record.
Show child fields
string | null
optional
Driver display name.
string | null
optional
Fuel card number.
number | null
optional
Fuel price.
LinxioId
required
Fuel transaction identifier.
string | null
optional
Petrol station display name.
number | null
optional
Fuel volume.
number | null
optional
Total transaction amount.
ISODateString
optional
Transaction timestamp.
LinxioRecord | null
optional
Vehicle payload when included by Linxio.
optional
Typed SDK error when assignment fails.
Show child fields
string
required
Safe error message.
string
required
SDK error class name.
unknown
optional
Original cause when available.
string
optional
HTTP method when the error came from a request.
string
optional
API path when the error came from a request.
string
optional
Request identifier from X-Request-Id when supplied.

On this page