ConnectApi.RankAverageDistanceInputRepresentation

An order recipient’s geographic location and information about sets of inventory locations that can fulfill the order.

PropertyTypeDescriptionRequired or OptionalAvailable Version
deliveryCountryCodeStringThe country code of the order recipient.Required51.0
deliveryPostalCodeStringThe postal code of the order recipient.Required51.0
distanceUnitStringSpecify mi or km to return average distances in miles or kilometers, respectively. 51.0
sortResultStringSpecify ASC or DESC to rank the results by average shipping distance in ascending or descending order, respectively. 51.0
targetLocationsList<ConnectApi.​TargetLocation​InputRepresentation>Each element is a set of inventory locations that can combine to fulfill the order.At least one element is required51.0