shipments / #3
- orderId
- orders/4
- carrier
- dhl
- trackingNumber
- OTDSCATXF6H97X39
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#3
#3
Small
shipments/3 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/3" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/3"
);
const shipment = await res.json();import type { Shipment } from "https://example-data.com/types/shipments.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/shipments/3"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/3"
)
shipment = res.json() {
"id": 3,
"orderId": 4,
"carrier": "dhl",
"trackingNumber": "OTDSCATXF6H97X39",
"status": "in_transit",
"shippedAt": "2025-03-13T05:23:33.639Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2025-03-21T07:42:55.968Z",
"createdAt": "2025-03-13T05:23:33.639Z"
}