shipments / #237
- orderId
- orders/455
- carrier
- usps
- trackingNumber
- Z9JFBUJJ7RYNCLLS
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#237
#237
Small
shipments/237 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/237" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/237"
);
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/237"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/237"
)
shipment = res.json() {
"id": 237,
"orderId": 455,
"carrier": "usps",
"trackingNumber": "Z9JFBUJJ7RYNCLLS",
"status": "in_transit",
"shippedAt": "2024-06-26T14:32:09.411Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-07-05T15:38:36.630Z",
"createdAt": "2024-06-26T14:32:09.411Z"
}