Newer Version Available
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.TargetLocationInputRepresentation> | Each element is a set of inventory locations that can combine to fulfill the order. | At least one element is required | 51.0 |