example-data.com

orders / #197

userId
Lemuel Jast @lemuel.jast27
status
delivered
currency
USD
subtotal
276.9
tax
24.23
shipping
0
total
301.13
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/197"
)
order = res.json()
{
  "id": 197,
  "userId": 105,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 276.9,
  "tax": 24.23,
  "shipping": 0,
  "total": 301.13,
  "placedAt": "2024-08-18T01:26:07.044Z",
  "shippedAt": "2024-08-19T13:56:20.586Z",
  "deliveredAt": "2024-08-27T06:20:39.598Z",
  "createdAt": "2024-08-18T01:26:07.044Z",
  "updatedAt": "2024-08-27T06:20:39.598Z"
}
Draftbit