example-data.com

shipments / #36

orderId
orders/68
carrier
fedex
trackingNumber
H6BLOF2O7XJL578Q
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/36"
)
shipment = res.json()
{
  "id": 36,
  "orderId": 68,
  "carrier": "fedex",
  "trackingNumber": "H6BLOF2O7XJL578Q",
  "status": "delivered",
  "shippedAt": "2024-12-26T21:00:09.033Z",
  "deliveredAt": "2025-01-02T09:33:15.587Z",
  "estimatedDeliveryAt": "2024-12-30T09:01:25.232Z",
  "createdAt": "2024-12-26T21:00:09.033Z"
}
Draftbit