example-data.com

shipments / #144

orderId
orders/264
carrier
fedex
trackingNumber
L2AMBDVRGG4A6H2T
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/144"
)
shipment = res.json()
{
  "id": 144,
  "orderId": 264,
  "carrier": "fedex",
  "trackingNumber": "L2AMBDVRGG4A6H2T",
  "status": "delivered",
  "shippedAt": "2024-10-02T05:37:22.661Z",
  "deliveredAt": "2024-10-04T22:15:47.417Z",
  "estimatedDeliveryAt": "2024-10-10T20:53:53.065Z",
  "createdAt": "2024-10-02T05:37:22.661Z"
}
Draftbit