example-data.com
Menu
Browse docs and collections

Overview

orders / #142

orders #142

userId
D'angelo Kling @dangelo_kling6
status
shipped
currency
USD
subtotal
1583.8
tax
138.58
shipping
0
total
1722.38
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 142,
  "userId": 188,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 1583.8,
  "tax": 138.58,
  "shipping": 0,
  "total": 1722.38,
  "placedAt": "2026-04-06T12:36:01.637Z",
  "shippedAt": "2026-04-07T13:00:24.448Z",
  "deliveredAt": null,
  "createdAt": "2026-04-06T12:36:01.637Z",
  "updatedAt": "2026-04-07T13:00:24.448Z"
}