Create a new surcharge item by policy ID
POST/v1/rates/surcharge-policies/:id/items
Create a new surcharge item by policy ID
Request
Path Parameters
Surcharge policy 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[]required
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}$
Applicable operation zone IDs: Get operation zones
Whether the booking lead time is active
bookingLeadTimes object[]required
Default value: 0
Default value: 0
Default value: 0
Possible values: [amount, percent]
Responses
- 201
- 400
- 500
Surcharge item created successfully
Invalid input data
Internal server error