shipments #279
- orderId
- orders/524
- carrier
- ups
- trackingNumber
- N8CERUI961C8GNNC
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #279
#279
#279
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/279" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/279" ); 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/279"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/279"
)
shipment = res.json() Response
{
"id": 279,
"orderId": 524,
"carrier": "ups",
"trackingNumber": "N8CERUI961C8GNNC",
"status": "delivered",
"shippedAt": "2024-10-17T03:33:44.769Z",
"deliveredAt": "2024-10-20T01:59:59.258Z",
"estimatedDeliveryAt": "2024-10-26T05:14:27.623Z",
"createdAt": "2024-10-17T03:33:44.769Z"
}