Delete a package from a hourly rate
DELETE/v1/rates/hourly/:id/packages/:packageId
Delete a package from a hourly rate by ID
Request
Path Parameters
id stringrequired
Hourly rate ID
packageId stringrequired
Package ID
Responses
- 200
- 400
- 404
- 500
Package deleted from hourly rate successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the package
name stringrequired
The name of the package
duration numberrequired
The duration of the package
type stringrequired
The type of the package
basedFee numberrequired
The based fee of the package
feePerExtraDuration numberrequired
The fee per extra duration of the package
feePerExtraDistance numberrequired
The fee per extra distance of the package
extraDurationType stringrequired
The extra duration type of the package
coveredDistance numberrequired
The covered distance of the package
{
"_id": "Package 1",
"name": "Package 1",
"duration": 1,
"type": "hour",
"basedFee": 1,
"feePerExtraDuration": 1,
"feePerExtraDistance": 1,
"extraDurationType": "minute",
"coveredDistance": 1
}
Invalid input data
Hourly rate or package not found
Internal server error
Loading...