orders #730
- userId
-
Glenna Keebler @glenna_keebler
- status
- delivered
- currency
- USD
- subtotal
- 2981
- tax
- 260.84
- shipping
- 0
- total
- 3241.84
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #730
#730
#730
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/730" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/730" ); 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/730"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/730"
)
order = res.json() Response
{
"id": 730,
"userId": 134,
"status": "delivered",
"currency": "USD",
"subtotal": 2981,
"tax": 260.84,
"shipping": 0,
"total": 3241.84,
"placedAt": "2024-11-01T07:02:55.647Z",
"shippedAt": "2024-11-04T02:53:10.658Z",
"deliveredAt": "2024-11-11T05:13:06.797Z",
"createdAt": "2024-11-01T07:02:55.647Z",
"updatedAt": "2024-11-11T05:13:06.797Z"
}