Courier API › Trip
Get Trips Stats
get
https://sandbox-api.gozem.co/courier/v1/trips/statsGet summary stats about completed trips, distance, and earnings.
Query parameters
string
Start date
string
End date
Response 200
dataobjectrequired
Trip totals over the requested period
end_datestringrequired
End date
start_datestringrequired
Start date
statsobjectrequired
Totals across every trip in the period
canceled_tripsnumberrequired
Total number of canceled trips
completed_tripsnumberrequired
Total number of completed trips
total_distance_kmnumberrequired
Total distance in kilometers
total_duration_minutesnumberrequired
Total duration in minutes
total_farenumberrequired
Total fare
total_tripsnumberrequired
Total number of trips
messagestringrequired
Human-readable outcome. Defaults to `Ok`.
successbooleanrequired
Always `true` on a success response.
Errors
Every failure returns the same envelope. Branch on code — it is the stable contract; message is human-facing and may be reworded or localized. See the error reference for what each code means.
400401403404405409413415429500502