example-data.com
Menu
Browse docs and collections

Overview

shipments / #313

shipments #313

orderId
orders/595
carrier
ups
trackingNumber
4K1RPG9WDX03UCUH
status
delivered
shippedAt
deliveredAt
estimatedDeliveryAt
createdAt

Component variants

Related

References

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 313,
  "orderId": 595,
  "carrier": "ups",
  "trackingNumber": "4K1RPG9WDX03UCUH",
  "status": "delivered",
  "shippedAt": "2026-03-14T05:29:50.614Z",
  "deliveredAt": "2026-03-20T08:23:21.463Z",
  "estimatedDeliveryAt": "2026-03-17T01:37:20.918Z",
  "createdAt": "2026-03-14T05:29:50.614Z"
}