example-data.com

shipments / #77

orderId
orders/133
carrier
usps
trackingNumber
50TMV966X2VYK9NY
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/77"
)
shipment = res.json()
{
  "id": 77,
  "orderId": 133,
  "carrier": "usps",
  "trackingNumber": "50TMV966X2VYK9NY",
  "status": "delivered",
  "shippedAt": "2024-12-30T19:44:36.204Z",
  "deliveredAt": "2025-01-04T02:20:41.448Z",
  "estimatedDeliveryAt": "2025-01-02T06:12:25.807Z",
  "createdAt": "2024-12-30T19:44:36.204Z"
}
Draftbit