example-data.com

orders / #16

userId
Jesse Kiehn @jesse_kiehn92
status
shipped
currency
USD
subtotal
2948.43
tax
257.99
shipping
0
total
3206.42
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/16"
)
order = res.json()
{
  "id": 16,
  "userId": 76,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 2948.43,
  "tax": 257.99,
  "shipping": 0,
  "total": 3206.42,
  "placedAt": "2024-07-23T04:14:20.493Z",
  "shippedAt": "2024-07-26T00:44:14.003Z",
  "deliveredAt": null,
  "createdAt": "2024-07-23T04:14:20.493Z",
  "updatedAt": "2024-07-26T00:44:14.003Z"
}
Draftbit