example-data.com

shipments / #64

orderId
orders/114
carrier
ups
trackingNumber
D9BTPA6O72H8F9MK
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/64"
)
shipment = res.json()
{
  "id": 64,
  "orderId": 114,
  "carrier": "ups",
  "trackingNumber": "D9BTPA6O72H8F9MK",
  "status": "delivered",
  "shippedAt": "2024-05-29T03:17:33.607Z",
  "deliveredAt": "2024-05-31T18:30:13.936Z",
  "estimatedDeliveryAt": "2024-06-03T13:20:47.655Z",
  "createdAt": "2024-05-29T03:17:33.607Z"
}
Draftbit