example-data.com
Menu
Browse docs and collections

Overview

orders / #323

orders #323

userId
Myrl Pollich @myrl.pollich
status
shipped
currency
USD
subtotal
3043.5
tax
266.31
shipping
0
total
3309.81
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 323,
  "userId": 90,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 3043.5,
  "tax": 266.31,
  "shipping": 0,
  "total": 3309.81,
  "placedAt": "2025-12-03T19:00:44.118Z",
  "shippedAt": "2025-12-06T01:53:20.553Z",
  "deliveredAt": null,
  "createdAt": "2025-12-03T19:00:44.118Z",
  "updatedAt": "2025-12-06T01:53:20.553Z"
}