shipments #64
- orderId
- orders/114
- carrier
- ups
- trackingNumber
- D9BTPA6O72H8F9MK
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #64
#64
#64
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/64" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/64" ); 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/64"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/64"
)
shipment = res.json() Response
{
"id": 64,
"orderId": 114,
"carrier": "ups",
"trackingNumber": "D9BTPA6O72H8F9MK",
"status": "delivered",
"shippedAt": "2024-05-29T03:17:33.607Z",
"deliveredAt": "2024-05-31T18:30:13.936Z",
"estimatedDeliveryAt": "2024-06-03T13:20:47.655Z",
"createdAt": "2024-05-29T03:17:33.607Z"
}