example-data.com

orders / #376

userId
Kariane Schmitt @kariane.schmitt97
status
delivered
currency
USD
subtotal
2156.52
tax
188.7
shipping
0
total
2345.22
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/376"
)
order = res.json()
{
  "id": 376,
  "userId": 32,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2156.52,
  "tax": 188.7,
  "shipping": 0,
  "total": 2345.22,
  "placedAt": "2025-03-24T09:07:35.996Z",
  "shippedAt": "2025-03-26T18:58:02.639Z",
  "deliveredAt": "2025-04-02T21:56:19.093Z",
  "createdAt": "2025-03-24T09:07:35.996Z",
  "updatedAt": "2025-04-02T21:56:19.093Z"
}
Draftbit