shipments #228
- orderId
- orders/439
- carrier
- fedex
- trackingNumber
- 3MT6Q6QHUPKH51N3
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #228
#228
#228
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/228" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/228" ); 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/228"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/228"
)
shipment = res.json() Response
{
"id": 228,
"orderId": 439,
"carrier": "fedex",
"trackingNumber": "3MT6Q6QHUPKH51N3",
"status": "delivered",
"shippedAt": "2024-12-27T02:48:28.012Z",
"deliveredAt": "2025-01-03T21:21:54.247Z",
"estimatedDeliveryAt": "2025-01-02T18:06:37.358Z",
"createdAt": "2024-12-27T02:48:28.012Z"
}