Update a regular rate
PATCH/v1/rates/regular/:id
Update an existing regular rate by ID
Request
Path Parameters
Regular rate ID
- application/json
Body
required
- Array [
- ]
Name of the regular rate
Status of the regular rate
Possible values: [transport, delivery]
Default value: -1
distanceTier object[]
Possible values: [perKm, fixAmount]
Default value: 0
Default value: 0
priceAdjustment object
Default value: 0
Default value: 0
Default value: 0
Default value: 0
Default value: 0
Fee per Additional Stops
Default value: 0
Extra Wait Time Fee
Fee per Minute
Minimum Fee
Starting Fee
The minimum number of seats to charge for a booking
Responses
- 200
- 404
Regular rate updated successfully
- application/json
- Schema
- Example (from schema)
Schema
The ID of the regular rate
The name of the regular rate
Whether the regular rate is active
The service type of the regular rate
The calculation mode of the regular rate
The fee per stop of the regular rate
The extra wait time fee of the regular rate
priceAdjustment objectrequired
Default value: 0
The starting fee of the regular rate
The minimum fee of the regular rate
The fee per minute of the regular rate
The fee per distance of the regular rate
The speed threshold of the regular rate
The fare mode of the regular rate
The distance tier of the regular rate
The start date of the regular rate
The end date of the regular rate
The start time of the regular rate
The end time of the regular rate
The currency ISO of the regular rate
The currency symbol of the regular rate
Whether the fee per seat is active
applyGeniusDiscount objectrequired
Default value: 5
The minimum seat of the regular rate
The drop off zone IDs of the regular rate
The created date of the regular rate
The latest update date of the regular rate
{
"_id": "672d07188234567890123456",
"rateName": "Standard Regular Rate",
"isActive": true,
"serviceType": "Standard Service",
"calculationMode": 1,
"feePerStop": 10,
"extraWaitTimeFee": 10,
"priceAdjustment": {
"isActive": false,
"minimumPercent": 0,
"maximumPercent": 0,
"value": 0
},
"startingFee": 10,
"minimumFee": 10,
"feePerMinute": 10,
"feePerDistance": 10,
"speedThreshold": 10,
"fareMode": "timeAndMileage",
"distanceTier": [
{
"fareType": "perKm",
"rangeStart": 0,
"rangeEnd": 1000,
"fee": 10
}
],
"startDate": "2025-01-01",
"endDate": "2025-01-01",
"startTime": "00:00",
"endTime": "23:59",
"currencyISO": "USD",
"currencySymbol": "$",
"isFeePerSeatActive": true,
"applyGeniusDiscount": {
"enable": false,
"value": 5
},
"minSeat": 1,
"dropOffZoneIds": [
"672d07188234567890123456"
],
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Regular rate not found