shipments #458
- orderId
- orders/848
- carrier
- ups
- trackingNumber
- 2Z8K1ZACZJ1A6VVQ
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #458
#458
#458
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/458" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/458" ); 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/458"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/458"
)
shipment = res.json() Response
{
"id": 458,
"orderId": 848,
"carrier": "ups",
"trackingNumber": "2Z8K1ZACZJ1A6VVQ",
"status": "delivered",
"shippedAt": "2025-05-09T23:55:47.785Z",
"deliveredAt": "2025-05-15T18:54:10.093Z",
"estimatedDeliveryAt": "2025-05-13T16:17:34.368Z",
"createdAt": "2025-05-09T23:55:47.785Z"
}