shipments #63
- orderId
- orders/113
- carrier
- dhl
- trackingNumber
- 1CX0T41QB50B40UM
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #63
#63
#63
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/63" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/63" ); 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/63"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/63"
)
shipment = res.json() Response
{
"id": 63,
"orderId": 113,
"carrier": "dhl",
"trackingNumber": "1CX0T41QB50B40UM",
"status": "in_transit",
"shippedAt": "2024-12-13T00:00:19.000Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-12-17T02:16:20.549Z",
"createdAt": "2024-12-13T00:00:19.000Z"
}