example-data.com
Menu
Browse docs and collections

Overview

orders / #595

orders #595

userId
Gerald Lind @gerald_lind57
status
delivered
currency
USD
subtotal
54.3
tax
4.75
shipping
9.99
total
69.04
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 595,
  "userId": 179,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 54.3,
  "tax": 4.75,
  "shipping": 9.99,
  "total": 69.04,
  "placedAt": "2026-03-12T03:52:02.273Z",
  "shippedAt": "2026-03-14T05:29:50.614Z",
  "deliveredAt": "2026-03-20T06:02:23.814Z",
  "createdAt": "2026-03-12T03:52:02.273Z",
  "updatedAt": "2026-03-20T06:02:23.814Z"
}