Specifying transit durations for zone components or routes

You can specify the transit duration for a specific zone component. You can also specify transit delays for the zone components to enhance accuracy of transit duration calculations.

Note: Specifying transit delay for the transit duration is an optional action. You can specify it only when you need to introduce ad hoc delays for carrier transit durations.

Override transit duration for zone components

You can override transit duration for a postal code (or postal code range) when you encounter transit delays for a route.

First, define transit duration for a shipping zone. For example, refer to the following to define the transit duration of 72 hours for ROMSTANDARD_EFC_GB_LT2:
zone transit_duration
ROMSTANDARD_EFC_GB_LT2 PT72H

Define zone components or routes for ROMSTANDARD_EFC_GB_LT2. If you do not provide the transit_duration column in the API request, all zones inherit the value from the parent zone. In this case, for example, 72 hours.

zone destination_country origin_country destination_postal_code_begin destination_postal_code_end origin_postal_code_begin origin_postal_code_end
ROMSTANDARD_EFC_GB_LT2 GB DE AB2 AB4 495 495
ROMSTANDARD_EFC_GB_LT2 GB DE AB5 AB7 495 495
ROMSTANDARD_EFC_GB_LT2 GB DE AB1 AB1 495 495

Consider an example where a transit delay of 24 Hours must be defined for a specific node with origin postal code 495 in DE to ship to AB1 in GB. In such a case, you can upload the zone duration and transit delay for the zone components.

zone destination_country origin_country destination_postal_code_begin destination_postal_code_end origin_postal_code_begin origin_postal_code_end transit_duration transit_delay
ROMSTANDARD_EFC_GB_LT2 GB DE AB1 AB1 495 495 PT96H PT24H

To remove the previously configured transit delay, leave the transit_delay value blank.

Note: The transit duration that is defined at the shipping zone level applies to, and overrides, all transit durations that were previously defined at the zone component level.

For more information, see Create or update a specific zone component or route.