example-data.com
Menu
Browse docs and collections

Overview

shipments / #433

shipments #433

orderId
orders/806
carrier
usps
trackingNumber
N0DFCTHA4EW8GS5D
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 433,
  "orderId": 806,
  "carrier": "usps",
  "trackingNumber": "N0DFCTHA4EW8GS5D",
  "status": "delivered",
  "shippedAt": "2025-07-30T17:50:06.939Z",
  "deliveredAt": "2025-08-06T16:02:37.385Z",
  "estimatedDeliveryAt": "2025-08-06T20:13:23.476Z",
  "createdAt": "2025-07-30T17:50:06.939Z"
}