example-data.com

shipments / #120

orderId
orders/210
carrier
dhl
trackingNumber
4FWMW8F86J7YKBHA
status
label_created
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/120"
)
shipment = res.json()
{
  "id": 120,
  "orderId": 210,
  "carrier": "dhl",
  "trackingNumber": "4FWMW8F86J7YKBHA",
  "status": "label_created",
  "shippedAt": "2025-06-26T00:45:42.719Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2025-07-04T07:20:24.134Z",
  "createdAt": "2025-06-26T00:45:42.719Z"
}
Draftbit