shipments #290
- orderId
- orders/546
- carrier
- fedex
- trackingNumber
- QDBQ6YMT193R6SES
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #290
#290
#290
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/290" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/290" ); 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/290"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/290"
)
shipment = res.json() Response
{
"id": 290,
"orderId": 546,
"carrier": "fedex",
"trackingNumber": "QDBQ6YMT193R6SES",
"status": "delivered",
"shippedAt": "2024-07-06T02:48:25.771Z",
"deliveredAt": "2024-07-12T01:03:43.022Z",
"estimatedDeliveryAt": "2024-07-08T21:34:06.982Z",
"createdAt": "2024-07-06T02:48:25.771Z"
}