example-data.com

orders / #139

userId
Dovie Gorczany @dovie.gorczany
status
pending
currency
USD
subtotal
2530.96
tax
221.46
shipping
0
total
2752.42
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/139"
)
order = res.json()
{
  "id": 139,
  "userId": 111,
  "status": "pending",
  "currency": "USD",
  "subtotal": 2530.96,
  "tax": 221.46,
  "shipping": 0,
  "total": 2752.42,
  "placedAt": "2025-06-20T00:30:59.125Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2025-06-20T00:30:59.125Z",
  "updatedAt": "2025-06-20T00:30:59.125Z"
}
Draftbit