example-data.com

shipments / #151

orderId
orders/291
carrier
usps
trackingNumber
ERXJEWD22L6ZM8DW
status
in_transit
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/151"
)
shipment = res.json()
{
  "id": 151,
  "orderId": 291,
  "carrier": "usps",
  "trackingNumber": "ERXJEWD22L6ZM8DW",
  "status": "in_transit",
  "shippedAt": "2025-02-21T04:09:12.954Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2025-02-27T10:09:34.992Z",
  "createdAt": "2025-02-21T04:09:12.954Z"
}
Draftbit