Freight
get events
The list mirrors the timeline on the public tracking page of the shipment (same rows and titles), oldest first.
Event names
| Value | Description |
|---|---|
| needCarrier | Shipment was created ("Order received") - need to assign carrier. |
| booked | Carrier was assigned to the shipment ("Order proceeded"). |
| dispatched | The driver/vehicle has started for pickup location. |
| arrivedAtPickup | The driver/vehicle has arrived at pickup location. |
| pickupSuccessful | The shipment was loaded in the vehicle. |
| pickupFailed | Pickup task failed. |
| inRouteToDropoff | The driver/vehicle has started for dropoff location (out for delivery). |
| arrivedAtDropoff | The driver/vehicle has arrived at dropoff location. |
| dropoffSuccessful | The shipment was delivered successfully. |
| dropoffFailed | Dropoff task failed. |
| complete | The shipment is completed (delivered or disposed). |
| returnInitiated | Return task was created. |
| inRouteToReturn | The driver/vehicle has started for return location. |
| arrivedAtReturn | The driver/vehicle has arrived at return location. |
| returned | The shipment was returned successfully. |
| canceled | The shipment was canceled. |
| inRouteToWareHouse | The shipment is in route to a warehouse (cross-dock). |
| arrivedAtWareHouse | The shipment arrived at a warehouse (cross-dock). |
| departedFromWarehouse | The shipment departed from a warehouse (cross-dock). |
| inTransit | In transit between stops / cross-dock facilities. |
| receivedAtFacility | Received at a cross-dock facility. |
| departedFacility | Departed a cross-dock facility (titled "Out for delivery" when it is the last one before the final dropoff). |
| failedAtFacility | Processing at a cross-dock facility failed. |
| requireAppointmentAtPickup | The pickup location requires an appointment. |
| requireAppointmentAtDelivery | The delivery location requires an appointment. |
| updateAppointmentTimeAtPickup | The pickup appointment info was updated (see details.appointmentInfo). |
| updateAppointmentTimeAtDelivery | The delivery appointment info was updated (see details.appointmentInfo). |
| appointmentConfirmationSentAtPickup | Pickup appointment confirmation was sent. |
| appointmentConfirmationSentAtDelivery | Delivery appointment confirmation was sent. |
| appointmentCanceledAtPickup | Pickup appointment was canceled. |
| appointmentCanceledAtDelivery | Delivery appointment was canceled. |
| appointmentCancellationSentAtPickup | Pickup appointment cancellation notice was sent. |
| appointmentCancellationSentAtDelivery | Delivery appointment cancellation notice was sent. |
| appointmentRequestUnansweredAtPickup | Pickup appointment request got no answer. |
| appointmentRequestUnansweredAtDelivery | Delivery appointment request got no answer. |
| appointmentRequestSendFailedAtPickup | Pickup appointment request could not be sent. |
| appointmentRequestSendFailedAtDelivery | Delivery appointment request could not be sent. |
get/freights/events/{shipmentId}
Request
- Base URL: https://stg.wearewarp.com/api/v1
- URL: https://stg.wearewarp.com/api/v1/freights/events/{shipmentId}
- Auth: API key in header apikey
Path parameters
shipmentIdstring required
Example:01H3W51F7FEC42MFZAXJQTG4CY
Id of the shipment. The shipment code (e.g. S-00524-2635) is accepted as well.
Response
successful operation
Example response
{
"data": [
{
"message": "The shipment was created",
"when": "2023-07-09T23:23:24.989Z",
"createdWhen": "2023-07-09T23:23:24.989Z",
"eventName": "needCarrier"
},
{
"message": "The pickup location requires Appointment.",
"when": "2023-07-09T23:23:24.992Z",
"createdWhen": "2023-07-09T23:23:24.992Z",
"eventName": "requireAppointmentAtPickup"
},
{
"message": "The delivery location requires Appointment.",
"when": "2023-07-09T23:23:24.992Z",
"createdWhen": "2023-07-09T23:23:24.992Z",
"eventName": "requireAppointmentAtDelivery"
},
{
"message": "The pickup appointment Info was updated.",
"when": "2023-07-09T23:23:37.695Z",
"createdWhen": "2023-07-09T23:23:37.695Z",
"eventName": "updateAppointmentTimeAtPickup",
"details": {
"appointmentInfo": {
"from": "2023-07-10T11:04:33.000Z",
"to": "2023-07-10T12:23:35.000Z"
}
}
},
{
"message": "The delivery appointment Info was updated.",
"when": "2023-07-09T23:23:51.202Z",
"createdWhen": "2023-07-09T23:23:51.202Z",
"eventName": "updateAppointmentTimeAtDelivery",
"details": {
"appointmentInfo": {
"from": "2023-07-13T08:23:45.000Z",
"to": "2023-07-13T10:23:49.000Z"
}
}
},
{
"message": "In Route to Pickup location",
"when": "2023-07-09T23:33:45.790Z",
"createdWhen": "2023-07-09T23:33:45.790Z",
"eventName": "dispatched"
},
{
"message": "Driver arrived at pickup location",
"when": "2023-07-10T00:22:33.918Z",
"createdWhen": "2023-07-10T00:22:33.918Z",
"eventName": "arrivedAtPickup"
},
{
"message": "Pickup successful",
"when": "2023-07-10T00:22:42.491Z",
"createdWhen": "2023-07-10T00:22:42.491Z",
"eventName": "pickupSuccessful"
},
{
"message": "Pickup Appointment Confirmation Sent",
"when": "2023-07-10T00:30:00.000Z",
"createdWhen": "2023-07-10T00:30:00.000Z",
"eventName": "appointmentConfirmationSentAtPickup",
"details": {
"appointmentInfo": {
"from": "2023-07-10T11:04:33.000Z",
"to": "2023-07-10T12:23:35.000Z"
}
}
},
{
"message": "Delivery Appointment Canceled",
"when": "2023-07-10T03:10:00.000Z",
"createdWhen": "2023-07-10T03:10:00.000Z",
"eventName": "appointmentCanceledAtDelivery"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.