orders #790
- userId
-
Cassidy Christiansen @cassidy_christiansen38
- status
- delivered
- currency
- USD
- subtotal
- 3649.55
- tax
- 319.34
- shipping
- 0
- total
- 3968.89
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #790
#790
#790
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/790" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/790" ); 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/790"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/790"
)
order = res.json() Response
{
"id": 790,
"userId": 33,
"status": "delivered",
"currency": "USD",
"subtotal": 3649.55,
"tax": 319.34,
"shipping": 0,
"total": 3968.89,
"placedAt": "2025-02-27T17:41:35.145Z",
"shippedAt": "2025-03-02T04:49:58.051Z",
"deliveredAt": "2025-03-07T17:31:40.470Z",
"createdAt": "2025-02-27T17:41:35.145Z",
"updatedAt": "2025-03-07T17:31:40.470Z"
}