shipments / #238
- orderId
- orders/456
- carrier
- ups
- trackingNumber
- J2RUQQ3I60E1PHF3
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#238
#238
Small
shipments/238 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/238" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/238"
);
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/238"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/238"
)
shipment = res.json() {
"id": 238,
"orderId": 456,
"carrier": "ups",
"trackingNumber": "J2RUQQ3I60E1PHF3",
"status": "delivered",
"shippedAt": "2024-07-16T17:32:00.364Z",
"deliveredAt": "2024-07-23T08:43:13.042Z",
"estimatedDeliveryAt": "2024-07-25T14:26:34.117Z",
"createdAt": "2024-07-16T17:32:00.364Z"
}