example-data.com

orders / #88

userId
Jesse Kiehn @jesse_kiehn92
status
shipped
currency
USD
subtotal
363.09
tax
31.77
shipping
0
total
394.86
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/88"
)
order = res.json()
{
  "id": 88,
  "userId": 76,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 363.09,
  "tax": 31.77,
  "shipping": 0,
  "total": 394.86,
  "placedAt": "2024-06-06T13:52:00.394Z",
  "shippedAt": "2024-06-09T08:47:31.779Z",
  "deliveredAt": null,
  "createdAt": "2024-06-06T13:52:00.394Z",
  "updatedAt": "2024-06-09T08:47:31.779Z"
}
Draftbit