example-data.com

orders / #202

userId
Brad Wisoky @brad.wisoky41
status
shipped
currency
USD
subtotal
366.76
tax
32.09
shipping
0
total
398.85
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/orders/202" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/orders/202"
);
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/202"
);
const order = (await res.json()) as Order;
import requests

res = requests.get(
    "https://example-data.com/api/v1/orders/202"
)
order = res.json()
{
  "id": 202,
  "userId": 154,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 366.76,
  "tax": 32.09,
  "shipping": 0,
  "total": 398.85,
  "placedAt": "2025-04-22T06:37:35.822Z",
  "shippedAt": "2025-04-24T09:55:38.644Z",
  "deliveredAt": null,
  "createdAt": "2025-04-22T06:37:35.822Z",
  "updatedAt": "2025-04-24T09:55:38.644Z"
}
Draftbit