example-data.com

orders / #64

userId
Jaylon Conroy @jaylon_conroy22
status
confirmed
currency
USD
subtotal
1495.32
tax
130.84
shipping
0
total
1626.16
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/64"
)
order = res.json()
{
  "id": 64,
  "userId": 205,
  "status": "confirmed",
  "currency": "USD",
  "subtotal": 1495.32,
  "tax": 130.84,
  "shipping": 0,
  "total": 1626.16,
  "placedAt": "2025-03-05T01:38:46.540Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-03-05T01:38:46.540Z",
  "updatedAt": "2025-03-05T01:38:46.540Z"
}
Draftbit