Skip to content

GetShipment

ShipmentService · Unary

Retrieve a shipment and its most recent carrier event.

See Track a shipment for the complete workflow.

rpc GetShipment(GetShipmentRequest) returns (GetShipmentResponse);
POST http://localhost:8080/shipping.v1.ShipmentService/GetShipment

Content types: application/json or application/proto. The unary body is one message.

No side effects is declared in the schema. GET availability depends on the deployed server configuration.

See protocol behavior for metadata, deadlines, errors, cancellation, and streaming.

The local example server returns this shipment. An empty identifier returns invalid_argument.

{
"shipmentId": "shp_123",
"includeEvents": true
}
Terminal window
curl --fail-with-body \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"shipmentId": "shp_123",
"includeEvents": true
}' \
'http://localhost:8080/shipping.v1.ShipmentService/GetShipment'
{
"shipment": {
"shipmentId": "shp_123",
"status": "SHIPMENT_STATUS_IN_TRANSIT",
"weightMg": "450000",
"createdAt": "2026-10-31T12:00:00Z",
"metadata": {
"order": "ord_456"
},
"streetAddress": "417 Example Street",
"estimatedTransit": "172800s"
}
}

shipment_id is required


Source: fixture-v1 · Generator: Wirelit 0.1.0