example-data.com

shipments / #111

orderId
orders/197
carrier
ups
trackingNumber
NC02TYUPYJZG0PE7
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/111"
)
shipment = res.json()
{
  "id": 111,
  "orderId": 197,
  "carrier": "ups",
  "trackingNumber": "NC02TYUPYJZG0PE7",
  "status": "delivered",
  "shippedAt": "2024-08-19T13:56:20.586Z",
  "deliveredAt": "2024-08-23T16:02:09.269Z",
  "estimatedDeliveryAt": "2024-08-27T17:03:15.106Z",
  "createdAt": "2024-08-19T13:56:20.586Z"
}
Draftbit