example-data.com

orders / #24

userId
Daren Lockman @daren_lockman67
status
delivered
currency
USD
subtotal
1143.47
tax
100.05
shipping
0
total
1243.52
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/24"
)
order = res.json()
{
  "id": 24,
  "userId": 116,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 1143.47,
  "tax": 100.05,
  "shipping": 0,
  "total": 1243.52,
  "placedAt": "2024-10-31T12:56:03.268Z",
  "shippedAt": "2024-11-02T01:21:14.789Z",
  "deliveredAt": "2024-11-09T13:12:09.492Z",
  "createdAt": "2024-10-31T12:56:03.268Z",
  "updatedAt": "2024-11-09T13:12:09.492Z"
}
Draftbit