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

Get the receipt of the rides.

GET
/rides/{id}/receipt
User
Get the receipt information of a processed ride by providing the ride id. Receipts will only be available to view once the payment has been processed. In the case of canceled ride, cancellation penalty is included if applicable.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.lyft.com/v1/rides//receipt'
Response Response Example
200 - Example 1
{
  "charges": [
    {
      "amount": 500,
      "currency": "USD",
      "payment_method": "Card"
    },
    {
      "amount": 405,
      "currency": "USD",
      "payment_method": "Lyft Credit"
    }
  ],
  "line_items": [
    {
      "amount": 500,
      "currency": "USD",
      "type": "Ride"
    },
    {
      "amount": 250,
      "currency": "USD",
      "type": "Prime Time"
    },
    {
      "amount": 155,
      "currency": "USD",
      "type": "Service fee"
    }
  ],
  "price": {
    "amount": 905,
    "currency": "USD",
    "description": "Total ride price"
  },
  "requested_at": "2023-08-15T05:38:32.976Z",
  "ride_id": 123456789,
  "ride_profile": "personal"
}

Request

Path Params
id
string 
required
The ID of the ride

Responses

🟢200Detailed ride receipt information including cancel penalty if applicable.
application/json
Body
Receipt information of a processed ride.
charges
array[object (Charge) {3}] 
optional
The break down of charge method
amount
integer <int32>
required
The line item amount
currency
string 
required
The currency for the amount
payment_method
string 
required
The payment method display name.
line_items
array[object (LineItem) {3}] 
optional
The break down of line items
amount
integer <int32>
required
The line item amount
currency
string 
required
The currency for the amount
type
string 
required
The line item display name for a charge item
price
object  | allOf {1} 
optional
The total price for the current ride
#/components/schemas/Cost
optional
Could not resolve '#/components/schemas/Cost'
requested_at
string <date-time>
optional
The ride requested timestamp in date and time
ride_id
string 
optional
The unique ID of this ride
ride_profile
object  | allOf {1} 
optional
Indicates whether the ride was requested from the business profile or personal profile of the user.
#/components/schemas/RideProfileEnum
optional
Could not resolve '#/components/schemas/RideProfileEnum'
🟠403User or client does not have permission to complete this request
🟠404No ride receipt found with provided ride ID
Modified at 2023-08-15 05:38:33
Previous
Add the passenger's rating, feedback, and tip
Next
Preset Prime Time percentage
Built with