shipments #471
- orderId
- orders/878
- carrier
- fedex
- trackingNumber
- HL2P8U0BNAC668CQ
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #471
#471
#471
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/471" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/471" ); const shipment = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/shipments.d.ts https://example-data.com/types/shipments.d.ts
import type { Shipment } from "./types/shipments";
const res = await fetch(
"https://example-data.com/api/v1/shipments/471"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/471"
)
shipment = res.json() Response
{
"id": 471,
"orderId": 878,
"carrier": "fedex",
"trackingNumber": "HL2P8U0BNAC668CQ",
"status": "delivered",
"shippedAt": "2025-01-25T22:08:22.390Z",
"deliveredAt": "2025-01-30T10:10:19.898Z",
"estimatedDeliveryAt": "2025-02-03T15:16:33.178Z",
"createdAt": "2025-01-25T22:08:22.390Z"
}