Rule MacroRIS-RM-2209 – Set Lowest Shipping Quote

Set Lowest Shipping Quote

Automatically check available shipping quotes for selected Linnworks orders, apply the most suitable shipping service, and flag orders that need manual review when no valid quote is found.

Overview

Set Lowest Shipping Quote is an automated shipping-service selection solution for Linnworks. It retrieves available shipping quotes for selected orders, applies the macro's defined service-selection rules, and updates each qualifying order with the most suitable shipping method.

The macro processes order IDs supplied through the Linnworks Rule Engine. For each order, it retrieves the enabled shipping integrations, requests live shipping quotes, and evaluates the returned services.

Where special service-selection logic applies, the macro prioritises the relevant matching service. When no special rule applies, it selects the quote with the lowest total cost.

If no suitable quote is available, the order is added to a review list and assigned the Check Order identifier so it can be investigated manually.

The macro also records the previous and newly selected shipping service details as order extended properties, providing greater visibility into the shipping update.

Keep shipping-service selection consistent by automatically applying suitable quotes and clearly identifying orders that require manual review.

Who Should Use Set Lowest Shipping Quote

Key Features

How Set Lowest Shipping Quote Works

Set Lowest Shipping Quote follows a defined sequence whenever it receives one or more order IDs from the Linnworks Rule Engine.

Step 1: Order retrieval

The macro reads each order ID supplied through the OrderIds parameter and retrieves the corresponding Linnworks order details.

Step 2: Shipping integration retrieval

The macro retrieves the enabled shipping integration accounts available within Linnworks.

Step 3: Shipping quote request

Live shipping quotes are requested for the selected order using the available integration accounts.

Step 4: Preferred rule evaluation

The macro checks whether the order matches defined sub-source or preferred-service selection logic.

Step 5: Lowest-cost selection

When no special rule applies, the quote with the lowest total cost is selected.

Step 6: Shipping method update

If a suitable quote is found, the order shipping method is updated using the selected quote details.

Step 7: Shipping audit update

The old and new shipping services and costs are stored as order extended properties.

Step 8: Manual review collection

Orders without a suitable quote are added to a review list.

Step 9: Identifier assignment

After all selected orders are processed, the Check Order identifier is created if necessary and assigned to unresolved orders.

Configure the Macro

Once the app is installed, you need to create a macro configuration so the system knows which macro to run when the rule is triggered.

This setup can be adjusted anytime based on your operational requirements.

Steps to Configure

Go to Apps > Macro Configuration and click + Add new configuration.

Key Benefits

Manual shipping quote comparison can slow down order processing and lead to inconsistent shipping-service choices. Set Lowest Shipping Quote applies the same quote-selection process to every selected order.

Reduce manual shipping checks, apply suitable shipping services consistently, and make unresolved orders easy to identify.

Usage of App

Set Lowest Shipping Quote is triggered through the Linnworks Rule Engine to retrieve shipping quotes and update selected orders automatically.

Execution

Trigger via Rule Engine

Call the Get Cheapest Shipping and Assign Service macro through the Rule Engine with the required OrderIds. No additional custom parameter values are required.

Outcome

When the macro runs against an order, it:

Reads the selected order

Retrieves the Linnworks order details for each supplied order ID.

Retrieves shipping integrations

Reads the enabled Linnworks shipping integration accounts.

Requests available quotes

Requests live shipping quotes for the order through the available integrations.

Applies service-selection rules

Uses the preferred service logic where applicable or selects the lowest total-cost quote.

Updates the shipping method

Applies the selected shipping service to the Linnworks order.

Records old and new values

Stores the previous and selected service details and costs as order extended properties.

Flags unresolved orders

Assigns the Check Order identifier when no suitable quote is found.

Input Parameters

Set Lowest Shipping Quote requires the following input:

ParameterRequiredDescription
OrderIdsYesThe Linnworks order IDs to process. Supplied automatically through the Rule Engine or selected order context.

No additional user-entered parameter values are required in the Macro Configuration screen.

The following dependencies and behaviours are built into the macro workflow:

Setting or DependencyDescription
Enabled Shipping IntegrationsUsed to request available shipping quotes for each selected order.
Preferred Service LogicApplies defined sub-source or service-group selection behaviour where relevant.
Lowest Total CostUsed when no special service rule applies.
Check Order IdentifierApplied to orders where no suitable quote is available.
Shipping Extended PropertiesStore old and new shipping service names and costs.

Quote Selection Rules

The macro applies the following shipping quote rules:

Quote or Order ConditionMacro Behaviour
Order matches defined preferred-service logicPrioritises the matching service according to the macro rules.
No preferred-service rule appliesSelects the quote with the lowest total cost.
Suitable quote is foundUpdates the Linnworks shipping method.
No suitable quote is foundLeaves the shipping method unchanged and adds the order to the review list.
Review orders exist after processingCreates or uses the Check Order identifier and assigns it to those orders.
Shipping service is updatedSaves the old and new service details and costs as order extended properties.

Important: The exact preferred sub-source and service-group rules are defined within the macro logic and are not configured through the Macro Configuration screen.

Shipping Audit Information

When a shipping method is changed, the macro records audit information against the order.

The documentation describes the following stored values:

Audit ValueDescription
Old Shipping ServiceThe shipping service assigned before the macro update.
New Shipping ServiceThe shipping service selected from the available quotes.
Old Shipping CostThe previous shipping cost associated with the order.
New Shipping CostThe cost returned for the selected shipping quote.

These values help teams review what changed after the macro selected and applied a new service.

Example Scenario

Assume the required shipping integrations are enabled and the Rule Engine triggers the macro for four selected orders.

OrderQuote ResultMacro Outcome
Order AMultiple valid quotes are returnedSelects the lowest total-cost quote and updates the shipping service.
Order BMatches defined preferred-service logicApplies the suitable preferred service according to the macro rules.
Order CNo suitable quote is returnedLeaves the service unchanged and assigns the Check Order identifier.
Order DValid quotes are returned and no priority rule appliesSelects the quote with the lowest total cost.

For updated orders, the previous and new shipping service details are stored as extended properties.

Best Practices

Keep shipping integrations active and review unresolved orders before label generation or dispatch.

FAQ

How is Set Lowest Shipping Quote triggered?

The macro is triggered through the Linnworks Rule Engine. Matching order IDs are supplied through the OrderIds parameter.

Does the macro require additional configuration parameters?

No. The Macro Configuration requires a configuration name and must be enabled, but no additional custom values are entered.

Where do the shipping quotes come from?

The macro retrieves quotes through the enabled Linnworks shipping integration accounts.

Does the macro always choose the cheapest quote?

It selects the lowest total-cost quote when no defined preferred-service or sub-source rule applies.

What happens when a preferred-service rule applies?

The macro prioritises the suitable matching service according to the rules implemented in the macro.

Where are the preferred-service rules configured?

The supplied documentation indicates that the rules are defined within the macro logic rather than entered through Macro Configuration.

When is the shipping method updated?

The shipping method is updated only when the macro identifies a suitable quote.

What happens when no suitable quote is found?

The order is left without a shipping-method update and is added to the manual review list.

How are unresolved orders identified?

They receive the Check Order identifier.

What happens if the Check Order identifier does not exist?

The macro creates it before assigning it to unresolved orders.

Does the macro record the previous shipping service?

Yes. The old shipping service is stored as an order extended property.

Does the macro record the new shipping service?

Yes. The newly selected service is also stored as an order extended property.

Are shipping costs recorded?

The documentation states that the old and new shipping costs are stored as extended properties.

Can the macro process multiple orders in one execution?

Yes. It loops through all order IDs supplied through OrderIds.

What should be checked when no quotes are returned?

Confirm that the shipping integrations are enabled, correctly configured, and capable of quoting the selected order.

What should be checked when an order receives the wrong service?

Review the preferred-service logic, the available quotes, and the execution logs for the selected order.

Does the macro create shipping labels?

The supplied documentation describes shipping quote retrieval and shipping-method assignment. It does not state that the macro creates or prints labels.

Please review these pages to understand how data is handled and the terms governing the use of this application.

Summary

Set Lowest Shipping Quote automates shipping-service selection for selected Linnworks orders.

Once connected to the Rule Engine, the macro retrieves enabled shipping integrations, requests live quotes, applies preferred-service logic where relevant, and otherwise selects the quote with the lowest total cost.

Orders with a suitable quote are updated automatically, while orders without a valid option are assigned the Check Order identifier for manual review.

For orders that do not receive the expected shipping service, review the Rule Engine and macro logs, confirm that the required shipping integrations are enabled, and check whether the order was assigned the Check Order identifier.