v1

latestSwagger 2.02026-08-04283399898.4 KB
bookingServices

Updates an existing premium service on this booking using the service id.

patch/bookings/{booking_id}/services/{service_id}

Path parameters

booking_idinteger required
service_idinteger required

Request body

bundle_idstring
{"stackTrail":"components:schemas:DBInterfaceMap","oasType":"schema","type":"unknown","description":"DBInterfaceMap is a map[string]interface{} with database conversion methods","extensionFields":{"x-go-package":"github.com/outdoorsy/api/utils"}}
idstring
revisioninteger

Response

HTTP status code 200 and booking service

booking_idinteger
bundle_idstring nullable
categorystring
charge_tostring
createdstring
dailyboolean
dealer_flat_splitinteger
dealer_percent_splitnumber double
dealer_split_typestring
descriptionstring
discount_amountinteger
external_reference_idstring
fee_lockedboolean
idinteger
is_taxableboolean

IsTaxable determines whether this service is taxable. This is defaulted to the service's IsTaxable field on BookingService create

{"stackTrail":"components:schemas:BookingService:properties:last_service_log","oasType":"schema","type":"unknown","extensionFields":{"x-go-name":"LastServiceLog"}}
lock_on_booking_statusstring
minimum_priceinteger
missing_fieldsobject
namestring
payable_tostring
percentnumber double
percent_typestring
policy_start_datestring
premium_amountinteger

PremiumAmount is the daily rate

premium_totalinteger

PremiumTotal is what we pay to the dealer

prevent_deleteboolean
priceinteger
quantityinteger
requiredboolean
revisioninteger
{"stackTrail":"components:schemas:DBInterfaceMap","oasType":"schema","type":"unknown","description":"DBInterfaceMap is a map[string]interface{} with database conversion methods","extensionFields":{"x-go-package":"github.com/outdoorsy/api/utils"}}
{"stackTrail":"components:schemas:DBInterfaceMap","oasType":"schema","type":"unknown","description":"DBInterfaceMap is a map[string]interface{} with database conversion methods","extensionFields":{"x-go-package":"github.com/outdoorsy/api/utils"}}
service_idinteger
tax_amountinteger
totalinteger

Total is the full amount of what the renter pays (total + premium total) - does not include taxes

updatedstring
variant_priceinteger

Calculated price considering pricing variant