example-data.com

orders / #388

userId
Mia Renner @mia.renner47
status
confirmed
currency
USD
subtotal
260.1
tax
22.76
shipping
0
total
282.86
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/388"
)
order = res.json()
{
  "id": 388,
  "userId": 212,
  "status": "confirmed",
  "currency": "USD",
  "subtotal": 260.1,
  "tax": 22.76,
  "shipping": 0,
  "total": 282.86,
  "placedAt": "2025-04-25T18:10:52.954Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-04-25T18:10:52.954Z",
  "updatedAt": "2025-04-25T18:10:52.954Z"
}
Draftbit