example-data.com
Menu
Browse docs and collections

Overview

orders / #579

orders #579

userId
Tillman Breitenberg @tillman_breitenberg54
status
delivered
currency
USD
subtotal
2252.01
tax
197.05
shipping
0
total
2449.06
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 579,
  "userId": 145,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2252.01,
  "tax": 197.05,
  "shipping": 0,
  "total": 2449.06,
  "placedAt": "2026-05-19T00:30:28.500Z",
  "shippedAt": "2026-05-21T13:38:50.513Z",
  "deliveredAt": "2026-05-22T00:00:00.000Z",
  "createdAt": "2026-05-19T00:30:28.500Z",
  "updatedAt": "2026-05-22T00:00:00.000Z"
}