example-data.com

shipments / #16

orderId
orders/24
carrier
fedex
trackingNumber
P828L1WK9NLJ1YLD
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/16"
)
shipment = res.json()
{
  "id": 16,
  "orderId": 24,
  "carrier": "fedex",
  "trackingNumber": "P828L1WK9NLJ1YLD",
  "status": "delivered",
  "shippedAt": "2024-11-02T01:21:14.789Z",
  "deliveredAt": "2024-11-09T15:18:53.932Z",
  "estimatedDeliveryAt": "2024-11-06T14:43:51.947Z",
  "createdAt": "2024-11-02T01:21:14.789Z"
}
Draftbit