example-data.com
Menu
Browse docs and collections

Overview

orders / #41

orders #41

userId
Filiberto Fay @filiberto.fay59
status
shipped
currency
USD
subtotal
3397.37
tax
297.27
shipping
0
total
3694.64
placedAt
shippedAt
deliveredAt
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 41,
  "userId": 92,
  "status": "shipped",
  "currency": "USD",
  "subtotal": 3397.37,
  "tax": 297.27,
  "shipping": 0,
  "total": 3694.64,
  "placedAt": "2025-05-03T23:55:44.448Z",
  "shippedAt": "2025-05-05T23:15:13.894Z",
  "deliveredAt": null,
  "createdAt": "2025-05-03T23:55:44.448Z",
  "updatedAt": "2025-05-05T23:15:13.894Z"
}