Update Service Level
Beta/v1/operations/carriers/{carrier_id}/service-levels/{id}Idempotent with Idempotency-Key header. Learn more
Updates a service level's name, code, customer portal visibility, or default status.
Only the fields you send are changed. System-owned service levels cannot be updated.
carrier_idstringThe carrier that owns this service level.
idstringService level ID.
include[]optional arrayenumValues:ownerowner.accountSub-objects to expand in the response. When omitted, sub-objects are returned as null.
nameoptional stringHuman-readable name for the service level, shown to customers at checkout when the service level is visible.
codeoptional stringCarrier-specific code identifying this service level (e.g. fedex_ground).
Must be unique among the carrier's service levels. For a service level synced from a connected carrier the service_level_token used for rating is fixed by the carrier and a code change does not affect it; for one you created yourself, the token follows the code.
customer_portal_visibilityoptional stringenumValues:visiblehiddenWhether customers can see and select this service level at checkout in the customer portal.
is_defaultoptional booleanWhether this is the carrier's default service level, pre-selected when the carrier is chosen.
Each carrier has at most one default; setting this to true clears the carrier's existing default.
default_transit_daysoptional integernullableBusiness days this service typically takes in transit, used to work an order's ship-by date back from a promised delivery date.
A fallback: when a carrier can rate the lane, the transit it quotes is used instead. Set to null to remove it, which leaves transit unknown for lanes the carrier cannot rate. Send null to clear.
idstringService level ID.
objectstringenumValues:service_levelResource type identifier.
namestringHuman-readable name for the service level, shown to customers at checkout when the service level is visible.
service_level_tokenstringCarrier-specific code identifying this service level (e.g. fedex_ground, ups_next_day_air).
For service levels synced from a connected carrier this is the carrier's own token, which is what rate shopping and label purchase are keyed on; for service levels you create yourself it is the code you supplied.
customer_portal_visibilitystringenumValues:visiblehiddenWhether customers can see and select this service level at checkout in the customer portal.
is_defaultbooleanWhether this is the carrier's default service level, pre-selected when the carrier is chosen.
Each carrier has at most one default; setting a new default clears the previous one. A default service level cannot be deleted until another service level takes its place or the flag is cleared.
default_transit_daysintegernullableBusiness days this service typically takes in transit, used to work an order's ship-by date back from a promised delivery date.
A fallback for lanes the carrier has not quoted. Null means transit is unknown for this service rather than instant, so a ship-by date falls back to the promised delivery date itself.
ownerownerExpandablenullableProvenance of this service level.
System-owned service levels are platform-provided defaults that cannot be updated or deleted; account-owned service levels are custom to your account.
objectstringenumValues:ownerResource type identifier.
typestringenumValues:systemaccountWhere this resource came from.
system: a platform-provided default shared across all accounts; not editable.account: created and owned by a specific account; theaccountfield identifies which.
accountaccountExpandablenullableThe account that owns this resource.
Present only when type is account; system-owned resources have no owning account.
idstringAccount ID.
objectstringenumValues:accountResource type identifier.
namestringThe account's display name.
The address billed by default on orders for this account.
null in this endpoint.The address shipped to by default on orders for this account.
null in this endpoint.brandingaccount_brandingnullableCustomer-facing branding for the account, such as the logo, support contacts, and social links.
null in this endpoint.portalaccount_portalnullableThe account's customer portal settings, including the portal URL slug.
null in this endpoint.created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Service Level