example-data.com

orders / #198

userId
Brycen Bayer @brycen_bayer60
status
shipped
currency
USD
subtotal
887.37
tax
77.64
shipping
0
total
965.01
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/198"
)
order = res.json()
{
  "id": 198,
  "userId": 6,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 887.37,
  "tax": 77.64,
  "shipping": 0,
  "total": 965.01,
  "placedAt": "2024-08-11T10:49:23.775Z",
  "shippedAt": "2024-08-12T12:59:07.684Z",
  "deliveredAt": null,
  "createdAt": "2024-08-11T10:49:23.775Z",
  "updatedAt": "2024-08-12T12:59:07.684Z"
}
Draftbit