example-data.com

orders / #122

userId
Telly Sanford @telly.sanford
status
shipped
currency
USD
subtotal
945.16
tax
82.7
shipping
0
total
1027.86
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/122"
)
order = res.json()
{
  "id": 122,
  "userId": 123,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 945.16,
  "tax": 82.7,
  "shipping": 0,
  "total": 1027.86,
  "placedAt": "2024-06-28T02:30:07.051Z",
  "shippedAt": "2024-06-29T14:55:21.873Z",
  "deliveredAt": null,
  "createdAt": "2024-06-28T02:30:07.051Z",
  "updatedAt": "2024-06-29T14:55:21.873Z"
}
Draftbit