Update an addon service
PATCH/v1/addons/services/:id
Update an existing addon service by ID
Request
Path Parameters
Addon service ID
- application/json
Body
required
Display name of the service
Detailed description for customers
Possible values: [customer, driver, fleet]
Who is being charged/reimbursed
Whether this service is mandatory (customer add-ons only)
Link to global attribute for OTA mapping
feeConfig object
Possible values: [amount, percentageSubtotal, percentageTotal, custom]
How the fee is calculated
Default value: 0
Fee value (amount, percentage, or max limit for custom)
Currency ISO code for amount-based fees
Possible values: [eachTime, each, perPerson, perDay, none]
Default value: none
Unit pricing model for amount-based fees
Default value: 1
Maximum quantity for "each" unit type
For custom type: allow unlimited driver input
Possible values: [percentage, amount]
Fleet commission type: percentage of addon fee or fixed amount
Default value: 0
Fleet commission value (percentage 0-100 or fixed amount)
Whether this add-on service will be included in tax calculation
Default value: true
List as separate line item in fare breakdown (false = grouped under additional services)
applicationRules object
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable vehicle type IDs (empty = all): Get vehicle types
Possible values: [pointToPoint, fromAirport, toAirport, hourly]
Applicable booking types (empty = all)
tripContext object
Trip context rules
Apply when pickup is in a meeting zone (e.g., airport)
Apply when drop-off is in a meeting zone (e.g., airport)
zones object
Zone-based rules
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable meeting zone IDs (empty = all): Get meeting zones
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable operation zone IDs (empty = all): Get operation zones
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable restricted zone IDs: Get restricted zones
Possible values: [PWA, passenger, API, CC, partner, Car-hailing, streetSharing]
Default value: ``
Applicable booking channels indicating where booking was created from (empty = all)
Enable drivers to input custom notes and upload receipts for this addon service. When enabled, drivers can provide additional information or documentation related to the service.
Indicates whether this addon service represents a driver capability or skill requirement. When true, the service is associated with driver qualifications rather than a physical addon.
Indicates whether this addon service represents a vehicle attribute or feature. When true, the service is associated with vehicle characteristics rather than a separate addon item.
Responses
- 200
- 404
Addon service updated successfully
- application/json
- Schema
- Example (from schema)
Schema
The ID of the addon service
The fleet ID
The template ID
Display name of the service
Detailed description for customers
Who is being charged/reimbursed
Whether this service is mandatory
Link to global attribute for OTA mapping
feeConfig objectrequired
Possible values: [amount, percentageSubtotal, percentageTotal, custom]
How the fee is calculated
Default value: 0
Fee value (amount, percentage, or max limit for custom)
Currency ISO code for amount-based fees
Possible values: [eachTime, each, perPerson, perDay, none]
Default value: none
Unit pricing model for amount-based fees
Default value: 1
Maximum quantity for "each" unit type
For custom type: allow unlimited driver input
Possible values: [percentage, amount]
Fleet commission type: percentage of addon fee or fixed amount
Default value: 0
Fleet commission value (percentage 0-100 or fixed amount)
Whether this add-on service will be included in tax calculation
Default value: true
List as separate line item in fare breakdown (false = grouped under additional services)
applicationRules object
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable vehicle type IDs (empty = all): Get vehicle types
Possible values: [pointToPoint, fromAirport, toAirport, hourly]
Applicable booking types (empty = all)
tripContext object
Trip context rules
Apply when pickup is in a meeting zone (e.g., airport)
Apply when drop-off is in a meeting zone (e.g., airport)
zones object
Zone-based rules
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable meeting zone IDs (empty = all): Get meeting zones
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable operation zone IDs (empty = all): Get operation zones
Possible values: Value must match regular expression ^[0-9a-f]{24}$
Applicable restricted zone IDs: Get restricted zones
Possible values: [PWA, passenger, API, CC, partner, Car-hailing, streetSharing]
Default value: ``
Applicable booking channels indicating where booking was created from (empty = all)
Enable drivers to input custom notes and upload receipts for this addon service. When enabled, drivers can provide additional information or documentation related to the service.
Indicates whether this addon service represents a driver capability or skill requirement. When true, the service is associated with driver qualifications rather than a physical addon.
Indicates whether this addon service represents a vehicle attribute or feature. When true, the service is associated with vehicle characteristics rather than a separate addon item.
Creation date
Last update date
{
"_id": "672d07188234567890123456",
"fleetId": "FLEET001",
"templateId": "672d07188234567890123456",
"name": "Child Seat",
"description": "Forward-facing child safety seat for ages 2-4",
"userType": "customer",
"isRequired": false,
"globalAttributeId": "672d07188234567890123456",
"feeConfig": {
"type": "amount",
"value": 10,
"currency": "USD",
"unit": "each",
"maxQuantity": 3,
"isUnlimited": false,
"commissionType": "percentage",
"commissionValue": 10,
"isApplyTax": false,
"isItemize": true
},
"applicationRules": {
"carTypes": [
"55adc581e4b0599696687273",
"55adc581e4b0599696687274"
],
"serviceTypes": [
"pointToPoint",
"fromAirport"
],
"tripContext": {
"departure": true,
"arrival": false
},
"zones": {
"meetingZones": [
"695b645bbcf86cd799439013",
"695b645bbcf86cd799439014"
],
"operationZones": [
"695b6492bcf86cd799412345",
"695b6492bcf86cd799412346"
],
"restrictedZones": [
"695b6507bcf8612399412345",
"695b6507bcf8612399412346"
]
},
"bookingChannels": [
"API",
"passenger"
]
},
"allowNoteInput": false,
"isDriverCapability": false,
"isVehicleAttribute": false,
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Addon service not found