example-data.com
Menu
Browse docs and collections

Overview

orders / #968

orders #968

userId
Jamal Gerhold @jamal.gerhold
status
delivered
currency
USD
subtotal
196.98
tax
17.24
shipping
0
total
214.22
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 968,
  "userId": 115,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 196.98,
  "tax": 17.24,
  "shipping": 0,
  "total": 214.22,
  "placedAt": "2025-09-13T05:21:54.077Z",
  "shippedAt": "2025-09-14T12:17:55.276Z",
  "deliveredAt": "2025-09-17T08:17:44.350Z",
  "createdAt": "2025-09-13T05:21:54.077Z",
  "updatedAt": "2025-09-17T08:17:44.350Z"
}