...
During trip creation, client application will give the trip attributes as well as the array of drop points (with a proper sequence - A to B to C to D )
FT will first create trip A to B
Client application sends an alert to FT saying that the truck has exited drop point B
FT will close A to B and start B to C
Similarly, for the last trip/leg, C to D, client application will send an alert to close the trip
Link to API Tech Documents to check API interfaces and schemas
Add Trip Itinerary
Client application calls this API to add a trip itinerary.
...