Version 4.0.0 of project44's API
Version 4.0.0 of project44's API
shipmentCancellation
Contains fields used to configure the LTL shipment API.
The requested capacity provider account group containing the account used for authentication with the capacity provider's API.
curl -i -X POST \ 'https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/shipments/{id}/cancellations' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "apiConfiguration": { "fallBackToDefaultAccountGroup": true }, "capacityProviderAccountGroup": { "accounts": [ { "code": "string" } ], "code": "string" }, "originAddress": { "postalCode": "string", "addressLines": [ "str" ], "city": "string", "state": "string", "country": "US" }, "shipmentIdentifiers": [ { "primaryForType": true, "source": "CUSTOMER", "type": "PRO", "value": "string" } ] }'
{ "infoMessages": [ { … } ], "shipmentIdentifiers": [ { … } ] }
shipmentCancellation
Contains fields used to configure the LTL shipment API.
The requested capacity provider account group containing the account used for authentication with the capacity provider's API.
curl -i -X POST \ https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/shipments/cancellations \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "apiConfiguration": { "fallBackToDefaultAccountGroup": true }, "capacityProviderAccountGroup": { "accounts": [ { "code": "string" } ], "code": "string" }, "originAddress": { "postalCode": "string", "addressLines": [ "str" ], "city": "string", "state": "string", "country": "US" }, "shipmentIdentifiers": [ { "primaryForType": true, "source": "CUSTOMER", "type": "PRO", "value": "string" } ] }'
{ "infoMessages": [ { … } ], "shipmentIdentifiers": [ { … } ] }
Use this POST call to start a tracking job, initializing LTL tracking. The tracking job will run for a given duration (designated with the startDateTime and endDateTime parameters), gathering updates from the carrier and reference numbers detailed in the API call. Once a tracking update has been pulled from the carrier into the project44 tracking job, you can access the information via the GET requests below this endpoint. Note that if your dispatch was done through project44, you do not need to initialize tracking. project44 will implicitly start tracking based on the data provided in the dispatch.
shipment
The requested capacity provider account group containing the account used for authentication with the capacity provider's API.
The project44-generated id of the LTL shipment. This may be provided when creating a tracked shipment only if a tracked shipment does not exist with this id but a shipment record does exist in project44's system with this id. This enables linking a dispatched shipment that initially failed to track to its tracking information by passing the id from dispatch. This id will always be returned in the shipment confirmation and may be used in subsequent API calls to reference a shipment.
The project44-generated id that is the UUID equivalent of id. The same rules apply to this value as applies to the id.
The project44-generated id that connects multi-leg shipments agnostic of mode.
A user-defined list of shipment identifiers that, with the exception of the EXTERNAL type, can be used to track the shipment with the capacity provider.
A list of the shipment stops for the shipment. Two and only two stops must be provided -- one of type 'ORIGIN' and one of type 'DESTINATION'. Stops of type 'TERMINAL' may be added as the shipment is tracked and they are discovered via capacity provider information. Note that 'TERMINAL' will be ignored if provided as part of a PUT.
curl -i -X POST \ https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/trackedshipments \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "apiConfiguration": { "fallBackToDefaultAccountGroup": true }, "capacityProviderAccountGroup": { "accounts": [ { "code": "string" } ], "code": "string" }, "id": 0, "ltlLegId": "005b127f-bb88-444f-8788-e084b7eeceb3", "masterShipmentId": "2e04ec4a-749a-4ef4-a452-b7dc8cca16aa", "shipmentAttributes": [ { "name": "string", "values": [ "string" ] } ], "shipmentIdentifiers": [ { "primaryForType": true, "source": "CUSTOMER", "type": "PRO", "value": "string" } ], "shipmentStops": [ { "additionalAppointmentWindows": [ { "appointmentStatus": "PENDING", "appointmentWindow": { "endDateTime": "2019-08-24T14:15:22Z", "localTimeZoneIdentifier": "string", "startDateTime": "2019-08-24T14:15:22Z" }, "identifiers": [ { "type": "DOCK", "value": "string" } ], "type": "STRATEGIC" } ], "appointmentWindow": { "endDateTime": "2019-08-24T14:15:22Z", "localTimeZoneIdentifier": "string", "startDateTime": "2019-08-24T14:15:22Z" }, "geoCoordinates": { "latitude": -90, "longitude": -180 }, "id": 0, "involvedParties": [ { "partyIdentifiers": [ { "type": "ACCOUNT", "value": "string" } ] } ], "location": { "address": { "postalCode": "string", "addressLines": [ "str" ], "city": "string", "state": "string", "country": "US" }, "contact": { "companyName": "string", "contactName": "string", "email": "string", "faxNumber": "string", "faxNumberCountryCode": "string", "phoneNumber": "string", "phoneNumber2": "string", "phoneNumber2CountryCode": "string", "phoneNumberCountryCode": "string" } }, "locationIdentifiers": [ { "type": "EXTERNAL", "value": "string" } ], "stopDescription": "string", "stopName": "string", "stopNumber": 0, "stopType": "ORIGIN", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f" } ] }'
{ "infoMessages": [ { … } ], "shipment": { "apiConfiguration": { … }, "capacityProviderAccountGroup": { … }, "id": 0, "ltlLegId": "005b127f-bb88-444f-8788-e084b7eeceb3", "masterShipmentId": "2e04ec4a-749a-4ef4-a452-b7dc8cca16aa", "shipmentAttributes": [ … ], "shipmentIdentifiers": [ … ], "shipmentStops": [ … ] } }
Use this endpoint to update a shipment. To achieve this, this endpoint deletes the current shipment and creates a new shipment on which it will begin tracking. This updates how we track the shipment but will not affect the dispatch with the carrier. Note that you must pass the entire details for the shipment, just as you would on a POST. Note that you only need to update a shipment when the carrier, time, or date has changed.
shipment
The requested capacity provider account group containing the account used for authentication with the capacity provider's API.
The project44-generated id of the LTL shipment. This may be provided when creating a tracked shipment only if a tracked shipment does not exist with this id but a shipment record does exist in project44's system with this id. This enables linking a dispatched shipment that initially failed to track to its tracking information by passing the id from dispatch. This id will always be returned in the shipment confirmation and may be used in subsequent API calls to reference a shipment.
The project44-generated id that is the UUID equivalent of id. The same rules apply to this value as applies to the id.
The project44-generated id that connects multi-leg shipments agnostic of mode.
A user-defined list of shipment identifiers that, with the exception of the EXTERNAL type, can be used to track the shipment with the capacity provider.
A list of the shipment stops for the shipment. Two and only two stops must be provided -- one of type 'ORIGIN' and one of type 'DESTINATION'. Stops of type 'TERMINAL' may be added as the shipment is tracked and they are discovered via capacity provider information. Note that 'TERMINAL' will be ignored if provided as part of a PUT.
curl -i -X PUT \ 'https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/trackedshipments/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "apiConfiguration": { "fallBackToDefaultAccountGroup": true }, "capacityProviderAccountGroup": { "accounts": [ { "code": "string" } ], "code": "string" }, "id": 0, "ltlLegId": "005b127f-bb88-444f-8788-e084b7eeceb3", "masterShipmentId": "2e04ec4a-749a-4ef4-a452-b7dc8cca16aa", "shipmentAttributes": [ { "name": "string", "values": [ "string" ] } ], "shipmentIdentifiers": [ { "primaryForType": true, "source": "CUSTOMER", "type": "PRO", "value": "string" } ], "shipmentStops": [ { "additionalAppointmentWindows": [ { "appointmentStatus": "PENDING", "appointmentWindow": { "endDateTime": "2019-08-24T14:15:22Z", "localTimeZoneIdentifier": "string", "startDateTime": "2019-08-24T14:15:22Z" }, "identifiers": [ { "type": "DOCK", "value": "string" } ], "type": "STRATEGIC" } ], "appointmentWindow": { "endDateTime": "2019-08-24T14:15:22Z", "localTimeZoneIdentifier": "string", "startDateTime": "2019-08-24T14:15:22Z" }, "geoCoordinates": { "latitude": -90, "longitude": -180 }, "id": 0, "involvedParties": [ { "partyIdentifiers": [ { "type": "ACCOUNT", "value": "string" } ] } ], "location": { "address": { "postalCode": "string", "addressLines": [ "str" ], "city": "string", "state": "string", "country": "US" }, "contact": { "companyName": "string", "contactName": "string", "email": "string", "faxNumber": "string", "faxNumberCountryCode": "string", "phoneNumber": "string", "phoneNumber2": "string", "phoneNumber2CountryCode": "string", "phoneNumberCountryCode": "string" } }, "locationIdentifiers": [ { "type": "EXTERNAL", "value": "string" } ], "stopDescription": "string", "stopName": "string", "stopNumber": 0, "stopType": "ORIGIN", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f" } ] }'
{ "infoMessages": [ { … } ], "shipment": { "apiConfiguration": { … }, "capacityProviderAccountGroup": { … }, "id": 0, "ltlLegId": "005b127f-bb88-444f-8788-e084b7eeceb3", "masterShipmentId": "2e04ec4a-749a-4ef4-a452-b7dc8cca16aa", "shipmentAttributes": [ … ], "shipmentIdentifiers": [ … ], "shipmentStops": [ … ] } }
curl -i -X DELETE \ 'https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/trackedshipments/{id}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "httpStatusCode": 0, "httpMessage": "string", "errorMessage": "string", "errors": [ { … } ], "supportReferenceId": "string" }
curl -i -X GET \ 'https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/trackedshipments/{id}/statuses?includeMapUrl=false&includeStatusHistory=false' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
A list of references to images of documents related to the shipment.
System messages and messages from the capacity provider with severity "INFO" or "WARNING". Note that no messages with severity "ERROR" will be returned here.
The most up-to-date statuses of the vehicle in relation to each stop. One and only one status will always be returned for each stop. If the shipment does not have status "COMPLETED", this list will always contain one and only one stop status with a code of either "EN_ROUTE" or "ARRIVED".
{ "imageReferences": [ { … } ], "infoMessages": [ { … } ], "latestStatusUpdate": { "address": { … }, "exceptionDetailCode": "APPOINTMENT_SET", "exceptionSummaryCode": "APPOINTMENT_ISSUE", "retrievalDateTime": "string", "statusCode": "IN_TRANSIT", "statusReason": { … }, "stopId": 0, "stopNumber": 0, "stopType": "ORIGIN", "timestamp": { … } }, "latestStopStatuses": [ { … } ], "mapUrl": "string", "shipment": { "apiConfiguration": { … }, "capacityProviderAccountGroup": { … }, "id": 0, "ltlLegId": "005b127f-bb88-444f-8788-e084b7eeceb3", "masterShipmentId": "2e04ec4a-749a-4ef4-a452-b7dc8cca16aa", "shipmentAttributes": [ … ], "shipmentIdentifiers": [ … ], "shipmentStops": [ … ] }, "statusUpdates": [ { … } ] }
Use this endpoint to return the status of an LTL shipment according to a given identifier value. Note that this endpoint may return multiple shipments if the identifier is used for multiple shipments such as with a pickup number.
Set to "TRUE" if you wish to receive the shipment status history ('statusUpdates') in the response.
The source system that created the identifier.
The type of identifier for which to search.
curl -i -X GET \ 'https://developers.project44.com/_mock/guides/carriers/visibility/ltl/api/api/v4/ltl/trackedshipments/statuses?includeStatusHistory=false&shipmentIdentifier.source=CUSTOMER&shipmentIdentifier.type=PRO&shipmentIdentifier.value=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "infoMessages": [ { … } ], "shipmentStatuses": [ { … } ] }