example-data.com

shipments / #165

orderId
orders/317
carrier
ups
trackingNumber
PV8IQBSPHCW1JM2E
status
in_transit
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/165"
)
shipment = res.json()
{
  "id": 165,
  "orderId": 317,
  "carrier": "ups",
  "trackingNumber": "PV8IQBSPHCW1JM2E",
  "status": "in_transit",
  "shippedAt": "2024-12-04T19:55:06.423Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2024-12-09T19:30:24.844Z",
  "createdAt": "2024-12-04T19:55:06.423Z"
}
Draftbit