example-data.com
Menu
Browse docs and collections

Overview

orders / #649

orders #649

userId
Ressie Howell-Hodkiewicz @ressie_howell-hodkiewicz35
status
delivered
currency
USD
subtotal
3048.01
tax
266.7
shipping
0
total
3314.71
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 649,
  "userId": 214,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 3048.01,
  "tax": 266.7,
  "shipping": 0,
  "total": 3314.71,
  "placedAt": "2025-07-19T14:31:41.992Z",
  "shippedAt": "2025-07-20T23:22:32.277Z",
  "deliveredAt": "2025-07-26T19:59:15.211Z",
  "createdAt": "2025-07-19T14:31:41.992Z",
  "updatedAt": "2025-07-26T19:59:15.211Z"
}