shipments #348
- orderId
- orders/655
- carrier
- dhl
- trackingNumber
- GODS1U68O3NBILQH
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #348
#348
#348
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/348" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/348" ); 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/348"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/348"
)
shipment = res.json() Response
{
"id": 348,
"orderId": 655,
"carrier": "dhl",
"trackingNumber": "GODS1U68O3NBILQH",
"status": "label_created",
"shippedAt": "2024-09-08T11:17:12.333Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-09-14T05:05:35.723Z",
"createdAt": "2024-09-08T11:17:12.333Z"
}