Courier API › Trip
Rate Trip
post
https://sandbox-api.gozem.co/courier/v1/trips/{trip_id}/ratingSubmit a rating and optional comment for a completed trip.
Path parameters
stringrequired
Trip ID (TRP_xxx format or numeric ID)
Body parameters
string
Free-text feedback on the delivery
integerrequired
Score out of 5, 1 being the worst
Response 200
dataobjectrequired
The recorded rating
commentstring
Free-text feedback on the delivery
datestringrequired
Rating timestamp
ratingintegerrequired
Score out of 5, 1 being the worst
trip_idstringrequired
Unique trip identifier
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