List All Balances
Retrieve a paginated list of fuel station balances.Query Parameters
Page number for pagination
Number of records per page (max 100)
Filter by operational area name (partial match, case-insensitive)
Filter by fuel station name (partial match, case-insensitive)
Filter by status:
ACTIVADA or DESACTIVADA (default: ACTIVADA only)Field to sort by:
saldo_disponible, nombre_bomba, nombre_area_operacionSort direction:
asc or descResponse
Array of fuel station balance records
Pagination metadata
Example Request
Example Response
Common Use Cases
Find Low Balance Stations
Identify fuel stations with low balances that need replenishment:Filter by Operational Area
View balances for a specific operational area:View All Stations (Including Inactive)
By default, only ACTIVADA stations are shown. To see all:Check Specific Station
Find a specific fuel station by name:Get Filter Options
Retrieve unique values for filter dropdowns.Response
List of unique operational area names
List of unique fuel station names
List of status values (ACTIVADA, DESACTIVADA)
Example Request
Example Response
Filter options are cached for 5 minutes to improve performance. The cache respects Row Level Security (RLS) policies.
Important Notes
Default Behavior: By default, only stations with
actividad = 'ACTIVADA' are returned. Pass an empty actividad parameter to see all stations.Row Level Security: All queries respect RLS policies. Users only see data they have permission to access based on their assigned operational areas.
Performance: Use the
limit parameter to control result set size. Smaller page sizes improve response times.Error Responses
Invalid Sort Field
Unauthorized
Server Error
Integration Example
JavaScript Fetch
Related Endpoints
Fuel Tracking
Track fuel consumption and refills
Catalogs
Access catalog data for fuel stations