example-data.com
Menu
Browse docs and collections

Overview

shipments / #90

shipments #90

orderId
orders/154
carrier
ups
trackingNumber
DSYKRSOUZ9Z796PK
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 90,
  "orderId": 154,
  "carrier": "ups",
  "trackingNumber": "DSYKRSOUZ9Z796PK",
  "status": "delivered",
  "shippedAt": "2025-12-01T10:28:52.665Z",
  "deliveredAt": "2025-12-05T09:43:01.384Z",
  "estimatedDeliveryAt": "2025-12-06T08:24:31.988Z",
  "createdAt": "2025-12-01T10:28:52.665Z"
}