Get information about a Stop

SecurityAuthToken
Request
path Parameters
shipmentId
required
string <uuid>

The id of the shipment

stopId
required
string <uuid>

The id of the stop

header Parameters
X-Company-Id
string

allows request to retrieve information about the company given in the header instead of the company associated with the requesting user

Responses
200

Successfully returned a Stop

Response Schema: application/json
Array of objects (Accessorial)
Array of objects (StopAlert)
appointment_needed
boolean
object (AppointmentType)
object (StopAppointmentWindow)

Stop Appointment Window Information

object (ETAWindow)
confirmed_arrival_at
string or null <date-time>

Optional of when the driver first arrived at the Stop

confirmed_departure_at
string or null <date-time>

Optional of when the Stop was departed

created_at
string or null <date-time>
object (StopCustomData)

Custom data for Stop

display_eta_window
string or null
display_planned_window
string or null
display_schedule
string or null
eta_overridden_by
string or null <uuid>

ID of user who marked ETA as overridden, if exists

id
required
string <uuid>
instructions
string or null
internal_notes
string or null
is_completed
boolean

Whether or not the Stop was completed

is_dropoff
required
boolean
is_pickup
required
boolean
required
object (StopLocation)
ordinal_index
required
integer <int32>
planned_date
string or null

Planned date of the stop, in string of the form YYYY-MM-DD. Single-day legacy form of planning_window; see StopPlanningWindow for how the two are kept in sync.

planned_time_window_end
string or null <time>

End of the planned time window, in the stop's local time. Legacy form of planning_window.end; see StopPlanningWindow.

planned_time_window_start
string or null <time>

Start of the planned time window, in the stop's local time. Legacy form of planning_window.start; see StopPlanningWindow.

object (StopPlanningWindow)

When the stop is planned to happen. The window can span several days. It replaces planned_date, planned_time_window_start and planned_time_window_end, which stay on the stop as its single-day legacy form.

Writes. Accepted on POST /shipments/{shipmentId}/stops/, PUT /shipments/{shipmentId}/stops/{stopId}/, and on each item of stops in POST /shipments/ and PUT /shipments/{shipmentId}/ (an item with the id of an existing stop updates it, any other item creates a stop). Other endpoints whose request bodies embed a stop, such as PUT /quoting/spotnegotiations/spot-negotiations/{spotNegotiationId}/ and PUT /shipments/pickups/{shipmentPickupId}/, are not covered by these rules. How a write is applied depends on whether multi-day planning windows are enabled for the company that created the shipment. They are being enabled company by company and are disabled by default.

Request carries Disabled, new stop Disabled, existing stop Enabled
planning_window only Stored as sent. The legacy fields stay empty. Ignored. Stored. The legacy fields are derived from it.
Legacy fields only Stored. No window is derived. Stored. The window is left as it was, even if it no longer matches. Stored. The window is derived from them.
Both Both stored as sent, not checked against each other. The legacy fields are stored, the window is ignored. Whichever of the two differs from what the stop stores is applied, and the other is derived from it. When both differ, the window wins.

While disabled, send the legacy fields with every write: they remain the source of truth for scheduling and rating.

When enabled

  • Precedence compares the window and the legacy fields with what the stop already stores, and either one sent unchanged counts as not sent. So re-sending the stored window together with changed legacy fields applies the legacy fields and derives a new window from them. When both differ from the stored values, as they always do on a new stop, the window wins.
  • Derivations use the stop's timezone: location.address.timezone, else the timezone of the address coordinates, else UTC.
  • Legacy from window: planned_time_window_start and planned_time_window_end take the local times of start and end, with one exception: on the first stop, a window spanning more than one night that closes earlier in the day than it opens stores planned_time_window_end as 23:59:59 (on other stops both times are kept, so the end time is earlier than the start time). planned_date is the day the window opens when it closes the same day or is an overnight window (closes the next day, earlier in the day than it opened). For a longer window it is the opening day on the first stop and the closing day on every other stop.
  • Window from legacy: opens on planned_date at planned_time_window_start (00:00 when empty) and closes at planned_time_window_end, on the next day when that time is earlier than the start (next day at 00:00 when empty). Sending planned_date as null on a stop that has one clears the window.
  • {"start": null, "end": null} clears a stored window. Legacy fields sent in the same request, changed or not, are kept and the window is derived from them; otherwise the legacy schedule is cleared too. On a stop with no stored window it counts as not sent. Sending one stored side as null clears that side and its legacy time, unless that legacy time is sent in the same request, in which case the side is rebuilt from it.
  • When the request is made by a company other than the one that created the shipment, legacy fields in the request are ignored and only planning_window is applied.

Validation (HTTP 400, ShipwellError body)

  • When planning_window is sent, both start and end must be present; either can be null. planning_window: null is rejected. Example: field_errors.planning_window.end: ["This field is required."].

  • start equal to end is accepted.

  • end before start: when enabled, rejected with field_errors.planning_window: ["Planning window end time cannot be before start time."] (nested under field_errors.stops on the shipment endpoints). When disabled, accepted by the stop endpoints and rejected by the shipment endpoints with non_field_errors: ["The <location_name> stop planning window start and end are invalid."].

  • Shipment endpoints, whether enabled or not: stops are checked in ordinal_index order on the values sent in the request, and a stop is rejected with non_field_errors: ["The <location_name> stop is scheduled before the <location_name> stop"] when

    • its planned_date is earlier than the planned_date of the closest earlier stop that has one, or
    • its window date is earlier than the window date of the closest earlier stop that has one. The window date is the UTC date of start, or of end when start is null, so stops in different timezones are compared on UTC dates, not local ones.

    Stops that carry only planned_date or only a window are also compared with each other, each on the date it has.

Reads. start and end are always returned, in UTC, and are null when not set.

object (ETAWindow)
sequence_number
integer <int32>
status
string or null
Enum: "AT_STOP" "CANCELLED" "DEPARTED" "EN_ROUTE"
status_reason_code
string or null
Enum: "ACCIDENT" "ADDRESS_CORRECTED_DELIVERY_ATTEMPTED" "ALTERNATE_CARRIER_DELIVERED" "ALTERNATE_CARRIER_PICKED_UP" "AWAITING_EXPORT" "AWAITING_IMPORT" "BORDER_CLEARANCE" "CARRIER_DISPATCH_ERROR" "CARRIER_KEYING_ERROR" "CARRIER_RELATED" "CARTAGE_AGENT" "CASH_NOT_AVAILABLE_FROM_CONSIGNEE" "CIVIL_EVENT" "COLLECT_ON_DELIVERY_REQUIRED" "CONSIGNEE_CLOSED" "CONSIGNEE_RELATED" "CONTAMINATED" "CREDIT_HOLD" "CUSTOMER_REQUESTED_DIFFERENT_DELIVERY_WINDOW" "CUSTOMER_REQUESTED_FUTURE_DELIVERY" "CUSTOMER_STRIKE" "CUSTOMER_VACATION" "CUSTOMER_WANTED_EARLIER_DELIVERY" "CUSTOMS_DOCUMENTATION_PROBLEM" "DAMAGED" "DELIVERY_SHORTAGE" "DRIVER_NOT_AVAILABLE" "DRIVER_RELATED" "EQUIPMENT_SHORTAGE" "EQUIPMENT_VOLUME_NOT_AVAILABLE" "EXCEEDS_SERVICE_LIMITATIONS" "FAILED_TO_RELEASE_BILLING" "FLATCAR_SHORTAGE" "HELD_FOR_CONSIGNEE" "HELD_FOR_FULL_CARRIER_LOAD" "HELD_FOR_PAYMENT" "HELD_FOR_PROTECTIVE_SERVICE" "HELD_PENDING_APPOINTMENT" "HELD_PER_SHIPPER" "HOLIDAY_CLOSED" "HOURS_OF_SERVICE_LIMIT" "IMPROPER_FACILITY_OR_EQUIPMENT" "IMPROPER_INTERNATIONAL_PAPERWORK" "IMPROPER_TEMPERATURE" "INCONSISTENT_WEIGHT" "INCORRECT_ADDRESS" "INDIRECT_DELIVERY" "INSUFFICIENT_DELIVERY_TIME" "INSUFFICIENT_PICKUP_TIME" "INSUFFICIENT_TRAVEL_TIME_DETECTED" "INTERNATIONAL_NON_CARRIER_DELAY" "LATE_TENDER_DISPATCH" "LOCATION_CHANGE" "LOAD_SHIFTED" "MECHANICAL_BREAKDOWN" "MIS_SORT" "MISSED_DELIVERY" "MISSED_PICK-UP" "MISSING_DOCUMENTS" "NON_EXPRESS_CLEARANCE_DELAY" "NORMAL_APPOINTMENT" "NORMAL_STATUS" "NO_APPOINTMENT_SCHEDULED" "NO_REQUESTED_ARRIVAL_DATE_OR_TIME" "NO_REQUESTED_ARRIVAL_TIME_PROVIDED_BY_SHIPPER" "OTHER" "PAST_CUT_OFF_TIME" "PREARRANGED_APPOINTMENT" "PREVIOUS_STOP" "PROCESSING_DELAY" "PRODUCTION_FALLDOWN" "RAILROAD_FAILED_TO_MEET_SCHEDULE" "RECIPIENT_UNAVAILABLE" "RECONSIGNED" "RECEIVING_TIME_RESTRICTED" "REFUSED_BY_CUSTOMER" "RESTRICTED_ARTICLES_UNACCEPTABLE" "RETURNED_TO_SHIPPER" "ROAD_CONDITIONS" "SHIPMENT_OVERWEIGHT" "SHIPPER_RELATED" "SUSPENDED_AT_CUSTOMER_REQUEST" "TRACKING_EVENT_AUTOMATED_CALL" "TRACKING_EVENT_EDI_UPDATE" "TRACKING_EVENT_ELD_UPDATE" "TRACKING_EVENT_GEOFENCE_BREACH" "TRACKING_EVENT_MANUAL_LOCATION_UPDATED" "TRACKING_EVENT_MOBILE_APP" "TRACKING_EVENT_MOBILE_APP_UPDATED_BY_DRIVER" "TRACTOR_CONVENTIONAL_NOT_AVAILABLE" "TRACTOR_WITH_SLEEPER_CAR_NOT_AVAILABLE" "TRAILER_CLASS_NOT_AVAILABLE" "TRAILER_NOT_AVAILABLE" "TRAILER_NOT_USABLE_DUE_TO_PRIOR_PRODUCT" "TRAIN_DERAILMENT" "TRAP_FOR_CUSTOMER" "UNABLE_TO_CONTACT_RECIPIENT" "UNABLE_TO_LOCATE" "UNKNOWN" "WAITING_FOR_CUSTOMER_PICKUP" "WAITING_FOR_CUSTOMER_SPECIFIED_CARRIER" "WAITING_INSPECTION" "WAITING_SHIPPING_INSTRUCTIONS" "WEATHER_OR_NATURAL_DISASTER"
trip_management_eta
string or null <date-time>
trip_management_eta_last_updated
string or null <date-time>
unconfirmed_arrival_at
string or null <date-time>

Read-only. Geofence arrival time

unconfirmed_departure_at
string or null <date-time>

Read-only. Geofence departure time

updated_at
string or null <date-time>
default

Default error response

get/shipments/{shipmentId}/stops/{stopId}/
Request samples
Response samples
application/json
{
  • "accessorials": [
    ],
  • "alerts": [
    ],
  • "appointment_needed": true,
  • "appointment_type": {
    },
  • "appointment_window": {
    },
  • "carrier_specified_eta": {
    },
  • "confirmed_arrival_at": "2019-08-24T14:15:22Z",
  • "confirmed_departure_at": "2019-08-24T14:15:22Z",
  • "created_at": "2019-08-24T14:15:22Z",
  • "custom_data": {
    },
  • "display_eta_window": "string",
  • "display_planned_window": "string",
  • "display_schedule": "string",
  • "eta_overridden_by": "42d07ec7-3b78-426f-8b1b-ad95f5bf150e",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "instructions": "string",
  • "internal_notes": "string",
  • "is_completed": true,
  • "is_dropoff": true,
  • "is_pickup": true,
  • "location": {
    },
  • "ordinal_index": 0,
  • "planned_date": "string",
  • "planned_time_window_end": "14:15:22Z",
  • "planned_time_window_start": "14:15:22Z",
  • "planning_window": {
    },
  • "predictive_model_eta": {
    },
  • "sequence_number": 0,
  • "status": "AT_STOP",
  • "status_reason_code": "ACCIDENT",
  • "trip_management_eta": "2019-08-24T14:15:22Z",
  • "trip_management_eta_last_updated": "2019-08-24T14:15:22Z",
  • "unconfirmed_arrival_at": "2019-08-24T14:15:22Z",
  • "unconfirmed_departure_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}
Copyright © Shipwell 2025. All right reserved.