Colombia time
All time calculations use Colombia Standard Time (COT), UTC−5, implemented as
America/Bogota. The API never uses the server’s local clock timezone — it always converts to Colombia time via Intl.DateTimeFormat before evaluating any time-based rules.| Field | Format | Description |
|---|---|---|
hora_consulta | HH:MM | Time of the request in Colombia time |
fecha_consulta | YYYY-MM-DD | Date of the request in Colombia time |
Nighttime hours
The night fare applies from 7:00 p.m. (19:00) to 5:59 a.m. The daytime rate applies from 6:00 a.m. to 6:59 p.m. These boundaries come fromtarifas.json:
isNocturno function converts both the current time and the boundary times to total minutes, then checks:
|| (OR): a time is nocturnal if it is at or after 19:00 or at or before 05:59.
Special holiday surcharge
A surcharge of +$600 COP (RECARGO_ESPECIAL) is added to the base fare on the following dates:
| Period | Dates |
|---|---|
| Jueves Santo (Holy Thursday) | Calculated dynamically each year |
| Viernes Santo (Holy Friday) | Calculated dynamically each year |
| December end-of-year period | December 16 through December 31 |
The surcharge is not cumulative. It is applied at most once per fare calculation, regardless of how many surcharge conditions might theoretically overlap. The
recargos array in the response will contain at most one entry: "Recargo especial: +$600".Holy Week date calculation
Jueves Santo and Viernes Santo are calculated dynamically for each year using Butcher’s algorithm — an integer arithmetic method for computing the date of Easter Sunday. Holy Thursday is Easter minus 3 days; Holy Friday is Easter minus 2 days. The dates are never hardcoded, so the surcharge window shifts correctly every year without any configuration changes.Surcharge in responses
When the surcharge applies, it appears in therecargos array:
recargos is an empty array: