shipments #503
- orderId
- orders/947
- carrier
- dhl
- trackingNumber
- FYQNZ4PPBBTG7TAL
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #503
#503
#503
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/503" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/503" ); 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/503"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/503"
)
shipment = res.json() Response
{
"id": 503,
"orderId": 947,
"carrier": "dhl",
"trackingNumber": "FYQNZ4PPBBTG7TAL",
"status": "in_transit",
"shippedAt": "2024-06-27T13:24:27.313Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-07-01T05:26:00.141Z",
"createdAt": "2024-06-27T13:24:27.313Z"
}