example-data.com

shipments / #88

orderId
orders/151
carrier
dhl
trackingNumber
KE4W9GXPLY2RRVIL
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

curl -sS \
  "https://example-data.com/api/v1/shipments/88" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/shipments/88"
);
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/88"
);
const shipment = (await res.json()) as Shipment;
import requests

res = requests.get(
    "https://example-data.com/api/v1/shipments/88"
)
shipment = res.json()
{
  "id": 88,
  "orderId": 151,
  "carrier": "dhl",
  "trackingNumber": "KE4W9GXPLY2RRVIL",
  "status": "delivered",
  "shippedAt": "2025-01-13T07:08:41.936Z",
  "deliveredAt": "2025-01-17T15:23:23.937Z",
  "estimatedDeliveryAt": "2025-01-15T21:43:54.972Z",
  "createdAt": "2025-01-13T07:08:41.936Z"
}
Draftbit