example-data.com

orders / #71

userId
Einar Volkman @einar_volkman69
status
delivered
currency
USD
subtotal
2236.19
tax
195.67
shipping
0
total
2431.86
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/71"
)
order = res.json()
{
  "id": 71,
  "userId": 7,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2236.19,
  "tax": 195.67,
  "shipping": 0,
  "total": 2431.86,
  "placedAt": "2024-09-13T02:42:25.166Z",
  "shippedAt": "2024-09-14T13:00:58.978Z",
  "deliveredAt": "2024-09-22T01:09:00.093Z",
  "createdAt": "2024-09-13T02:42:25.166Z",
  "updatedAt": "2024-09-22T01:09:00.093Z"
}
Draftbit