Delete a flat rate
DELETE/v1/rates/flat/:id
Remove a flat zone from the system
Request
Path Parameters
id stringrequired
Flat rate ID
Responses
- 200
- 400
- 404
- 500
Flat rate deleted successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the flat rate
rateName stringrequired
The name of the flat rate
isActive booleanrequired
Whether the flat rate is active
extraWaitTimeFee numberrequired
The extra wait time fee of the flat rate
calculationMode numberrequired
The calculation mode of the flat rate
feePerStop numberrequired
The fee per stop of the flat rate
priceAdjustment objectrequired
isActive boolean
minimumPercent number
maximumPercent number
value number
Default value: 0
serviceType stringrequired
The service type of the flat rate
startDate stringrequired
The start date of the flat rate
endDate stringrequired
The end date of the flat rate
startTime stringrequired
The start time of the flat rate
endTime stringrequired
The end time of the flat rate
currencyISO stringrequired
The currency ISO of the flat rate
currencySymbol stringrequired
The currency symbol of the flat rate
isFeePerSeatActive booleanrequired
Whether the fee per seat is active
applyGeniusDiscount objectrequired
enable boolean
value number
Default value: 5
minSeat numberrequired
The minimum seat of the flat rate
createdDate date-timerequired
The created date of the flat rate
latestUpdate date-timerequired
The latest update date of the flat rate
{
"_id": "672d07188234567890123456",
"rateName": "Standard Flat Rate",
"isActive": true,
"extraWaitTimeFee": 10,
"calculationMode": 1,
"feePerStop": 10,
"priceAdjustment": {
"isActive": false,
"minimumPercent": 0,
"maximumPercent": 0,
"value": 0
},
"serviceType": "transport",
"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,
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Invalid input data
Flat rate not found
Internal server error
Loading...