shipments #133
- orderId
- orders/238
- carrier
- fedex
- trackingNumber
- 0UC78C35JF67NENK
- status
- in_transit
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #133
#133
#133
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/133" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/133" ); 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/133"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/133"
)
shipment = res.json() Response
{
"id": 133,
"orderId": 238,
"carrier": "fedex",
"trackingNumber": "0UC78C35JF67NENK",
"status": "in_transit",
"shippedAt": "2024-06-20T18:10:04.689Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-06-30T02:08:42.439Z",
"createdAt": "2024-06-20T18:10:04.689Z"
}