example-data.com

orders / #221

userId
Whitney O'Reilly @whitney.oreilly
status
shipped
currency
USD
subtotal
4543.75
tax
397.58
shipping
0
total
4941.33
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/221"
)
order = res.json()
{
  "id": 221,
  "userId": 99,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 4543.75,
  "tax": 397.58,
  "shipping": 0,
  "total": 4941.33,
  "placedAt": "2024-10-10T14:01:16.371Z",
  "shippedAt": "2024-10-13T01:08:11.118Z",
  "deliveredAt": null,
  "createdAt": "2024-10-10T14:01:16.371Z",
  "updatedAt": "2024-10-13T01:08:11.118Z"
}
Draftbit