example-data.com

orders / #161

userId
Matilde Beahan @matilde_beahan
status
cancelled
currency
USD
subtotal
885.17
tax
77.45
shipping
0
total
962.62
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/161"
)
order = res.json()
{
  "id": 161,
  "userId": 96,
  "status": "cancelled",
  "currency": "USD",
  "subtotal": 885.17,
  "tax": 77.45,
  "shipping": 0,
  "total": 962.62,
  "placedAt": "2025-11-08T05:18:08.578Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-11-08T05:18:08.578Z",
  "updatedAt": "2025-11-08T05:18:08.578Z"
}
Draftbit