example-data.com

orders / #308

userId
Orrin Grant @orrin.grant42
status
shipped
currency
USD
subtotal
1005.95
tax
88.02
shipping
0
total
1093.97
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/308"
)
order = res.json()
{
  "id": 308,
  "userId": 152,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 1005.95,
  "tax": 88.02,
  "shipping": 0,
  "total": 1093.97,
  "placedAt": "2024-07-28T21:36:25.278Z",
  "shippedAt": "2024-07-30T12:41:47.020Z",
  "deliveredAt": null,
  "createdAt": "2024-07-28T21:36:25.278Z",
  "updatedAt": "2024-07-30T12:41:47.020Z"
}
Draftbit