shipments / #15
- orderId
- orders/23
- carrier
- dhl
- trackingNumber
- OL4YS1WORKJQNP3P
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Component variants
Medium
#15
#15
Small
shipments/15 Related
References
curl -sS \
"https://example-data.com/api/v1/shipments/15" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/shipments/15"
);
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/15"
);
const shipment = (await res.json()) as Shipment;import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/15"
)
shipment = res.json() {
"id": 15,
"orderId": 23,
"carrier": "dhl",
"trackingNumber": "OL4YS1WORKJQNP3P",
"status": "label_created",
"shippedAt": "2024-06-17T02:11:53.150Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-06-24T09:03:30.177Z",
"createdAt": "2024-06-17T02:11:53.150Z"
}