example-data.com
Menu
Browse docs and collections

Overview

shipments / #236

shipments #236

orderId
orders/454
carrier
usps
trackingNumber
3T9TZVKQO1EP9ASS
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/shipments/236" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/shipments/236"
);
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/236"
);
const shipment = (await res.json()) as Shipment;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/shipments/236"
)
shipment = res.json()

Response

{
  "id": 236,
  "orderId": 454,
  "carrier": "usps",
  "trackingNumber": "3T9TZVKQO1EP9ASS",
  "status": "delivered",
  "shippedAt": "2026-02-22T08:11:15.520Z",
  "deliveredAt": "2026-02-27T20:24:04.822Z",
  "estimatedDeliveryAt": "2026-03-02T12:48:51.275Z",
  "createdAt": "2026-02-22T08:11:15.520Z"
}