Update a surcharge item by policy ID and item ID
PATCH/v1/rates/surcharge-policies/:id/items/:itemId
Update an existing surcharge item by policy ID and item ID
Request
Path Parameters
Surcharge policy ID
Surcharge item ID
- application/json
Body
required
- Array [
- ]
- Array [
- ]
The name of the surcharge item
Possible values: [Now, Reservation]
The start date of the surcharge item
The end date of the surcharge item
The start time of the surcharge item
The end time of the surcharge item
Possible values: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
The days of the week of the surcharge item
Possible values: [weekly, yearly, single]
Default value: weekly
The repeat type of the surcharge item
Default value: 0
The booking time coverage of the surcharge item
Default value: 0
The surcharge fee of the surcharge item
Possible values: [amount, percent]
Default value: amount
The surcharge type of the surcharge item
Whether the tier is active
distanceTier object[]
Default value: 0
The start range of the distance tier
Default value: 0
The end range of the distance tier
Default value: 0
The fee of the distance tier
Possible values: [amount, percent]
Default value: amount
The fare type of the distance tier
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Operation zone IDs: Get operation zones
Whether the booking lead time is active
bookingLeadTimes object[]
Default value: 0
Default value: 0
Default value: 0
Possible values: [amount, percent]
Responses
- 200
Surcharge item updated successfully