shipments / #160
- orderId
- orders/310
- carrier
- ups
- trackingNumber
- 1YGNY14WUN4PTH6F
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#160
#160
Small
shipments/160 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/160" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/160"
);
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/160"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/160"
)
shipment = res.json() {
"id": 160,
"orderId": 310,
"carrier": "ups",
"trackingNumber": "1YGNY14WUN4PTH6F",
"status": "delivered",
"shippedAt": "2024-07-31T00:30:09.969Z",
"deliveredAt": "2024-08-03T17:30:46.780Z",
"estimatedDeliveryAt": "2024-08-04T13:53:41.790Z",
"createdAt": "2024-07-31T00:30:09.969Z"
}