example-data.com

orders / #199

userId
Dasia Volkman @dasia_volkman65
status
refunded
currency
USD
subtotal
944.4
tax
82.64
shipping
0
total
1027.04
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/199"
)
order = res.json()
{
  "id": 199,
  "userId": 219,
  "status": "refunded",
  "currency": "USD",
  "subtotal": 944.4,
  "tax": 82.64,
  "shipping": 0,
  "total": 1027.04,
  "placedAt": "2024-10-15T10:29:01.252Z",
  "shippedAt": null,
  "deliveredAt": null,
  "createdAt": "2024-10-15T10:29:01.252Z",
  "updatedAt": "2024-10-15T10:29:01.252Z"
}
Draftbit