shipments #194
- orderId
- orders/376
- carrier
- usps
- trackingNumber
- HMK8J96ISHXSRNZ5
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #194
#194
#194
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/194" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/194" ); 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/194"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/194"
)
shipment = res.json() Response
{
"id": 194,
"orderId": 376,
"carrier": "usps",
"trackingNumber": "HMK8J96ISHXSRNZ5",
"status": "delivered",
"shippedAt": "2025-03-26T18:58:02.639Z",
"deliveredAt": "2025-04-01T22:15:33.393Z",
"estimatedDeliveryAt": "2025-03-31T20:21:28.015Z",
"createdAt": "2025-03-26T18:58:02.639Z"
}