example-data.com

shipments / #53

orderId
orders/95
carrier
ups
trackingNumber
CQZ55ZH4I9HOK188
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/53"
)
shipment = res.json()
{
  "id": 53,
  "orderId": 95,
  "carrier": "ups",
  "trackingNumber": "CQZ55ZH4I9HOK188",
  "status": "delivered",
  "shippedAt": "2025-02-26T20:49:55.121Z",
  "deliveredAt": "2025-03-03T09:53:23.687Z",
  "estimatedDeliveryAt": "2025-03-06T16:02:55.502Z",
  "createdAt": "2025-02-26T20:49:55.121Z"
}
Draftbit