example-data.com
Menu
Browse docs and collections

Overview

orders / #503

orders #503

userId
Jarrell Flatley @jarrell_flatley39
status
shipped
currency
USD
subtotal
3165.77
tax
277
shipping
0
total
3442.77
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 503,
  "userId": 61,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 3165.77,
  "tax": 277,
  "shipping": 0,
  "total": 3442.77,
  "placedAt": "2026-01-27T06:20:45.883Z",
  "shippedAt": "2026-01-28T12:45:19.782Z",
  "deliveredAt": null,
  "createdAt": "2026-01-27T06:20:45.883Z",
  "updatedAt": "2026-01-28T12:45:19.782Z"
}