Update a hourly rate
PATCH/v1/rates/hourly/:id
Update an existing hourly rate by ID
Request
Path Parameters
Hourly rate ID
- application/json
Body
required
Name of the hourly rate
Default value: true
Default value: 0
Default value: 0
Default value: 0
priceAdjustment object
Default value: 0
Responses
- 200
- 400
- 404
- 500
Hourly rate updated successfully
- application/json
- Schema
- Example (from schema)
Schema
The ID of the hourly rate
The name of the hourly rate
Whether the hourly rate is active
The calculation mode of the hourly rate
The fee per stop of the hourly rate
priceAdjustment objectrequired
Default value: 0
The start date of the hourly rate
The end date of the hourly rate
The start time of the hourly rate
The end time of the hourly rate
The currency ISO of the hourly rate
The currency symbol of the hourly rate
Whether the fee per seat is active
applyGeniusDiscount objectrequired
Default value: 5
The minimum seat of the hourly rate
The drop off zone IDs of the hourly rate
The latest update date of the hourly rate
{
"_id": "672d07188234567890123456",
"rateName": "Standard Hourly Rate",
"isActive": true,
"calculationMode": 1,
"feePerStop": 10,
"priceAdjustment": {
"isActive": false,
"minimumPercent": 0,
"maximumPercent": 0,
"value": 0
},
"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"
],
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Invalid input data
Hourly rate not found
Internal server error