List shipments
get
                    /fleetMonitoring/clientapi/v2/shipments
This operation returns details of the all the shipments present in the current application instance.The values of unit sensitive field like weight, volume, distance will be in accordance with system unit configuration.
Note :
Shipments can be filtered based on fields like startTime, endTime etc. using MongoDB style query.
Example :
https://iotserver:443/fleetMonitoring/clientapi/v2/shipments?q={"startTime":{"$gt":1527685009925,"$lt":1527686009925}}
                Note :
Shipments can be filtered based on fields like startTime, endTime etc. using MongoDB style query.
Example :
https://iotserver:443/fleetMonitoring/clientapi/v2/shipments?q={"startTime":{"$gt":1527685009925,"$lt":1527686009925}}
Request
Query Parameters
                - 
                        expand(optional): string
                        
                        The list of fields to be expanded in the result. Use 'all' to expand all expandable fields in result.
- 
                        fields(optional): string
                        
                        The comma-separated list of fields to be shown in response. By default all response object fields will be present.
- 
                        limit(optional): integer
                        
                        The maximum number of entries to return to the end user.
- 
                        offset(optional): integer
                        
                        The number that the first record of results is starting from.
- 
                        orderBy(optional): string
                        
                        Ordering criteria for the returned shipments' list.
- 
                        q(optional): string
                        
                        Query to filter shipments on the application. (For more information on mongoDB query parameters refer to Using mongoDB Query Syntax.)
- 
                        since(optional): integer
                        
                        The starting point of the desired time interval, in milliseconds. The default is 0.
- 
                        totalResults(optional): boolean
                        
                        The total number of results suiting the request.
- 
                        until(optional): integer
                        
                        The finishing point of the desired time interval, in milliseconds. The default is 0.
Header Parameters
                - 
                        X-ORACLE-IOT-ORG(optional): string
                        
                        To allow targeting requests to different organizations. The header value should contain the organization identifier(orgId). This header is optional, if not provided orgId will be ORA_DEFAULT_ORG
Response
Supported Media Types
                - application/json
- application/vnd.oracle.resource+json;type=collection
200 Response
Successfully processed.
                
                
                    Root Schema : ShipmentImpl_receive_list
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            count: 
            integer(int32)
            
- 
            hasMore: 
            boolean
            
- 
            items: 
            array  items
            
            
- 
            limit: 
            integer(int32)
            
- 
            links: 
            array  links
            
            The set of API navigation links.
- 
            offset: 
            integer(int32)
            
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            carrierId: 
            string
            Carrier or transporter identifier
- 
            carrierName: 
            string
            Carrier Name
- 
            cost: 
            integer
            Shipment Cost
- 
            costCurrency: 
            string
            Property description was not set
- 
            createdBy: 
            string
            Created by
- 
            createdTime: 
            string
            Creation Time
- 
            domainName: 
            string
            Domain Name
- 
            driverId: 
            object  DriverEntityIDRefs_receive
            
            
- 
            earliestEndTime: 
            integer
            Earliest time when a shipment could be completed
- 
            earliestStartTime: 
            integer
            Earliest Start Time (epoch time in milliseconds)
- 
            endTime: 
            integer
            End Time (epoch time in milliseconds)
- 
            equipment: 
            object  Equipment_receive
            
            
- 
            equipmentUtilization: 
            integer
            Equipment Utilization
- 
            extendedFields: 
            array  extendedFields
            
            List of extended field values supported for this shipment
- 
            externalId: 
            string
            External ID
- 
            externalReference: 
            string
            External Reference
- 
            id: 
            string
            Shipment ID
- 
            isTPLManaged: 
            boolean
            Property description was not set
- 
            lastModifiedBy: 
            string
            Modified By
- 
            lastModifiedTime: 
            integer
            Last Modified Time (epoch time in milliseconds)
- 
            lastModifiedTimeAsString: 
            string
            Last Modified Time of Shipment as an ISO-8601 formatted string.
- 
            latestStartTime: 
            integer
            Latest Start Time (epoch time in milliseconds)
- 
            loadedDistance: 
            integer
            Loaded Distance, value should be provided in kilometers
- 
            metricSnapshot: 
            object  MetricSnapshot_receive
            
            
- 
            name: 
            string
            Shipment Name
- 
            orderCount: 
            integer
            Number of Orders
- 
            plannedDriveDistance: 
            integer
            Planned Drive Distance, value should be provided in kilometers. If user input is provided, it is honored. Otherwise this is derived from distanceToNextStop provided for each stop, or is computed as a sum of loadedDistance and unLoadedDistance distances, or distance information derived from map service; in the order as mentioned.
- 
            plannedDriveDurationSeconds: 
            integer
            Planned Drive Duration in Seconds. If user input is provided, it is honoured. Otherwise the computation is done by the application.
- 
            powerUnitId: 
            object  ExternalEntityIDRefs_receive
            
            
- 
            powerUnitLicensePlateNumber: 
            string
            Power Unit Registration Number.
- 
            shipperId: 
            string
            Shipper identifier or consignor
- 
            shipperName: 
            string
            Name of the shipper or consignor
- 
            shipUnitCount: 
            integer
            Number of Shipment Units
- 
            startTime: 
            integer
            Start Time (epoch time in milliseconds)
- 
            status: 
            string
            Shipment StatusOne of [PLANNED, EN_ROUTE, REACHED_DESTINATION, COMPLETED].
- 
            stopCount: 
            integer
            Total Stop Count
- 
            stops: 
            array  stops
            
            List of stops
- 
            stopsCompleted: 
            integer
            Stops Completed
- 
            trackerStatus: 
            string
            Tracker status of the tracked shipment being monitored by data aggregator
- 
            trackingId: 
            string
            Tracking Id of the tracked shipment, as being monitored by data aggregator
- 
            transportMode: 
            string
            Transport mode. e.g. (TruckLoad, TL, LessThanTruckLoad, LTL etc)
- 
            tripId: 
            string
            Trip ID
- 
            unLoadedDistance: 
            integer
            Unloaded Distance, value should be provided in kilometers
- 
            volume: 
            integer
            Volume of the shipment, value should be provided in litres
- 
            volumeUtilization: 
            integer
            Volume Utilization
- 
            weight: 
            integer
            Weight of the shipment, value should be provided in kilograms
- 
            weightUtilization: 
            integer
            Weight Utilization
Nested Schema : DriverEntityIDRefs_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            externalId: 
            string
            External ID
- 
            id: 
            string
            ID
- 
            loginId: 
            string
            Driver Login ID
Nested Schema : Equipment_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            externalId: 
            string
            Property description was not set
- 
            groupId: 
            string
            Property description was not set
Nested Schema : extendedFields
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayList of extended field values supported for this shipment
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : MetricSnapshot_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            metricValues: 
            array  metricValues
            
            The metric values of an entity
Nested Schema : ExternalEntityIDRefs_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            externalId: 
            string
            External ID
- 
            id: 
            string
            ID
Nested Schema : ShipmentExtendedField_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            group: 
            string
            Type of the extended field. Following group types are supported &qot;VehicleIdentifier&qot;, &qot;ShipmentIdentifier&qot;, &qot;CarrierIdentifier&qot;;One of [VehicleIdentifier, ShipmentIdentifier, CarrierIdentifier].
- 
            name: 
            string
            Unique name of the extended field
Nested Schema : MetricValue_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            booleanValue(optional): 
            boolean
            Property description was not set
- 
            computedTime: 
            integer
            Property description was not set
- 
            confidenceLevel(optional): 
            integer
            Property description was not set
- 
            entityId: 
            string
            Property description was not set
- 
            entityType: 
            string
            Property description was not set
- 
            esAdditionalData: 
            object  esAdditionalData
            
            Additional Properties Allowed: additionalPropertiesProperty description was not set
- 
            esRelationType: 
            object  EsJoinFieldValue_receive
            
            
- 
            eventTime: 
            integer
            Property description was not set
- 
            eventTimeAsString: 
            string
            Property description was not set
- 
            geoLocationValue(optional): 
            object  GeoPosition_receive
            
            
- 
            id: 
            string
            Property description was not set
- 
            interval: 
            string
            One of [DYNAMIC, CURRENT, EVERY2MINUTE, HOURLY, DAILY, NEXT24HOURS, WEEKLY, BIWEEKLY, NEXT7DAYS, NEXT30DAYS, MONTHLY, DAYS90, STATIC].
- 
            lastKnown: 
            boolean
            Property description was not set
- 
            metadata: 
            object  metadata
            
            Additional Properties Allowed: additionalPropertiesProperty description was not set
- 
            name: 
            string
            Property description was not set
- 
            numericValue(optional): 
            integer
            Property description was not set
- 
            params: 
            object  params
            
            Additional Properties Allowed: additionalPropertiesProperty description was not set
- 
            stringValue(optional): 
            string
            Property description was not set
- 
            type: 
            string
            One of [KPI, PREDICTION, ANOMALY, TREND_NELSON, TREND, SENSOR, CORRELATION, CLUSTERING].
Nested Schema : esAdditionalData
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
       objectAdditional Properties Allowed
       Show Source
       - 
           
               string
           
           A map of the following type: Map<String, String>
Property description was not set
    
    
    
    
        Show Source
        Nested Schema : EsJoinFieldValue_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            name: 
            string
            Property description was not set
- 
            parent: 
            string
            Property description was not set
Nested Schema : GeoPosition_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            additionalElements: 
            array  additionalElements
            
            Property description was not set
- 
            altitude: 
            number
            Property description was not set
- 
            latitude: 
            number
            Property description was not set
- 
            longitude: 
            number
            Property description was not set
- 
            valid: 
            boolean
            Property description was not set
Nested Schema : metadata
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
       objectAdditional Properties Allowed
       Show Source
       - 
           
               string
           
           A map of the following type: Map<String, String>
Property description was not set
    
    
    
    
        Show Source
        Nested Schema : params
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
       objectAdditional Properties Allowed
       Show Source
       - 
           
               string
           
           A map of the following type: Map<String, String>
Property description was not set
    
    
    
    
        Show Source
        Nested Schema : TripStopRecord_receive
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            address: 
            string
            Unified full address, e.g. 500 Oracle Parkway::Redwood City::CA::US::94065 . Must be provided if geoLocation is not specified.
- 
            arrivalTime: 
            integer
            Trip arrival time (millisecond)
- 
            city: 
            string
            Name of City
- 
            country: 
            string
            Name of country
- 
            departureTime: 
            integer
            Trip departure time (millisecond)
- 
            distanceToNextStop: 
            number
            Estimated distance to next stop
- 
            estimatedArrivalTime: 
            integer
            Estimated arrival time (millisecond)
- 
            estimatedDepartureTime: 
            integer
            Estimated departure time (millisecond)
- 
            estimatedTimeToNextStop: 
            integer
            Estimated time it will take to reach next stop (second)
- 
            expectedDurationFromStart: 
            integer
            Expected duration from Start to arrive at this Stop (seconds)
- 
            geoLocation: 
            object  GeoPosition_receive
            
            
- 
            plannedArrivalTime: 
            integer
            Planned Trip arrival time (in millisecond)
- 
            plannedDepartureTime: 
            integer
            Planned Trip departure time (in millisecond)
- 
            postalCode: 
            string
            Postal/Zip code
- 
            state: 
            string
            Name of State
- 
            stopDurationInSeconds: 
            integer
            Stop duration in seconds
- 
            stopSequence: 
            integer
            Sequence number of the stop
- 
            stopType: 
            string
            The reason for stopping
- 
            street: 
            string
            Name of Street
- 
            timeZone: 
            string
            Time zone of the time fields
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            href(optional): 
            string
            The target resource URIExample:https://iotserver/iot/api/vX/some/API/path
- 
            rel(optional): 
            string
            Relation typeExample:canonical
401 Response
Unauthorized. The request requires user authentication.
                
                
                404 Response
Not Found. The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
                
                
                406 Response
Request Not Acceptable. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
                
                
                Examples
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/fleetMonitoring/clientapi/v2/shipments
Example of Response Body
The following example shows the content of the response body in JSON format:
{
    "items": [
        {
            "id": "C6868594-EDEB-46D3-991B-EA387C901EF2",
            "externalId": "Planned-Shipment-2",
            "name": "Planned_Shipment-2",
            "cost": 60,
            "costCurrency": "EURO",
            "equipment": {
                "externalId": "EQUIP-3",
                "groupId": "TestGrp"
            },
            "orderCount": 3,
            "shipUnitCount": 4,
            "carrierName": "MyGlobalCarrier",
            "domainName": "D1",
            "weight": 6.5,
            "volume": 6.8,
            "loadedDistance": 6.8,
            "weightUtilization": 1.2,
            "volumeUtilization": 3.6,
            "equipmentUtilization": 8.9,
            "earliestStartTime": 1012409946000,
            "latestStartTime": 4512582746000,
            "externalReference": "BM1234565",
            "driverId": {
                "id": "BDF34C99-D53B-49E7-963C-7606DA494A70",
                "externalId": "driver2"
            },
            "powerUnitId": {
                "id": "6692F861-DAAF-4B11-BF69-73E1AC711270",
                "externalId": "pu5"
            },
            "powerUnitLicensePlateNumber": "KA5-1",
            "stops": [
                {
                    "address": "199 Coyote Ranch Rd::San Jose::CA::US::95138",
                    "geoLocation": [
                        -121.74271,
                        37.22656
                    ],
                    "estimatedTimeToNextStop": 792,
                    "distanceToNextStop": 288,
                    "expectedDurationFromStart": 0,
                    "city": "San Jose",
                    "country": "US",
                    "estimatedArrivalTime": 1517305083000,
                    "estimatedDepartureTime": 1517300083000,
                    "plannedArrivalTime": 1517305083000,
                    "plannedDepartureTime": 1517405083000,
                    "postalCode": "95138",
                    "state": "CA",
                    "stopType": "P",
                    "street": "199 Coyote Ranch Rd",
                    "stopDurationInSeconds": 0,
                    "stopSequence": 1
                },
                {
                    "address": "27701 Lake Hughes Rd::Castaic::CA::US::91384",
                    "geoLocation": [
                        -118.62244,
                        34.49378
                    ],
                    "estimatedTimeToNextStop": 78,
                    "distanceToNextStop": 25,
                    "expectedDurationFromStart": 792,
                    "city": "Castaic",
                    "country": "US",
                    "estimatedArrivalTime": 1517305083000,
                    "estimatedDepartureTime": 1517405083000,
                    "plannedArrivalTime": 1517305083000,
                    "plannedDepartureTime": 1517405083000,
                    "postalCode": "91384",
                    "state": "CA",
                    "stopType": "P",
                    "street": "27701 Lake Hughes Rd",
                    "stopDurationInSeconds": 0,
                    "stopSequence": 2
                },
                {
                    "address": "8793 Haddon Ave::Sun Valley::CA::US::91352",
                    "geoLocation": [
                        -118.39086,
                        34.22774
                    ],
                    "estimatedTimeToNextStop": 366,
                    "distanceToNextStop": 21.000000000000004,
                    "expectedDurationFromStart": 870,
                    "city": "Sun Valley",
                    "country": "US",
                    "estimatedArrivalTime": 1517516083000,
                    "estimatedDepartureTime": 1518516083000,
                    "plannedArrivalTime": 1517516083000,
                    "plannedDepartureTime": 1518516083000,
                    "postalCode": "91352",
                    "state": "CA",
                    "stopType": "D",
                    "street": "8793 Haddon Ave",
                    "stopDurationInSeconds": 0,
                    "stopSequence": 3
                }
            ],
            "lastModifiedBy": "iot",
            "lastModifiedTime": "2018-02-16T09:09:34.869Z",
            "lastModifiedTimeAsString": 1518772174869,
            "createdBy": "iot",
            "createdTime": "2018-02-16T08:58:04.520Z",
            "metricValues": [
                {
                    "id": "ee15eac2-d49f-31b7-b3b0-9af2b1d5b4ee",
                    "name": "sys_delayDurationSeconds",
                    "entityType": "shipments",
                    "eventTime": 1530273016245,
                    "computedTime": 1530273016245,
                    "eventTimeAsString": "2018-02-16T09:08:59Z",
                    "interval": "CURRENT",
                    "entityId": "39F46227-B6A8-480B-8F48-BD775786FD37",
                    "type": "KPI",
                    "lastKnown": false,
                    "numericValue": 1219
                },
                {
                    "id": "3a67eee2-2d6a-3cdd-bbb3-e70a01bd391e",
                    "name": "untraceableStatus",
                    "entityType": "shipments",
                    "eventTime": 1518772139062,
                    "computedTime": 1518772139062,
                    "eventTimeAsString": "2018-02-16T09:08:59Z",
                    "interval": "CURRENT",
                    "entityId": "C6868594-EDEB-46D3-991B-EA387C901EF2",
                    "type": "KPI",
                    "lastKnown": false,
                    "booleanValue": false
                }
            ],
            "status": "COMPLETED",
            "stopCount": 3,
            "stopsCompleted": 0,
            "tripId": "AC152E72-9754-4C59-A048-64A0E1B2D046"
        }
    ],
    "links": [
        {
            "href": "https://iotserver/fleetMonitoring/clientapi/v2/shipments?offset=0&limit=10&q=%7B%22driverLoginId%22:%20%7B%20%22$eq%22:%20%22IoTFMDriver3%22%20%7D%20%7D",
            "rel": "self"
        },
        {
            "href": "https://iotserver/fleetMonitoring/clientapi/v2/shipments",
            "rel": "canonical"
        },
        {
            "href": "https://iotserver/fleetMonitoring/clientapi/v2/shipments?q=%7B%22driverLoginId%22:%20%7B%20%22$eq%22:%20%22IoTFMDriver3%22%20%7D%20%7D&offset=0&limit=10",
            "rel": "first"
        },
        {
            "href": "https://iotserver/fleetMonitoring/clientapi/v2/shipments?q=%7B%22driverLoginId%22:%20%7B%20%22$eq%22:%20%22IoTFMDriver3%22%20%7D%20%7D&offset=0&limit=10",
            "rel": "last"
        }
    ],
    "offset": 0,
    "limit": 10,
    "count": 1,
    "hasMore": false
} 
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/fleetMonitoring/clientapi/v2/shipments
Note that in the request,
https://iotserver will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is 
 https://myinstance-myidentitydomain.iot.us.oraclecloud.com and the default port is 443.