shipments #454
- orderId
- orders/843
- carrier
- usps
- trackingNumber
- C9QCO8D85ATPH5G6
- status
- delivered
- shippedAt
- deliveredAt
- estimatedDeliveryAt
- createdAt
Overview
shipments / #454
#454
#454
Request
curl example
curl -sS \ "https://example-data.com/api/v1/shipments/454" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/shipments/454" ); 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/454"
);
const shipment = (await res.json()) as Shipment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/shipments/454"
)
shipment = res.json() Response
{
"id": 454,
"orderId": 843,
"carrier": "usps",
"trackingNumber": "C9QCO8D85ATPH5G6",
"status": "delivered",
"shippedAt": "2024-07-31T00:51:30.882Z",
"deliveredAt": "2024-08-03T08:32:31.926Z",
"estimatedDeliveryAt": "2024-08-07T21:05:10.213Z",
"createdAt": "2024-07-31T00:51:30.882Z"
}