Get Vehicle Plates
HTTP Request
Authentication
This endpoint requires authentication via Bearer token.Headers
Bearer token for authentication
Response
Unique identifier for the vehicle
Vehicle license plate number
Example Response
Get Fuel Pumps
HTTP Request
Authentication
This endpoint requires authentication via Bearer token.Headers
Bearer token for authentication
Response
Unique identifier for the pump
Pump identifier/name
Example Response
Implementation Details
- Data is fetched from the
areas_bombastable - Only pumps with
estado = 'ACTIVADA'are returned - Results are ordered by
bombafield
Get Pump Balance
HTTP Request
Authentication
This endpoint requires authentication via Bearer token.Headers
Bearer token for authentication
Query Parameters
ID of the pump to query
Date in YYYY-MM-DD format to check balance for
Response
Available balance for the pump. Returns 0 if no records found.
Example Response
Error Response
Implementation Details
- Queries the
tanqueo_relacionestable for the most recent balance - Finds the last record where
bomba_idmatches andfecha <= provided date - Returns the
saldo_disponiblefrom that record - If no records are found, returns
saldo: 0 - Results are ordered by date descending to get the most recent balance