026097: Changes to UpdateOrder to include the option to not recalculate the delivery prices.

1. Overview

KCSL have added greater control to the UpdateOrders API endpoint by allowing webservice calls to decide whether delivery prices should be recalculated when updating an order.

Previously, updating an order could result in delivery charges being recalculated automatically. With this change, through the API users can choose whether to retain the existing delivery pricing or trigger a recalculation as part of the update process.

This provides greater flexibility for integrations that need to preserve manually selected delivery charges.

2. Specification

Functionality

The UpdateOrders webservice endpoint will be enhanced to accept an additional parameter that controls whether delivery prices are recalculated.

Updated Webservice Endpoint

UpdateOrders(RecalculateDeliveryPrices)

Parameters


<UpdateDeliveryPrices xsi:type="xsd:int"> 1 </UpdateDeliveryPrices>


RecalculateDeliveryPrices Values

ValueBehaviour
0 (False)Delivery prices are not recalculated. Existing delivery pricing is retained.
1 (True)Delivery prices are recalculated using the standard delivery pricing logic.

Default Behaviour

If the RecalculateDeliveryPrices parameter is:

  • Not supplied
  • Empty
  • Invalid

The system will default to False (0).

This means delivery prices will not be recalculated unless explicitly requested.

Delivery Charge Behaviour

When updating an order:

  • The selected delivery method can be changed.
  • The delivery pricing can optionally be recalculated using the new parameter.
  • The sales order delivery charge should remain unchanged unless delivery price recalculation is explicitly requested.

3. Configuration

RecalculateDeliveryPrices Setting

No system configuration is required.

The behaviour is controlled directly through the API request.

Parameter ValueResult
0Retain existing delivery pricing.
1Recalculate delivery pricing.
Not suppliedRetain existing delivery pricing (default behaviour).

Backward Compatibility

Existing integrations that use the current UpdateOrders endpoint without supplying the new parameter will continue to operate as before, with delivery price recalculation disabled by default.

4. Usage

Updating an Order Without Recalculating Delivery Charges

Use the API endpoint with RecalculateDeliveryPrices set to 0 or omit the parameter.

Example

<UpdateDeliveryPrices xsi:type="xsd:int"> 0 </UpdateDeliveryPrices>

Expected Result

  • Order details are updated.
  • Existing delivery charges remain unchanged.
  • No delivery price recalculation is performed.

Updating an Order With Delivery Price Recalculation

Use the API endpoint with RecalculateDeliveryPrices set to 1.

Example

<UpdateDeliveryPrices xsi:type="xsd:int"> 1 </UpdateDeliveryPrices>

Expected Result

  • Order details are updated.
  • Delivery pricing is recalculated using the standard pricing rules.
  • Updated delivery charges are applied to the order.

Did you find this article helpful?