example-data.com

shipments / #210

orderId
orders/405
carrier
usps
trackingNumber
M0GV87Q0FXUEUR7P
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/210"
)
shipment = res.json()
{
  "id": 210,
  "orderId": 405,
  "carrier": "usps",
  "trackingNumber": "M0GV87Q0FXUEUR7P",
  "status": "delivered",
  "shippedAt": "2024-07-27T14:38:57.125Z",
  "deliveredAt": "2024-08-01T23:27:32.604Z",
  "estimatedDeliveryAt": "2024-08-06T10:32:20.966Z",
  "createdAt": "2024-07-27T14:38:57.125Z"
}
Draftbit