example-data.com

orders / #4

userId
Jacynthe Sawayn @jacynthe_sawayn71
status
shipped
currency
USD
subtotal
245.99
tax
21.52
shipping
0
total
267.51
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Medium

#4

#4

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/4"
)
order = res.json()
{
  "id": 4,
  "userId": 146,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 245.99,
  "tax": 21.52,
  "shipping": 0,
  "total": 267.51,
  "placedAt": "2025-03-10T10:14:00.149Z",
  "shippedAt": "2025-03-13T05:23:33.639Z",
  "deliveredAt": null,
  "createdAt": "2025-03-10T10:14:00.149Z",
  "updatedAt": "2025-03-13T05:23:33.639Z"
}
Draftbit