---
# System prepended metadata

title: Offer model - Rides ER changes

---

# Offer model - Rides ER changes

#### Ride details
> v2/internal/er/rides/{hashed_id}

* new attribute `is_offer_model` type `boolean` added

#### Ride Update
>v2/internal/er/rides/{hashed_id}/update
* if `is_offer_model` is `true` then fare adjustment will be based on `amount` type: `integer` - which is expected as request params.

* if `is_offer_model` is `false` then fare adjustment will be based on `distance` and `duration` as previous implementation.

#### Fare breakdown on ride details - for offer_model enabled rides
* API contract will remain same

* `fare_for_duration`, `fare_for_distance`, `insurance_fee`, `pickup_fee` will be `0`

* updated fare breakdown will be based on `reported_fare`


