shipments #112
- orderId
- orders/198
- carrier
- usps
- trackingNumber
- LLTR71B0AS7O093M
- status
- out_for_delivery
- shippedAt
- deliveredAt
- —
- estimatedDeliveryAt
- createdAt
Overview
shipments / #112
#112
#112
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/112" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/112" ); 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/112"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/112"
)
shipment = res.json() Response
{
"id": 112,
"orderId": 198,
"carrier": "usps",
"trackingNumber": "LLTR71B0AS7O093M",
"status": "out_for_delivery",
"shippedAt": "2024-08-12T12:59:07.684Z",
"deliveredAt": null,
"estimatedDeliveryAt": "2024-08-21T21:02:13.224Z",
"createdAt": "2024-08-12T12:59:07.684Z"
}