example-data.com
Menu
Browse docs and collections

Overview

orders / #146

orders #146

userId
Jamal Gerhold @jamal.gerhold
status
delivered
currency
USD
subtotal
945.15
tax
82.7
shipping
0
total
1027.85
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/orders/146" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/orders/146"
);
const order = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/orders.d.ts https://example-data.com/types/orders.d.ts
import type { Order } from "./types/orders";

const res = await fetch(
  "https://example-data.com/api/v1/orders/146"
);
const order = (await res.json()) as Order;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/orders/146"
)
order = res.json()

Response

{
  "id": 146,
  "userId": 115,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 945.15,
  "tax": 82.7,
  "shipping": 0,
  "total": 1027.85,
  "placedAt": "2026-01-26T04:40:28.298Z",
  "shippedAt": "2026-01-28T19:11:57.675Z",
  "deliveredAt": "2026-01-31T14:25:08.646Z",
  "createdAt": "2026-01-26T04:40:28.298Z",
  "updatedAt": "2026-01-31T14:25:08.646Z"
}