example-data.com

orders / #103

userId
Cyril Frami @cyril_frami88
status
delivered
currency
USD
subtotal
4508.91
tax
394.53
shipping
0
total
4903.44
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/orders/103" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/orders/103"
);
const order = await res.json();
import type { Order } from "https://example-data.com/types/orders.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/orders/103"
);
const order = (await res.json()) as Order;
import requests

res = requests.get(
    "https://example-data.com/api/v1/orders/103"
)
order = res.json()
{
  "id": 103,
  "userId": 182,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 4508.91,
  "tax": 394.53,
  "shipping": 0,
  "total": 4903.44,
  "placedAt": "2025-06-01T19:38:45.661Z",
  "shippedAt": "2025-06-03T00:47:16.143Z",
  "deliveredAt": "2025-06-11T19:12:15.827Z",
  "createdAt": "2025-06-01T19:38:45.661Z",
  "updatedAt": "2025-06-11T19:12:15.827Z"
}
Draftbit