Endpoint
tanqueo_relaciones view, which includes joined relation names.
Authentication
Requires JWT authentication token in the Authorization header.Query Parameters
Pagination
Page number (1-based indexing)
Number of records per page (max recommended: 100)
Filters
Filter by driver name (partial match, case-insensitive). Example:
Juan matches “Juan Pérez”Filter by vehicle plate (partial match, case-insensitive). Example:
ABC matches “ABC-123”Filter by fuel station name (partial match, case-insensitive)
Filter by operational area name (partial match, case-insensitive)
Filter by fuel type (exact match). Valid values:
ACPM- DieselGASOLINA- GasolineEXTRA- Premium gasoline
Filter by concept (exact match). Valid values:
OPERATIVO- Operational useADMINISTRATIVO- Administrative use
Filter by operation type (exact match). Valid values:
TANQUEO- Fuel refillANTICIPO- Advance payment
Filter records from this date onwards (inclusive). Format:
YYYY-MM-DDFilter records up to this date (inclusive). Format:
YYYY-MM-DDSorting
Field to sort by. Common values:
fecha, conductor, placa, valor_tanqueo, cantidad_galonesSort order:
asc- Ascendingdesc- Descending
fecha (most recent first)Response
Array of fuel records with joined relation names
Unique fuel record identifier
Index number from the database view
Date of the fuel transaction (YYYY-MM-DD)
Driver’s unique identifier
Driver’s full name
Vehicle plate’s unique identifier
Vehicle license plate
Fuel station’s unique identifier
Fuel station name
Operational area’s unique identifier
Operational area name
Fuel type: ACPM, GASOLINA, or EXTRA
Total fuel cost in COP (Colombian Pesos)
Quantity of fuel in gallons
Cost per gallon (calculated: valor_tanqueo / cantidad_galones)
Hourmeter reading at time of refueling
Advance payment amount (only for ANTICIPO type)
Available balance at fuel station after transaction
Concept: OPERATIVO or ADMINISTRATIVO
Operation type: TANQUEO or ANTICIPO
Additional observations or notes
Examples
List First Page (Default)
Filter by Date Range
Filter by Driver and Fuel Type
Paginate with Custom Page Size
Sort by Amount (Descending)
Complex Filter Example
Response Example
Notes
- The endpoint queries the
tanqueo_relacionesdatabase view which automatically joins related tables to provide human-readable names - Summary totals are calculated across ALL records matching the filters, not just the current page
- Default sorting is by
fechadescending (most recent first) and then byiddescending - Partial string matches (conductor, placa, bomba, area_operacion) are case-insensitive and use PostgreSQL’s ILIKE
- The
costo_por_galonfield is automatically calculated asvalor_tanqueo / cantidad_galoneswhen creating records - Records with
tipo_operacion = 'ANTICIPO'will have null values for vehicle and driver fields
Get Filter Options
To get available values for filters, use the Filter Options endpoint:Related Endpoints
- Get Export Data - Export all matching records without pagination
- Get Financial Report - Financial view of fuel records
- Get Specific Record - Retrieve a single record by ID