shipments #481
- orderId
- orders/899
- carrier
- ups
- trackingNumber
- 8AHTVJNUDJG9URY1
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #481
#481
#481
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/481" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/481" ); 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/481"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/481"
)
shipment = res.json() Response
{
"id": 481,
"orderId": 899,
"carrier": "ups",
"trackingNumber": "8AHTVJNUDJG9URY1",
"status": "delivered",
"shippedAt": "2025-04-29T03:12:37.077Z",
"deliveredAt": "2025-05-02T21:53:48.058Z",
"estimatedDeliveryAt": "2025-05-01T21:59:45.616Z",
"createdAt": "2025-04-29T03:12:37.077Z"
}