example-data.com

shipments / #54

orderId
orders/97
carrier
fedex
trackingNumber
04IFN39YETJ056FJ
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/54"
)
shipment = res.json()
{
  "id": 54,
  "orderId": 97,
  "carrier": "fedex",
  "trackingNumber": "04IFN39YETJ056FJ",
  "status": "delivered",
  "shippedAt": "2024-12-18T02:28:56.375Z",
  "deliveredAt": "2024-12-20T21:40:58.099Z",
  "estimatedDeliveryAt": "2024-12-27T15:43:07.373Z",
  "createdAt": "2024-12-18T02:28:56.375Z"
}
Draftbit