AV 8598 then JA 5642 at Bogotá
Pasto → Bogota → Cucuta
Timetable, Bogota time
15:20AV 8598 from Pasto at the gate
15:05JA 5642 to Cucuta leaves the gate
23 h 45 apart on the timetable, overnight
JA 5642 leaves 23 h 45 after AV 8598 arrives on the timetable: more than half a day, so not a connection we count.