example-data.com

orders / #162

userId
Virginie O'Connell @virginie.oconnell55
status
delivered
currency
USD
subtotal
123.38
tax
10.8
shipping
0
total
134.18
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/162"
)
order = res.json()
{
  "id": 162,
  "userId": 70,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 123.38,
  "tax": 10.8,
  "shipping": 0,
  "total": 134.18,
  "placedAt": "2024-08-21T19:59:47.385Z",
  "shippedAt": "2024-08-24T07:26:39.536Z",
  "deliveredAt": "2024-08-27T03:16:54.199Z",
  "createdAt": "2024-08-21T19:59:47.385Z",
  "updatedAt": "2024-08-27T03:16:54.199Z"
}
Draftbit