example-data.com
Menu
Browse docs and collections

Overview

orders / #816

orders #816

userId
Alexander Beahan @alexander.beahan57
status
delivered
currency
USD
subtotal
1948.91
tax
170.53
shipping
0
total
2119.44
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 816,
  "userId": 169,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 1948.91,
  "tax": 170.53,
  "shipping": 0,
  "total": 2119.44,
  "placedAt": "2025-05-28T17:56:55.238Z",
  "shippedAt": "2025-05-30T06:26:20.706Z",
  "deliveredAt": "2025-06-02T18:46:55.082Z",
  "createdAt": "2025-05-28T17:56:55.238Z",
  "updatedAt": "2025-06-02T18:46:55.082Z"
}