example-data.com

orders / #144

userId
Amya Powlowski @amya_powlowski32
status
shipped
currency
USD
subtotal
355.34
tax
31.09
shipping
0
total
386.43
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/144"
)
order = res.json()
{
  "id": 144,
  "userId": 80,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 355.34,
  "tax": 31.09,
  "shipping": 0,
  "total": 386.43,
  "placedAt": "2025-02-18T19:45:03.235Z",
  "shippedAt": "2025-02-21T14:32:07.457Z",
  "deliveredAt": null,
  "createdAt": "2025-02-18T19:45:03.235Z",
  "updatedAt": "2025-02-21T14:32:07.457Z"
}
Draftbit