example-data.com
Menu
Browse docs and collections

Overview

shipments / #103

shipments #103

orderId
orders/183
carrier
ups
trackingNumber
RLWGW8ALLTO2RCQF
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 103,
  "orderId": 183,
  "carrier": "ups",
  "trackingNumber": "RLWGW8ALLTO2RCQF",
  "status": "delivered",
  "shippedAt": "2026-05-09T08:56:42.835Z",
  "deliveredAt": "2026-05-14T09:11:25.432Z",
  "estimatedDeliveryAt": "2026-05-14T05:16:48.488Z",
  "createdAt": "2026-05-09T08:56:42.835Z"
}