example-data.com

shipments / #227

orderId
orders/438
carrier
ups
trackingNumber
VJGAECB0RPDQORFA
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/227"
)
shipment = res.json()
{
  "id": 227,
  "orderId": 438,
  "carrier": "ups",
  "trackingNumber": "VJGAECB0RPDQORFA",
  "status": "delivered",
  "shippedAt": "2024-09-04T07:11:47.942Z",
  "deliveredAt": "2024-09-10T23:34:12.046Z",
  "estimatedDeliveryAt": "2024-09-10T05:29:20.749Z",
  "createdAt": "2024-09-04T07:11:47.942Z"
}
Draftbit