example-data.com

orders / #430

userId
Telly Sanford @telly.sanford
status
shipped
currency
USD
subtotal
2470.42
tax
216.16
shipping
0
total
2686.58
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/430"
)
order = res.json()
{
  "id": 430,
  "userId": 123,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 2470.42,
  "tax": 216.16,
  "shipping": 0,
  "total": 2686.58,
  "placedAt": "2024-07-08T07:20:15.596Z",
  "shippedAt": "2024-07-10T14:05:10.132Z",
  "deliveredAt": null,
  "createdAt": "2024-07-08T07:20:15.596Z",
  "updatedAt": "2024-07-10T14:05:10.132Z"
}
Draftbit