Skip to main content

mobileShipmentLiveLocation

Requires a customer (portal or buyer app) session.

the courier's live position for one of the buyer's company's shipments (an order shipment or its own return pickup). Null unless CustomerShipment.liveLocationAvailable (always null for an order shipment when the store's customer tracking is below full) — and still null while the carrier has no position. Another company's shipment is not found. Cached 15 s per shipment; poll no faster.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query MobileShipmentLiveLocation($shipmentId: ID!) {
mobileShipmentLiveLocation(shipmentId: $shipmentId) {
carrierName
latitude
longitude
updatedAt
}
}

Variables:

{
"shipmentId": "id"
}

Response:

{
"data": {
"mobileShipmentLiveLocation": {
"carrierName": "string",
"latitude": 0,
"longitude": 0,
"updatedAt": "2025-01-15T00:00:00Z"
}
}
}
mobileShipmentLiveLocation(
shipmentId: ID!
): ShipmentLiveLocation

Arguments​

mobileShipmentLiveLocation.shipmentId ● ID! non-null scalar​

The ID of the shipment.

Type​

ShipmentLiveLocation object​

The courier's last reported position for a shipment on its way (WGS-84 degrees). Read on demand from the carrier and reused for up to 15 seconds.