example-data.com

shipments / #163

orderId
orders/313
carrier
fedex
trackingNumber
PTOVD8U3BFPVRFQN
status
out_for_delivery
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/shipments/163"
)
shipment = res.json()
{
  "id": 163,
  "orderId": 313,
  "carrier": "fedex",
  "trackingNumber": "PTOVD8U3BFPVRFQN",
  "status": "out_for_delivery",
  "shippedAt": "2024-06-16T23:59:06.438Z",
  "deliveredAt": null,
  "estimatedDeliveryAt": "2024-06-23T19:07:12.590Z",
  "createdAt": "2024-06-16T23:59:06.438Z"
}
Draftbit