example-data.com
Menu
Browse docs and collections

Overview

orders / #38

orders #38

userId
Rupert Lebsack @rupert.lebsack
status
delivered
currency
USD
subtotal
1846.47
tax
161.57
shipping
0
total
2008.04
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 38,
  "userId": 249,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 1846.47,
  "tax": 161.57,
  "shipping": 0,
  "total": 2008.04,
  "placedAt": "2025-11-14T08:36:23.511Z",
  "shippedAt": "2025-11-16T12:09:29.045Z",
  "deliveredAt": "2025-11-21T01:06:55.863Z",
  "createdAt": "2025-11-14T08:36:23.511Z",
  "updatedAt": "2025-11-21T01:06:55.863Z"
}