shipments #353
- orderId
- orders/662
- carrier
- dhl
- trackingNumber
- BW09K3J7L061VKN5
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #353
#353
#353
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/353" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/353" ); 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/353"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/353"
)
shipment = res.json() Response
{
"id": 353,
"orderId": 662,
"carrier": "dhl",
"trackingNumber": "BW09K3J7L061VKN5",
"status": "label_created",
"shippedAt": "2024-11-11T11:40:56.800Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-11-14T23:14:12.924Z",
"createdAt": "2024-11-11T11:40:56.800Z"
}