shipments #151
- orderId
- orders/291
- carrier
- usps
- trackingNumber
- ERXJEWD22L6ZM8DW
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #151
#151
#151
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/151" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/151" ); 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/151"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/151"
)
shipment = res.json() Response
{
"id": 151,
"orderId": 291,
"carrier": "usps",
"trackingNumber": "ERXJEWD22L6ZM8DW",
"status": "in_transit",
"shippedAt": "2025-02-21T04:09:12.954Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2025-02-27T10:09:34.992Z",
"createdAt": "2025-02-21T04:09:12.954Z"
}