View load details for multiple loads

This API call is recommended as this combines the results from both the GetLoadSearchResults and GetLoadSearchDetailResults using fewer API calls.

POST /v13/Searching/LoadSearch.svc Get multiple load search results with the details for loads based on search criteria.

Authorization Username, Password, & Integration ID
SOAP Action http://webservices.truckstop.com/v12/ILoadSearch/GetMultipleLoadDetailResults
Content Type text/xml
Accept text/xml
URL Params None
Body Params XML data

📘

Multiple Load Details Results

🗒️

Notes:

  • For origin and destination, a single state or multiple states are acceptable with a maximum of 15 states each.
    • Origin is required
    • Destination is optional.
  • To search for loads based on Age, specify the age in hours in the ‘HoursOld’ field. If filtering based on Age is not required, specify a 0 in the ‘HoursOld’ field to return all results.
  • Sort functionality is available to specify a column to sort on and the sort order. The sort column is a specified list of column names. See SortColumns enum. The SortDescending field is a Boolean value that indicates Ascending order when false, and Descending order when true.

Sample Request/Response

curl --location 'https://testws.truckstop.com/v13/Searching/LoadSearch.svc' \
--header 'Content-Type: text/xml' \
--header 'SOAPAction: http://webservices.truckstop.com/v12/ILoadSearch/GetMultipleLoadDetailResults' \
--data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v12="http://webservices.truckstop.com/v12" xmlns:web="http://schemas.datacontract.org/2004/07/WebServices" xmlns:web1="http://schemas.datacontract.org/2004/07/WebServices.Searching" xmlns:truc="http://schemas.datacontract.org/2004/07/Truckstop2.Objects" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
   <soapenv:Header/>
   <soapenv:Body>
      <v12:GetMultipleLoadDetailResults>
         <v12:searchRequest>
            <web:IntegrationId>12345</web:IntegrationId>
            <web:Password>MyPass123!</web:Password>
            <web:UserName>MyWSUsername</web:UserName>
            <web1:Criteria>  
            	 <!--Optional:-->
               <web1:DestinationCity>Garden City</web1:DestinationCity>
               <!--Optional:-->
               <web1:DestinationCountry>usa</web1:DestinationCountry>
               <!--Optional:-->
               <web1:DestinationRange>100</web1:DestinationRange>
               <!--Optional:-->
               <web1:DestinationState>GA</web1:DestinationState>
               <web1:EquipmentOptions>
               		<!-- Zero or more iterations:-->
               		<truc:TrailerOptionType>Tarps</truc:TrailerOptionType>
               </web1:EquipmentOptions>   
               <web1:EquipmentType>F</web1:EquipmentType>          
               <web1:HoursOld>0</web1:HoursOld>
               <web1:LoadType>All</web1:LoadType>
               <web1:OriginCity>Los Angeles</web1:OriginCity>          
               <web1:OriginCountry>usa</web1:OriginCountry>          
               <web1:OriginRange>300</web1:OriginRange>               
               <web1:OriginState>CA</web1:OriginState>          
               <web1:PageNumber>1</web1:PageNumber>            
               <web1:PageSize>50</web1:PageSize>
               <web1:PickupDates>             
               		<!-- Zero or more iterations:-->
                  <arr:dateTime>2024-10-29T00:00:00</arr:dateTime>                        
               </web1:PickupDates>               
               <web1:SortBy>Age</web1:SortBy>
               <web1:SortDescending>false</web1:SortDescending>
            </web1:Criteria>
         </v12:searchRequest>
      </v12:GetMultipleLoadDetailResults>
   </soapenv:Body>
</soapenv:Envelope>'
HTTP/1.1 200 OK
Content-Length: 1062
Content-Type: text/xml; charset=utf-8 
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Mon, 09 Apr 2012 19:36:52 GMT
Vary: Accept-Encoding 
Content-Encoding: gzip 
Connection: Keep-Alive

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
        <ActivityId CorrelationId="ec90c39f-f527-4353-8a34-e0abbc5c3378" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">96cafad8-a5b8-4ce6-80a1-40ad2d24922b</ActivityId>
    </s:Header>
<s:Body>
    <GetLoadSearchResultsResponse xmlns="http://webservices.truckstop.com/v12">
        <GetLoadSearchResultsResult xmlns:a="http://schemas.datacontract.org/2004/07/WebServices.Objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Errors xmlns="http://schemas.datacontract.org/2004/07/WebServices"/>
            <a:SearchResults>
             <a:LoadSearchItem>
                <a:Age>0</a:Age>
                <a:Bond>0</a:Bond>
                <a:BondEnabled>false</a:BondEnabled>
                <a:BondTypeID>9999</a:BondTypeID>
                <a:CompanyName>Company</a:CompanyName>
                <a:Days2Pay>info</a:Days2Pay>
                <a:DestinationCity>WACO</a:DestinationCity>
                <a:DestinationCountry>USA</a:DestinationCountry>
                <a:DestinationDistance>88</a:DestinationDistance>
                <a:DestinationState>TX</a:DestinationState>
                <a:Equipment>F</a:Equipment>
                <a:EquipmentOptions xmlns:b="http://schemas.datacontract.org/2004/07/Truckstop2.Objects"/>
                <a:ExperienceFactor>N</a:ExperienceFactor>
                <a:FuelCost>4.0786</a:FuelCost>
                <a:ID>111111111</a:ID>
                <a:IsFriend>false</a:IsFriend>
                <a:Length>0</a:Length>
                <a:LoadType>Full</a:LoadType>
                <a:Miles>1695</a:Miles>
                <a:OriginCity>BOISE</a:OriginCity>
                <a:OriginCountry>USA</a:OriginCountry>
                <a:OriginDistance>0</a:OriginDistance>
                <a:OriginState>ID</a:OriginState>
                <a:Payment>0</a:Payment>
                <a:PickUpDate>5/13/2013</a:PickUpDate>
                <a:PointOfContactPhone>123-456-7891</a:PointOfContactPhone>
                <a:PricePerGall>0</a:PricePerGall>
                <a:Weight>48,000</a:Weight>
             </a:LoadSearchItem>
         </a:SearchResults>
      </GetLoadSearchResultsResult>
   </GetLoadSearchResultsResponse>
  </s:Body>
</s:Envelope>