example-data.com

orders / #238

userId
Era Mitchell @era.mitchell21
status
shipped
currency
USD
subtotal
1242.15
tax
108.69
shipping
0
total
1350.84
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/238"
)
order = res.json()
{
  "id": 238,
  "userId": 243,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 1242.15,
  "tax": 108.69,
  "shipping": 0,
  "total": 1350.84,
  "placedAt": "2024-06-18T19:29:10.187Z",
  "shippedAt": "2024-06-20T18:10:04.689Z",
  "deliveredAt": null,
  "createdAt": "2024-06-18T19:29:10.187Z",
  "updatedAt": "2024-06-20T18:10:04.689Z"
}
Draftbit