shipments #374
- orderId
- orders/702
- carrier
- fedex
- trackingNumber
- BYPE2PGX7SL0Q9CX
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #374
#374
#374
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/374" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/374" ); 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/374"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/374"
)
shipment = res.json() Response
{
"id": 374,
"orderId": 702,
"carrier": "fedex",
"trackingNumber": "BYPE2PGX7SL0Q9CX",
"status": "delivered",
"shippedAt": "2025-01-28T16:38:22.240Z",
"deliveredAt": "2025-02-05T07:42:43.839Z",
"estimatedDeliveryAt": "2025-02-05T04:46:17.813Z",
"createdAt": "2025-01-28T16:38:22.240Z"
}