example-data.com

orders / #438

userId
Dovie Gorczany @dovie.gorczany
status
delivered
currency
USD
subtotal
1596.24
tax
139.67
shipping
0
total
1735.91
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/438"
)
order = res.json()
{
  "id": 438,
  "userId": 111,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 1596.24,
  "tax": 139.67,
  "shipping": 0,
  "total": 1735.91,
  "placedAt": "2024-09-02T23:02:21.868Z",
  "shippedAt": "2024-09-04T07:11:47.942Z",
  "deliveredAt": "2024-09-10T06:44:32.916Z",
  "createdAt": "2024-09-02T23:02:21.868Z",
  "updatedAt": "2024-09-10T06:44:32.916Z"
}
Draftbit