example-data.com
Menu
Browse docs and collections

Overview

orders / #701

orders #701

userId
Jonathan Howe @jonathan_howe77
status
delivered
currency
USD
subtotal
467.4
tax
40.9
shipping
0
total
508.3
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 701,
  "userId": 150,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 467.4,
  "tax": 40.9,
  "shipping": 0,
  "total": 508.3,
  "placedAt": "2025-08-23T03:13:52.664Z",
  "shippedAt": "2025-08-26T02:12:20.623Z",
  "deliveredAt": "2025-08-30T17:50:58.298Z",
  "createdAt": "2025-08-23T03:13:52.664Z",
  "updatedAt": "2025-08-30T17:50:58.298Z"
}