shipments #493
- orderId
- orders/927
- carrier
- ups
- trackingNumber
- Y82LH6WDK8F7Q2P3
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #493
#493
#493
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/493" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/493" ); 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/493"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/493"
)
shipment = res.json() Response
{
"id": 493,
"orderId": 927,
"carrier": "ups",
"trackingNumber": "Y82LH6WDK8F7Q2P3",
"status": "in_transit",
"shippedAt": "2024-09-24T05:50:41.241Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-10-02T11:21:17.016Z",
"createdAt": "2024-09-24T05:50:41.241Z"
}