example-data.com

shipments / #220

orderId
orders/426
carrier
usps
trackingNumber
IM7MDHLK8578R56V
status
out_for_delivery
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/220"
)
shipment = res.json()
{
  "id": 220,
  "orderId": 426,
  "carrier": "usps",
  "trackingNumber": "IM7MDHLK8578R56V",
  "status": "out_for_delivery",
  "shippedAt": "2025-04-09T12:00:13.077Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2025-04-16T00:59:51.809Z",
  "createdAt": "2025-04-09T12:00:13.077Z"
}
Draftbit