example-data.com

orders / #134

userId
Maymie Boehm @maymie.boehm90
status
cancelled
currency
USD
subtotal
781.68
tax
68.4
shipping
0
total
850.08
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/134"
)
order = res.json()
{
  "id": 134,
  "userId": 48,
  "status": "cancelled",
  "currency": "USD",
  "subtotal": 781.68,
  "tax": 68.4,
  "shipping": 0,
  "total": 850.08,
  "placedAt": "2025-06-20T23:15:30.251Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-06-20T23:15:30.251Z",
  "updatedAt": "2025-06-20T23:15:30.251Z"
}
Draftbit