shipments #92
- orderId
- orders/158
- carrier
- fedex
- trackingNumber
- 9IINLD0Q51GUHXD0
- status
- label_created
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #92
#92
#92
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/92" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/92" ); 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/92"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/92"
)
shipment = res.json() Response
{
"id": 92,
"orderId": 158,
"carrier": "fedex",
"trackingNumber": "9IINLD0Q51GUHXD0",
"status": "label_created",
"shippedAt": "2024-07-10T05:24:55.534Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-07-18T11:33:05.217Z",
"createdAt": "2024-07-10T05:24:55.534Z"
}