Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.RankAverageDistanceInputRepresentation

An order recipient’s geographic location and information about sets of inventory locations that can fulfill the order.
Property Type Description Required or Optional Available Version
deliveryCountryCode String The country code of the order recipient. Required 51.0
deliveryPostalCode String The postal code of the order recipient. Required 51.0
distanceUnit String Specify mi or km to return average distances in miles or kilometers, respectively. 51.0
sortResult String Specify ASC or DESC to rank the results by average shipping distance in ascending or descending order, respectively. 51.0
targetLocations List<ConnectApi.​TargetLocation​InputRepresentation> Each element is a set of inventory locations that can combine to fulfill the order. At least one element is required 51.0