example-data.com
Menu
Browse docs and collections

Overview

shipments / #19

shipments #19

orderId
orders/34
carrier
ups
trackingNumber
3UH35YY9J85K89RU
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 19,
  "orderId": 34,
  "carrier": "ups",
  "trackingNumber": "3UH35YY9J85K89RU",
  "status": "delivered",
  "shippedAt": "2026-05-01T02:04:01.113Z",
  "deliveredAt": "2026-05-05T10:14:39.096Z",
  "estimatedDeliveryAt": "2026-05-05T04:06:50.810Z",
  "createdAt": "2026-05-01T02:04:01.113Z"
}