shipments #141
- orderId
- orders/256
- carrier
- dhl
- trackingNumber
- 4IH5VAEAWIVTTGTX
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #141
#141
#141
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/141" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/141" ); 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/141"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/141"
)
shipment = res.json() Response
{
"id": 141,
"orderId": 256,
"carrier": "dhl",
"trackingNumber": "4IH5VAEAWIVTTGTX",
"status": "label_created",
"shippedAt": "2025-03-31T12:30:27.201Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2025-04-03T13:01:40.007Z",
"createdAt": "2025-03-31T12:30:27.201Z"
}