Update

Updates a rate sheet. Only name, comments, cargo_types, and vehicle_types can be changed. Use the archive endpoint for archiving. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | (RateSheetClientUpdate1) -> (RateSheet1)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

rate_sheet_idstringRequired

Request

This endpoint expects an object.
namestringOptional
commentsstringOptional
cargo_typeslist of enumsOptional
vehicle_typeslist of enumsOptional
name__set_to_NonebooleanOptionalDefaults to false
comments__set_to_NonebooleanOptionalDefaults to false

Response

Successful Response
schema_versioninteger
service_typeenum
Allowed values:
owned_by_org_idstring

Must be a string starting with org_

owned_by_org_typeenum
Allowed values:
payment_vector_typeenum
Allowed values:
_idstring
archivedbooleanDefaults to false
namestring
commentsstring
cargo_typeslist of enums
vehicle_typeslist of enums
base_mileage_distance_milesdouble
base_mileage_rate_usd_per_instancedouble
additional_mileage_rate_usd_per_miledouble

applies only to the additional/incremental miles

long_distance_surcharge_miles_before_surchargedouble
long_distance_surcharge_rate_usd_per_miledouble

applies only to the additional/incremental miles

fuel_surcharge_rate_usd_per_miledouble
wait_time_before_charge_minutesdouble
wait_time_rate_usd_per_minutedouble
extra_stop_rate_usddouble
dangerous_goods_rate_usd_per_instancedouble
after_hours_rate_usd_per_instancedouble
weekend_rate_usd_per_instancedouble
holiday_rate_usd_per_instancedouble

Errors

422
Rate Sheets Update V1request Unprocessable Entity Error