example-data.com
Menu
Browse docs and collections

Overview

orders / #186

orders #186

userId
Whitney O'Reilly @whitney.oreilly
status
delivered
currency
USD
subtotal
727.3
tax
63.64
shipping
0
total
790.94
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/orders/186"
);
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/186"
);
const order = (await res.json()) as Order;

Python example

import requests

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

Response

{
  "id": 186,
  "userId": 99,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 727.3,
  "tax": 63.64,
  "shipping": 0,
  "total": 790.94,
  "placedAt": "2026-02-28T10:44:39.952Z",
  "shippedAt": "2026-03-03T03:02:40.808Z",
  "deliveredAt": "2026-03-09T15:33:33.399Z",
  "createdAt": "2026-02-28T10:44:39.952Z",
  "updatedAt": "2026-03-09T15:33:33.399Z"
}