---
schema_version: "1"
id: d5160b8988d29fa655954abe0b895e230e611a9e293eaeaf791a4d257d118d70
title: ConnectApi.FindRoutesWithFewestSplitsInputRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_find_routes_with_fewest_splits.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_find_routes_with_fewest_splits.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b5b4874409a4c3736f319175a621fd7a33b0fd230d126fb960cdc91e355f9c2b
description: Data used to calculate order fulfillment routes involving the fewest number of shipment splits.
---
# ConnectApi.FindRoutesWithFewestSplitsInputRepresentation

Data used to calculate order fulfillment routes involving the fewest number of shipment splits.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| locationAvailable​Inventory | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​LocationAvailability​InputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_location_availability.htm "The available quantity of a product at an inventory location.")\> | Each list element represents the available quantity of a product at an inventory location. | At least one element is required | 51.0 |
| maximumNumber​OfSplits | Integer | The maximum allowable number of shipment splits. Routing options that involve more than this number of splits are not returned. Each split represents an additional shipment. Specifying a maximum of 0 returns only locations that can fulfill the entire order in a single shipment. A maximum of 1 returns combinations of locations that can fulfill the order in one or two shipments, and so on. | Required | 51.0 |
| orderedQuantities | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​QuantityWithSku​InputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_quantity_with_sku.htm "A quantity of a product.")\> | Each list element represents a quantity of a product to be routed for fulfillment. | At least one element is required | 51.0 |

#### See Also

- [findRoutesWithFewestSplits(findRoutesWithFewestSplitsInputRepresentation)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_Routing_static_methods.htm#apex_ConnectAPI_Routing_findRoutesWithFewestSplits_1 "Returns combinations of inventory locations that can fulfill an order within a specified limit of shipment splits. By default, checks up to 1,000,000 potential routes, returning a maximum of 10,000 results.")