Auto-Assign Carriers Using Shipping Rules
  • 01 Aug 2024
  • 5 Minutes to read
  • Dark
    Light

Auto-Assign Carriers Using Shipping Rules

  • Dark
    Light

Article summary

Save on packer work hours and simplify exception management by automating your fulfillment process using shipping rules. Shipping rules use your priorities and the requirements of specific orders and inventory to automatically assign the best carrier and service to each shipment.

When you use Shipping Rules, Delivery Hub checks if all attributes of a shipping rule are true for each shipment. If they are true, Delivery Hub offers the shipment to each carrier attached to the rule, starting with the top of your prioritization list, until one accepts the order. For example, you can first offer each same-day order to your preferred local carrier. If they are unavailable, Delivery Hub offers the order to the next available crowdsourced carrier.

You can use shipping rules for shipments created using the Create Shipment API request or when manually creating shipments using the packer flow.


Use shipping rules to automatically assign the best carrier to fulfill each shipment

 

Before You Begin

  • Confirm you have the Admin user type.

    • Confirm that you have added the relevant carriers to your Shipping Accounts in Delivery Hub. Learn more.
    • Be clear on the conditions when Delivery Hub should consider a carrier as a viable provider for each order. For example, after analyzing report data that shows a carrier's strengths and weaknesses, you may tweak your shipping rules to book shipments with them only in cases where their performance is strongest.

Configure Shipping Rules

Step 1: Define Attributes

1. To create or update a rule, go to Settings > Shipping & Returns and select the Shipping Rules tab.

Access the Shipping Rules tab

 

To...Do this...
Create a new ruleSelect Add Rule.
Update an existing ruleSelect the chevron icon chevron-up_iconto expand the rule you want to update. 
Use a previously created rule as a templateSelect the context menubuild-reports-for-custom-analytics-en-image-nhze2fcn > Duplicate.

2. Make your automation easy to find by selecting the edit icon and entering a name. For example, the name of your shipping rule could include attributes specific to the rule, such as the destination country or service level.

An example screenshot with  a shipping rule renamed from "Shipping Rule 1" to "Orders to Denmark".Enter a name for your shipping rule

 

3. Define the situation when you want to assign a shipment to a specific set of carriers.

To add the conditions that must be true for your rule to be activated, selectadd-your-delivery-strategy-to-bringg-image-2vn6e29m Attribute and choose the relevant fields from the list. 

su-dh2_shippingrule_attribute_addAdd an attribute to set rule conditions

FieldDescription
Destination countryThe country that the shipment is sent from.
Origin countryThe country that the shipment is sent to.
Total weightThe total weight of the shipment, including packaging and inventory.
Total valueThe total value of the shipment.
Service levelThe service level that the customer selected at checkout. For example, two-day shipping.
Longest package dimensionThe max dimension of all packages in the shipment. For example, if the longest dimension of all packages in the shipment is a width of 30 cm, that is the dimension that DH will use for this attribute.
Required service level
The service level required by your company's workflows and regulations. For example, if certain hazardous materials require delivery within 72 hours, you can add a 72 hours tag to the required_service_level parameter and create a shipping rule that assigns shipments with this tag to specific carrier services.

4. Select an operator for each field, then enter the required value.
Operators define an attribute as true if the value of the field:

  • Is, Is not, or Is at least one of the values that you select from the dropdown list
  • Is, for example, equal to, less than, or in range of the values you enter in the number field
  • Is, Is not, Contains, or Does not contain the values you enter in the text field.

For example, if you want to ship all shipments heading to Denmark with a specific carrier, you can select Destination country > Is and then select Denmark from the dropdown list that appears.

su-dh2_shippingrule_destinationcountry

5. To add more conditions to the rule, select+Attribute.

6. To remove an attribute, select the trash iconicon_delete_grey.png.

Step 2: Assign Carrier & Service

1. To select the carriers to whom Delivery Hub will assign shipments that fulfill all the required attributes for this rule, select the dropdown under A. Select carrier & service and choose at least one carrier from the list.

Select carriers and service levels that apply to this rule

 

2. Select your preferred prioritization method for carrier assignment under B. Prioritize services.
Delivery Hub assigns the first available preferred carrier and service based on your prioritization.

Drag selected services to prioritize them
To...Do this...
Assign the shipment to the carrier that quotes the lowest priceSelect Cheapest
Create a custom prioritizationSelect the grip dots drag.png to drag each service to your preferred location in the list, with the most preferred at the top and the least preferred at the bottom.

Step 3: Manage Rules


su-dh2_shippingrule_actions
Duplicate, reorder, or delete a rule using the context menu 

 


To...Do this...
Prioritize rules

Delivery Hub starts at the top of your list of rules when checking to see which rules match each shipment, and ignores rules that are lower in the list if there is a match above them.

Once you have created a few rules, you might notice that some contradict each other. In such cases, you can select the context menu context menu > Move up or Move down to adjust the prioritization of your rules.

Activate and deactivate rulesSelect the toggle add-your-delivery-strategy-to-bringg-image-9hm4v6einext to the context menu to enable or deactivate a rule.
When you deactivate a rule, Delivery Hub will ignore it when checking for rules that match each shipment. If no other rule matches a shipment, you can manually assign a carrier in Fulfillments.
You can deactivate a rule temporarily, for instance if you prefer to manually select the cheapest or fastest carrier for each shipment during the holiday season.
Delete rulesTo delete a rule, select the context menu context menu > Delete.


Automatically Book Shipments 

You can automatically book shipments using Shipping Rules when creating shipments using Delivery Hub's Create Shipment API request. To do so, make sure that the disable_shipping_rules parameter isfalse and that you don't include a service or carrier when creating the shipment.

You can also book a shipment using Shipping Rules using the packer flow. Once you select Create Shipment, Delivery Hub automatically runs through your shipping rules to find the first matching rule, sends quote requests to all matching carriers listed in the rule, and then displays the results at the top of the carrier selection modal in the prioritized order. For example, if your shipping rule prioritizes the cheapest quote from a list of carriers, the cheapest appears at the top of the modal. Confirm the selected carrier and service by selecting Book Carrier, or choose another option from the list before continuing.


View and confirm carrier assignments based on shipping rules

 





Was this article helpful?