example-data.com
Menu
Browse docs and collections

Overview

orders / #1

orders #1

userId
Wade Upton @wade_upton78
status
shipped
currency
USD
subtotal
1635.7
tax
143.12
shipping
0
total
1778.82
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Medium

#1

#1

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1,
  "userId": 129,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 1635.7,
  "tax": 143.12,
  "shipping": 0,
  "total": 1778.82,
  "placedAt": "2025-08-01T09:53:49.279Z",
  "shippedAt": "2025-08-02T11:26:14.340Z",
  "deliveredAt": null,
  "createdAt": "2025-08-01T09:53:49.279Z",
  "updatedAt": "2025-08-02T11:26:14.340Z"
}