shipments #203
- orderId
- orders/398
- carrier
- fedex
- trackingNumber
- 0ZUP9ZHW4Z71PUC7
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #203
#203
#203
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/203" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/203" ); 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/203"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/203"
)
shipment = res.json() Response
{
"id": 203,
"orderId": 398,
"carrier": "fedex",
"trackingNumber": "0ZUP9ZHW4Z71PUC7",
"status": "delivered",
"shippedAt": "2025-03-30T05:23:26.966Z",
"deliveredAt": "2025-04-01T10:18:48.434Z",
"estimatedDeliveryAt": "2025-04-05T01:14:39.765Z",
"createdAt": "2025-03-30T05:23:26.966Z"
}