shipments #2
- orderId
- orders/2
- carrier
- usps
- trackingNumber
- 5J0H393CNWAFLF4B
- status
- out_for_delivery
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #2
#2
#2
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/2" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/2" ); 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/2"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/2"
)
shipment = res.json() Response
{
"id": 2,
"orderId": 2,
"carrier": "usps",
"trackingNumber": "5J0H393CNWAFLF4B",
"status": "out_for_delivery",
"shippedAt": "2025-02-21T09:27:53.696Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2025-03-01T14:23:31.141Z",
"createdAt": "2025-02-21T09:27:53.696Z"
}