example-data.com
Menu
Browse docs and collections

Overview

orders / #860

orders #860

userId
Lazaro Herzog @lazaro_herzog
status
delivered
currency
USD
subtotal
2826.68
tax
247.33
shipping
0
total
3074.01
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 860,
  "userId": 181,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 2826.68,
  "tax": 247.33,
  "shipping": 0,
  "total": 3074.01,
  "placedAt": "2025-11-11T21:28:52.528Z",
  "shippedAt": "2025-11-14T09:20:03.372Z",
  "deliveredAt": "2025-11-21T13:35:40.945Z",
  "createdAt": "2025-11-11T21:28:52.528Z",
  "updatedAt": "2025-11-21T13:35:40.945Z"
}