example-data.com
Menu
Browse docs and collections

Overview

orders / #663

orders #663

userId
Ismael Ward @ismael_ward
status
delivered
currency
USD
subtotal
892.52
tax
78.1
shipping
0
total
970.62
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 663,
  "userId": 178,
  "status": "delivered",
  "currency": "USD",
  "subtotal": 892.52,
  "tax": 78.1,
  "shipping": 0,
  "total": 970.62,
  "placedAt": "2025-10-29T03:27:48.219Z",
  "shippedAt": "2025-10-30T06:58:24.182Z",
  "deliveredAt": "2025-11-07T22:57:14.953Z",
  "createdAt": "2025-10-29T03:27:48.219Z",
  "updatedAt": "2025-11-07T22:57:14.953Z"
}