example-data.com

orders / #133

userId
Margaretta Barrows @margaretta_barrows41
status
delivered
currency
USD
subtotal
4344.32
tax
380.13
shipping
0
total
4724.45
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/133"
)
order = res.json()
{
  "id": 133,
  "userId": 39,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 4344.32,
  "tax": 380.13,
  "shipping": 0,
  "total": 4724.45,
  "placedAt": "2024-12-28T15:18:08.226Z",
  "shippedAt": "2024-12-30T19:44:36.204Z",
  "deliveredAt": "2025-01-04T14:02:35.926Z",
  "createdAt": "2024-12-28T15:18:08.226Z",
  "updatedAt": "2025-01-04T14:02:35.926Z"
}
Draftbit