orders #331
- userId
-
Virginie O'Connell @virginie.oconnell55
- status
- delivered
- currency
- USD
- subtotal
- 844.68
- tax
- 73.91
- shipping
- 0
- total
- 918.59
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #331
#331
#331
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/331" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/331" ); 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/331"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/331"
)
order = res.json() Response
{
"id": 331,
"userId": 70,
"status": "delivered",
"currency": "USD",
"subtotal": 844.68,
"tax": 73.91,
"shipping": 0,
"total": 918.59,
"placedAt": "2025-06-07T03:31:52.555Z",
"shippedAt": "2025-06-09T12:16:49.774Z",
"deliveredAt": "2025-06-11T21:05:09.118Z",
"createdAt": "2025-06-07T03:31:52.555Z",
"updatedAt": "2025-06-11T21:05:09.118Z"
}