shipments #310
- orderId
- orders/584
- carrier
- fedex
- trackingNumber
- E6DSX2VW2B4WH42T
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #310
#310
#310
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/310" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/310" ); 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/310"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/310"
)
shipment = res.json() Response
{
"id": 310,
"orderId": 584,
"carrier": "fedex",
"trackingNumber": "E6DSX2VW2B4WH42T",
"status": "delivered",
"shippedAt": "2024-11-27T22:25:39.743Z",
"deliveredAt": "2024-12-01T20:19:57.899Z",
"estimatedDeliveryAt": "2024-12-02T18:54:53.248Z",
"createdAt": "2024-11-27T22:25:39.743Z"
}