shipments #258
- orderId
- orders/496
- carrier
- ups
- trackingNumber
- XIX36VR34CRRXJ71
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #258
#258
#258
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/258" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/258" ); 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/258"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/258"
)
shipment = res.json() Response
{
"id": 258,
"orderId": 496,
"carrier": "ups",
"trackingNumber": "XIX36VR34CRRXJ71",
"status": "delivered",
"shippedAt": "2024-07-06T16:05:40.245Z",
"deliveredAt": "2024-07-10T21:55:39.579Z",
"estimatedDeliveryAt": "2024-07-10T08:24:34.157Z",
"createdAt": "2024-07-06T16:05:40.245Z"
}