shipments #21
- orderId
- orders/38
- carrier
- fedex
- trackingNumber
- PUI3IXDVRS7TLC50
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #21
#21
#21
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/21" ); 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/21"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/21"
)
shipment = res.json() Response
{
"id": 21,
"orderId": 38,
"carrier": "fedex",
"trackingNumber": "PUI3IXDVRS7TLC50",
"status": "delivered",
"shippedAt": "2025-11-16T12:09:29.045Z",
"deliveredAt": "2025-11-20T15:49:03.645Z",
"estimatedDeliveryAt": "2025-11-18T19:01:14.818Z",
"createdAt": "2025-11-16T12:09:29.045Z"
}