orders #779
- userId
-
Kariane Schmitt @kariane.schmitt97
- status
- shipped
- currency
- USD
- subtotal
- 1998.81
- tax
- 174.9
- shipping
- 0
- total
- 2173.71
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #779
#779
#779
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/779" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/779" ); 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/779"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/779"
)
order = res.json() Response
{
"id": 779,
"userId": 32,
"status": "shipped",
"currency": "USD",
"subtotal": 1998.81,
"tax": 174.9,
"shipping": 0,
"total": 2173.71,
"placedAt": "2025-03-27T23:11:57.843Z",
"shippedAt": "2025-03-29T18:44:30.845Z",
"deliveredAt": null,
"createdAt": "2025-03-27T23:11:57.843Z",
"updatedAt": "2025-03-29T18:44:30.845Z"
}