example-data.com

orders / #85

userId
Norbert Jacobi @norbert_jacobi92
status
shipped
currency
USD
subtotal
1705.56
tax
149.24
shipping
0
total
1854.8
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/orders/85"
)
order = res.json()
{
  "id": 85,
  "userId": 101,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 1705.56,
  "tax": 149.24,
  "shipping": 0,
  "total": 1854.8,
  "placedAt": "2024-11-01T17:04:48.922Z",
  "shippedAt": "2024-11-02T18:55:58.923Z",
  "deliveredAt": null,
  "createdAt": "2024-11-01T17:04:48.922Z",
  "updatedAt": "2024-11-02T18:55:58.923Z"
}
Draftbit