example-data.com

orders / #217

userId
Vincenza Zemlak-Collier @vincenza_zemlak-collier
status
delivered
currency
USD
subtotal
2393.73
tax
209.45
shipping
0
total
2603.18
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/217"
)
order = res.json()
{
  "id": 217,
  "userId": 168,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2393.73,
  "tax": 209.45,
  "shipping": 0,
  "total": 2603.18,
  "placedAt": "2025-02-08T05:51:11.406Z",
  "shippedAt": "2025-02-09T23:28:20.738Z",
  "deliveredAt": "2025-02-15T05:59:18.182Z",
  "createdAt": "2025-02-08T05:51:11.406Z",
  "updatedAt": "2025-02-15T05:59:18.182Z"
}
Draftbit