Service Rates
The Service Rate object
idstringoptionalPublic service rate identifier.
order_configstringoptionalOrder configuration associated with the rate.
service_areaobjectoptionalService area associated with the rate.
zoneobjectoptionalZone associated with the rate.
service_namestringoptionalService rate display name.
service_typestringoptionalService type this rate applies to.
base_feecurrencyoptionalBase fee applied to the rate.
rate_calculation_methodstringoptionalMethod used to calculate the rate.
rate_feesarray of objectsoptionalDistance or tiered fees.
parcel_feesarray of objectsoptionalParcel-based fees.
algorithmstringoptionalComputable algorithm for algorithmic rates.
currencycurrencyoptionalThree-letter currency code.
duration_termsstringoptionalHuman-readable delivery duration terms.
estimated_daysintegeroptionalEstimated service duration in days.
updated_attimestampoptionalTimestamp when the service rate was last updated.
created_attimestampoptionalTimestamp when the service rate was created.
{
"id": "service_rate_8Qw2YxM3Nf",
"order_config": "order_config_transport",
"service_area": null,
"zone": null,
"service_name": "Standard Delivery",
"service_type": "delivery",
"base_fee": 500,
"rate_calculation_method": "fixed_rate",
"rate_fees": [],
"parcel_fees": [],
"currency": "USD",
"duration_terms": "1-2 days",
"estimated_days": 2,
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/service-ratesCreate a Service Rate
Create a Service Rate.
service_namestringrequiredDisplay name for the service rate.
service_typestringrequiredService type this rate applies to.
service_areastringoptionalService area ID this rate applies to.
zonestringoptionalZone ID this rate applies to.
rate_calculation_methodenumrequiredMethod used to calculate the rate. One of fixed_meter, fixed_rate, per_meter, per_drop, algo, parcel.
currencycurrencyrequiredThree-letter currency code.
base_feecurrencyoptionalBase fee applied to the rate.
per_meter_unitenumoptionalDistance unit for per_meter rates. One of km, m, ft, yd, mi.
per_meter_flat_rate_feecurrencyoptionalFlat fee per distance unit for per_meter rates.
meter_feesarray of objectsoptionalDistance fee tiers for fixed_meter or fixed_rate methods.
algorithmstringoptionalComputable algorithm used when rate_calculation_method is algo.
has_cod_feebooleanoptionalWhether the rate includes a cash-on-delivery fee.
cod_calculation_methodenumoptionalCash-on-delivery fee calculation method. One of percentage, flat.
cod_flat_feecurrencyoptionalFlat cash-on-delivery fee.
cod_percentintegeroptionalPercentage cash-on-delivery fee.
has_peak_hours_feebooleanoptionalWhether the rate includes a peak-hours fee.
peak_hours_calculation_methodenumoptionalPeak-hours fee calculation method. One of percentage, flat.
peak_hours_flat_feecurrencyoptionalFlat peak-hours fee.
peak_hours_percentintegeroptionalPercentage peak-hours fee.
peak_hours_startstringoptionalPeak-hours start time in HH:mm format.
peak_hours_endstringoptionalPeak-hours end time in HH:mm format.
duration_termsstringoptionalHuman-readable duration terms.
estimated_daysintegeroptionalEstimated service duration in days.
/v1/service-ratescurl -X POST https://api.fleetbase.io/v1/service-rates \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"service_name": "Food Delivery",
"service_type": "food_delivery",
"rate_calculation_method": "per_meter",
"currency": "USD",
"base_fee": 10.00,
"per_meter_unit": "km",
"per_meter_flat_rate_fee": 25,
"has_cod_fee": true,
"cod_calculation_method": "percentage",
"cod_flat_fee": 1.00,
"cod_percent": 0,
"has_peak_hours_fee": true,
"peak_hours_calculation_method": "percentage",
"peak_hours_flat_fee": 3.00,
"peak_hours_percent": 0,
"peak_hours_start": "17:00",
"peak_hours_end": "18:45",
"duration_terms": "Standard",
"estimated_days": 3
}'/v1/service-ratesQuery Service Rates
List all service rates.
limitintegeroptionalMaximum number of service rates to return.
offsetintegeroptionalNumber of service rates to skip before returning results.
sortstringoptionalSort expression for the service rate query.
service_areastringoptionalFilters service rates by service area ID.
zonestringoptionalFilters service rates by zone ID.
service_typestringoptionalFilters service rates by service type.
/v1/service-ratescurl https://api.fleetbase.io/v1/service-rates?limit=25&offset=0¤cy=USD \
-H "Authorization: Bearer flb_live_…"/v1/service-rates/:idRetrieve a Service Rate
Retrieves a service rate by ID.
/v1/service-rates/:idcurl https://api.fleetbase.io/v1/service-rates/:id \
-H "Authorization: Bearer flb_live_…"/v1/service-rates/:idUpdate a Service Rate
Update a Service Rate.
service_namestringoptionalDisplay name for the service rate.
service_typestringoptionalService type this rate applies to.
service_areastringoptionalService area ID this rate applies to.
zonestringoptionalZone ID this rate applies to.
rate_calculation_methodenumoptionalMethod used to calculate the rate. One of fixed_meter, fixed_rate, per_meter, per_drop, algo, parcel.
currencycurrencyoptionalThree-letter currency code.
base_feecurrencyoptionalBase fee applied to the rate.
per_meter_unitenumoptionalDistance unit for per_meter rates. One of km, m, ft, yd, mi.
per_meter_flat_rate_feecurrencyoptionalFlat fee per distance unit for per_meter rates.
meter_feesarray of objectsoptionalDistance fee tiers for fixed_meter or fixed_rate methods.
algorithmstringoptionalComputable algorithm used when rate_calculation_method is algo.
has_cod_feebooleanoptionalWhether the rate includes a cash-on-delivery fee.
cod_calculation_methodenumoptionalCash-on-delivery fee calculation method. One of percentage, flat.
cod_flat_feecurrencyoptionalFlat cash-on-delivery fee.
cod_percentintegeroptionalPercentage cash-on-delivery fee.
has_peak_hours_feebooleanoptionalWhether the rate includes a peak-hours fee.
peak_hours_calculation_methodenumoptionalPeak-hours fee calculation method. One of percentage, flat.
peak_hours_flat_feecurrencyoptionalFlat peak-hours fee.
peak_hours_percentintegeroptionalPercentage peak-hours fee.
peak_hours_startstringoptionalPeak-hours start time in HH:mm format.
peak_hours_endstringoptionalPeak-hours end time in HH:mm format.
duration_termsstringoptionalHuman-readable duration terms.
estimated_daysintegeroptionalEstimated service duration in days.
/v1/service-rates/:idcurl -X PUT https://api.fleetbase.io/v1/service-rates/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"currency": "SGD",
"base_fee": 12.66,
"estimated_days": 6
}'/v1/service-rates/:idDelete a Service Rate
Delete a Service Rate.
/v1/service-rates/:idcurl -X DELETE https://api.fleetbase.io/v1/service-rates/:id \
-H "Authorization: Bearer flb_live_…"