Lyft
  1. User
Lyft
  • Public
    • Cost estimates
      GET
    • Available drivers nearby
      GET
    • Pickup ETAs
      GET
    • Types of rides
      GET
  • User
    • The user's general info
      GET
    • List rides
      GET
    • Request a Lyft
      POST
    • Get the ride detail of a given ride ID
      GET
    • Cancel a ongoing requested ride
      POST
    • Update the destination of the ride
      PUT
    • Add the passenger's rating, feedback, and tip
      PUT
    • Get the receipt of the rides.
      GET
  • Sandbox
    • Preset Prime Time percentage
      PUT
    • Propagate ride through ride status
      PUT
    • Preset types of rides for sandbox
      PUT
    • Driver availability for processing ride request
      PUT
  1. User

Add the passenger's rating, feedback, and tip

PUT
/rides/{id}/rating
User
Add the passenger's 1 to 5 star rating of the ride, optional written feedback, and optional tip amount in minor units and currency. The ride must already be dropped off, and ratings must be given within 24 hours of drop off. For purposes of display, 5 is considered the default rating. When this endpoint is successfully called, payment processing will begin.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/v1/rides//rating' \
--header 'Content-Type: application/json' \
--data-raw '{
    "feedback": "Great ride!",
    "rating": 5,
    "tip": {
        "amount": 100,
        "currency": "USD"
    }
}'
Response Response Example
204 - Example 1
{}

Request

Path Params
id
string 
required
The ID of the ride
Body Params application/json
Rating and optional feedback and tip
feedback
string 
optional
The passenger's written feedback about this ride
rating
integer <int32>
required
The passenger's rating of this ride from 1 to 5
>= 1<= 5
tip
object  | allOf {1} 
optional
Tip amount in minor units and tip currency
#/components/schemas/TipParams
optional
Could not resolve '#/components/schemas/TipParams'
Examples

Responses

🟢204Successfully added the rating
application/json
Body
object {0}
🟠400The 'error' field will be one of the following: * `bad_parameter`: A validation error occurred * `user_cannot_rate_this_ride`: Rides can only be rated once, within 24 hours of drop-off, and before the user starts another ride * `tip_too_large`: tip am
🟠409The 'error' field will be: * `ride_not_finished`: Ride is still in progress (not yet in the droppedOff status)
Modified at 2023-08-15 05:38:33
Previous
Update the destination of the ride
Next
Get the receipt of the rides.
Built with