shipments #282
- orderId
- orders/531
- carrier
- dhl
- trackingNumber
- 9T8MGLR7M1UKKP1U
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #282
#282
#282
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/282" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/282" ); 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/282"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/282"
)
shipment = res.json() Response
{
"id": 282,
"orderId": 531,
"carrier": "dhl",
"trackingNumber": "9T8MGLR7M1UKKP1U",
"status": "in_transit",
"shippedAt": "2024-06-11T01:57:22.431Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-06-14T05:48:08.637Z",
"createdAt": "2024-06-11T01:57:22.431Z"
}