example-data.com
Menu
Browse docs and collections

Overview

orders / #625

orders #625

userId
Americo Hoppe @americo_hoppe57
status
delivered
currency
USD
subtotal
4177.14
tax
365.5
shipping
0
total
4542.64
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 625,
  "userId": 177,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 4177.14,
  "tax": 365.5,
  "shipping": 0,
  "total": 4542.64,
  "placedAt": "2025-09-12T21:04:06.146Z",
  "shippedAt": "2025-09-14T09:13:57.186Z",
  "deliveredAt": "2025-09-22T08:38:40.300Z",
  "createdAt": "2025-09-12T21:04:06.146Z",
  "updatedAt": "2025-09-22T08:38:40.300Z"
}