example-data.com

orders / #68

userId
Ricky Langosh @ricky.langosh66
status
delivered
currency
USD
subtotal
353.37
tax
30.92
shipping
0
total
384.29
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/68"
)
order = res.json()
{
  "id": 68,
  "userId": 198,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 353.37,
  "tax": 30.92,
  "shipping": 0,
  "total": 384.29,
  "placedAt": "2024-12-23T21:42:24.278Z",
  "shippedAt": "2024-12-26T21:00:09.033Z",
  "deliveredAt": "2024-12-28T01:38:10.694Z",
  "createdAt": "2024-12-23T21:42:24.278Z",
  "updatedAt": "2024-12-28T01:38:10.694Z"
}
Draftbit