shipments / #178
- orderId
- orders/338
- carrier
- usps
- trackingNumber
- 1MARVVGVG4R5P7X4
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#178
#178
Small
shipments/178 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/178" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/178"
);
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/178"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/178"
)
shipment = res.json() {
"id": 178,
"orderId": 338,
"carrier": "usps",
"trackingNumber": "1MARVVGVG4R5P7X4",
"status": "delivered",
"shippedAt": "2024-07-03T19:33:59.809Z",
"deliveredAt": "2024-07-05T20:00:20.859Z",
"estimatedDeliveryAt": "2024-07-05T20:19:36.883Z",
"createdAt": "2024-07-03T19:33:59.809Z"
}