shipments / #123
- orderId
- orders/221
- carrier
- dhl
- trackingNumber
- XWNX1C4A7L9DIKUK
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#123
#123
Small
shipments/123 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/123" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/123"
);
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/123"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/123"
)
shipment = res.json() {
"id": 123,
"orderId": 221,
"carrier": "dhl",
"trackingNumber": "XWNX1C4A7L9DIKUK",
"status": "in_transit",
"shippedAt": "2024-10-13T01:08:11.118Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-10-19T21:51:30.908Z",
"createdAt": "2024-10-13T01:08:11.118Z"
}