Version 4.0.0 of project44's API
Version 4.0.0 of project44's API
curl -i -X GET \ 'https://developers.project44.com/_mock/guides/shippers/visibility/ftl/api/api/v4/shipments/{shipmentId}/positionhistory?includeRouteInfo=false' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "positions": [ { … } ], "shipment": { "attributes": [ … ], "accessGroups": [ … ], "createdDateTime": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ … ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { … }, "routeInfo": { … }, "relatedShipments": [ … ], "shipmentShareLink": "string" } }
curl -i -X GET \ 'https://developers.project44.com/_mock/guides/shippers/visibility/ftl/api/api/v4/shipments/{shipmentId}/tracking' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
An optional user-defined set of custom attributes to associate with this shipment.
This set is populated when a shipment is entitled to specific access groups, it denotes which group(s) are entitled visibility.
The date and time when this shipment was created. This value is read only and will be ignored during shipment creation.
Used to identify a shipment.
Only the following identifier types are accepted when creating or updating a shipment:
The date and time when this shipment was last modified. This value is read only and will be ignored during shipment creation or modification.
Route info model that contains the stops and route for the shipment.
List of related shipments of the parent shipment. This is optional.
{ "attributes": [ { … } ], "accessGroups": [ { … } ], "createdDateTime": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { … } ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { "expectedTransportationModes": [ … ] }, "routeInfo": { "routeSegments": [ … ], "stops": [ … ] }, "relatedShipments": [ { … } ], "shipmentShareLink": "string" }
curl -i -X DELETE \ 'https://developers.project44.com/_mock/guides/shippers/visibility/ftl/api/api/v4/shipments/{shipmentId}/tracking' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "httpStatusCode": 400, "httpMessage": "Bad Request", "errors": [ { … } ], "supportReferenceId": "302b461c-47bd-4bca-8e56-16a7cd80aa4d" }
curl -i -X GET \ 'https://developers.project44.com/_mock/guides/shippers/visibility/ftl/api/api/v4/shipments/{shipmentId}/tracking/history' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
All costs incurred for this shipment and the assets contained within.
All events that occurred for this shipment. Will always be in ascending order by the date the event occurred.
Locations where this shipment has been recorded. Data may be down-sampled. Will always be in ascending order by the date that the shipment was at that position.
All states that the shipment was or currently is in. Order is not guaranteed.
{ "costs": [ { … } ], "events": [ { … } ], "exceptions": [ { … } ], "positions": [ { … } ], "shipment": { "attributes": [ … ], "accessGroups": [ … ], "createdDateTime": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ … ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { … }, "routeInfo": { … }, "relatedShipments": [ … ], "shipmentShareLink": "string" }, "states": [ { … } ], "sharingContext": { "dataOriginators": [ … ], "recipients": [ … ] } }
If the shipment does not exist, this will create a new shipment.
If the shipment is already being tracked (and the corresponding id field is provided), this operation is add only for the provided fields.
Note: This operation only modifies data that the user has provided.
An optional user-defined set of custom attributes to associate with this shipment.
This set is populated when a shipment is entitled to specific access groups, it denotes which group(s) are entitled visibility.
The date and time when this shipment was created. This value is read only and will be ignored during shipment creation.
All costs incurred for this shipment and the assets contained within.
Used to identify a shipment.
Only the following identifier types are accepted when creating or updating a shipment:
The date and time when this shipment was last modified. This value is read only and will be ignored during shipment creation or modification.
Route info model that contains the stops and route for the shipment.
List of related shipments of the parent shipment. This is optional.
curl -i -X POST \ https://developers.project44.com/_mock/guides/shippers/visibility/ftl/api/api/v4/shipments/tracking \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "attributes": [ { "name": "string", "value": "string", "values": [ "string" ] } ], "accessGroups": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } ], "createdDateTime": "2019-08-24T14:15:22Z", "costs": [ { "identifiers": [ { "type": "AIR_WAYBILL", "value": "string" } ], "type": "UNKNOWN", "totalCost": { "amount": 0, "currency": "USD" }, "tier": "UNKNOWN" } ], "events": [ { "dateTime": "string", "dateTimes": [ { "dateTime": "string", "endDateTime": "string", "lastModifiedDateTime": "string", "selected": true, "sequence": 0, "source": "UNKNOWN", "sourceIdentifiers": [ { "type": "AIR_WAYBILL", "value": "string" } ], "type": "UNKNOWN" } ], "description": "string", "details": { "mobileTracking": { "code": "UNKNOWN" }, "ocean": { "code": "UNKNOWN" }, "qualityControl": { "code": "UNKNOWN" }, "rolloverDetails": {} }, "estimateDateTime": "string", "estimateLastCalculatedDateTime": "string", "plannedDateTime": "string", "plannedEndDateTime": "string", "receivedDateTime": "string", "routeSegmentId": "a5aad6c5-e2d6-4a7a-8912-ea0254639352", "stopId": "dd775241-8a00-4193-b07c-f3e4740fdc43", "type": "UNKNOWN" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { "type": "AIR_WAYBILL", "value": "string" } ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { "expectedTransportationModes": [ "AIR" ] }, "routeInfo": { "routeSegments": [ { "emissions": { "cargoWeight": { "unit": "LB", "value": 0 }, "co2EmissionIntensity": { "unit": "KG_PER_KM", "value": 0 }, "distance": { "unit": "FT", "value": 0 }, "loadFactor": 0.1, "totalCO2Emissions": { "unit": "LB", "value": 0 }, "vehicleInfo": { "type": { "enumValue": "UNKNOWN" }, "weight": { "unit": "LB", "value": 0 } } }, "fromStopId": "257296aa-4e11-4168-b6a7-981b8b94815b", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { "type": "AIR_WAYBILL", "value": "string" } ], "toStopId": "5f1765b9-dde0-424e-963b-bb3b4e1d1d56", "transportationMode": "AIR" } ], "stops": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "location": { "address": { "addressLines": [ "string" ], "city": "string", "country": "US", "postalCode": "string", "state": "string" }, "coordinates": { "latitude": 0.1, "longitude": 0.1 }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { "type": "AIRPORT_IATA", "value": "string" } ], "name": "string", "timeZone": "string" }, "type": "UNKNOWN" } ] }, "relatedShipments": [ { "attributes": [ { "name": "string", "value": "string", "values": [ "string" ] } ], "accessGroups": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } ], "createdDateTime": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { "type": "AIR_WAYBILL", "value": "string" } ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { "expectedTransportationModes": [ "AIR" ] }, "shipmentShareLink": "string" } ], "shipmentShareLink": "string" }'
OK
An optional user-defined set of custom attributes to associate with this shipment.
This set is populated when a shipment is entitled to specific access groups, it denotes which group(s) are entitled visibility.
The date and time when this shipment was created. This value is read only and will be ignored during shipment creation.
All costs incurred for this shipment and the assets contained within.
Used to identify a shipment.
Only the following identifier types are accepted when creating or updating a shipment:
The date and time when this shipment was last modified. This value is read only and will be ignored during shipment creation or modification.
List of errors and/or warnings that occurred while processing the request
Route info model that contains the stops and route for the shipment.
List of related shipments of the parent shipment. This is optional.
{ "attributes": [ { … } ], "accessGroups": [ { … } ], "createdDateTime": "2019-08-24T14:15:22Z", "costs": [ { … } ], "events": [ { … } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "identifiers": [ { … } ], "lastModifiedDateTime": "2019-08-24T14:15:22Z", "plan": { "expectedTransportationModes": [ … ] }, "problems": [ { … } ], "routeInfo": { "routeSegments": [ … ], "stops": [ … ] }, "relatedShipments": [ { … } ], "shipmentShareLink": "string" }