shipments #53
- orderId
- orders/95
- carrier
- ups
- trackingNumber
- CQZ55ZH4I9HOK188
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #53
#53
#53
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/53" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/53" ); 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/53"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/53"
)
shipment = res.json() Response
{
"id": 53,
"orderId": 95,
"carrier": "ups",
"trackingNumber": "CQZ55ZH4I9HOK188",
"status": "delivered",
"shippedAt": "2025-02-26T20:49:55.121Z",
"deliveredAt": "2025-03-03T09:53:23.687Z",
"estimatedDeliveryAt": "2025-03-06T16:02:55.502Z",
"createdAt": "2025-02-26T20:49:55.121Z"
}