shipments #18
- orderId
- orders/33
- carrier
- fedex
- trackingNumber
- LBWI97UDI0B79DT2
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #18
#18
#18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/18" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/18" ); 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/18"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/18"
)
shipment = res.json() Response
{
"id": 18,
"orderId": 33,
"carrier": "fedex",
"trackingNumber": "LBWI97UDI0B79DT2",
"status": "delivered",
"shippedAt": "2025-01-12T10:04:25.902Z",
"deliveredAt": "2025-01-20T07:39:37.550Z",
"estimatedDeliveryAt": "2025-01-21T23:03:59.300Z",
"createdAt": "2025-01-12T10:04:25.902Z"
}