example-data.com

shipments / #42

orderId
orders/79
carrier
fedex
trackingNumber
ZV2CK7L3XYUWZASK
status
label_created
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/42"
)
shipment = res.json()
{
  "id": 42,
  "orderId": 79,
  "carrier": "fedex",
  "trackingNumber": "ZV2CK7L3XYUWZASK",
  "status": "label_created",
  "shippedAt": "2024-06-03T13:01:20.570Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2024-06-08T14:38:34.817Z",
  "createdAt": "2024-06-03T13:01:20.570Z"
}
Draftbit