deleteTrip API Endpoint
Use the deleteTrip
API endpoint to delete a trip and its associated data. This means ignoring existing trip data, all future API responses, and driver score computations. Once deleted, a trip has no impact on the driver’s scores anymore.
A trip must already exist in the Zendrive system for it to be successfully deleted. If a trip and its data are not yet uploaded to the server, it cannot be deleted.
This API endpoint typically should be called after the existence of a trip is verified by a GET call or after a Webhook callback has been invoked.
Refer to Zendrive Server APIs to understand how Zendrive server APIs are organized.
Delete Trip
GET
-X DELETE https://api.zendrive.com/v4/driver/{driver_id}/trip/{trip_id} -H
Ignore a specified trip and all its data.
Query Parameters
driver_id
String
A unique ID associated with the driver
trip_id
String
A unique ID associated with the trip
Headers
Authorization*
String
API KEY <APIKEY>
{
"success": true
}
//In case of failure
{
"error": "trip_id 1426131047984 is not valid"
}
Was this helpful?