example-data.com
Menu
Browse docs and collections

Overview

orders / #942

orders #942

userId
Audreanne Will @audreanne_will
status
delivered
currency
USD
subtotal
79.89
tax
6.99
shipping
9.99
total
96.87
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 942,
  "userId": 127,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 79.89,
  "tax": 6.99,
  "shipping": 9.99,
  "total": 96.87,
  "placedAt": "2025-08-17T19:36:24.538Z",
  "shippedAt": "2025-08-19T18:37:35.288Z",
  "deliveredAt": "2025-08-26T19:17:00.401Z",
  "createdAt": "2025-08-17T19:36:24.538Z",
  "updatedAt": "2025-08-26T19:17:00.401Z"
}