shipments #370
- orderId
- orders/696
- carrier
- dhl
- trackingNumber
- PZ84M36YRKLYFSMM
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #370
#370
#370
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/370" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/370" ); 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/370"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/370"
)
shipment = res.json() Response
{
"id": 370,
"orderId": 696,
"carrier": "dhl",
"trackingNumber": "PZ84M36YRKLYFSMM",
"status": "label_created",
"shippedAt": "2024-12-02T17:51:46.352Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-12-08T19:48:49.419Z",
"createdAt": "2024-12-02T17:51:46.352Z"
}