example-data.com
Menu
Browse docs and collections

Overview

orders / #482

orders #482

userId
Sammy Schmidt @sammy.schmidt
status
delivered
currency
USD
subtotal
2759.6
tax
241.46
shipping
0
total
3001.06
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 482,
  "userId": 186,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2759.6,
  "tax": 241.46,
  "shipping": 0,
  "total": 3001.06,
  "placedAt": "2026-02-02T01:39:51.067Z",
  "shippedAt": "2026-02-03T04:09:31.002Z",
  "deliveredAt": "2026-02-08T04:33:18.115Z",
  "createdAt": "2026-02-02T01:39:51.067Z",
  "updatedAt": "2026-02-08T04:33:18.115Z"
}