shipments / #2
- orderId
- orders/2
- carrier
- usps
- trackingNumber
- 5J0H393CNWAFLF4B
- status
- out_for_delivery
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#2
#2
Small
shipments/2 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/2"
);
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/2"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/2"
)
shipment = res.json() {
"id": 2,
"orderId": 2,
"carrier": "usps",
"trackingNumber": "5J0H393CNWAFLF4B",
"status": "out_for_delivery",
"shippedAt": "2025-02-21T09:27:53.696Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2025-03-01T14:23:31.141Z",
"createdAt": "2025-02-21T09:27:53.696Z"
}