example-data.com

shipments / #154

orderId
orders/301
carrier
usps
trackingNumber
WJFD7DFGDFKGN57F
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/154"
)
shipment = res.json()
{
  "id": 154,
  "orderId": 301,
  "carrier": "usps",
  "trackingNumber": "WJFD7DFGDFKGN57F",
  "status": "delivered",
  "shippedAt": "2024-12-17T17:39:26.672Z",
  "deliveredAt": "2024-12-20T11:42:03.139Z",
  "estimatedDeliveryAt": "2024-12-22T07:26:34.645Z",
  "createdAt": "2024-12-17T17:39:26.672Z"
}
Draftbit