example-data.com
Menu
Browse docs and collections

Overview

orders / #904

orders #904

userId
Michale Hilpert @michale_hilpert62
status
delivered
currency
USD
subtotal
2454.37
tax
214.76
shipping
0
total
2669.13
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 904,
  "userId": 250,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2454.37,
  "tax": 214.76,
  "shipping": 0,
  "total": 2669.13,
  "placedAt": "2025-06-14T21:03:53.656Z",
  "shippedAt": "2025-06-16T04:54:54.908Z",
  "deliveredAt": "2025-06-20T20:21:06.190Z",
  "createdAt": "2025-06-14T21:03:53.656Z",
  "updatedAt": "2025-06-20T20:21:06.190Z"
}