orders #859
- userId
-
Beau Stiedemann @beau.stiedemann
- status
- delivered
- currency
- USD
- subtotal
- 968.09
- tax
- 84.71
- shipping
- 0
- total
- 1052.8
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #859
#859
#859
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/859" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/859" ); 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/859"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/859"
)
order = res.json() Response
{
"id": 859,
"userId": 64,
"status": "delivered",
"currency": "USD",
"subtotal": 968.09,
"tax": 84.71,
"shipping": 0,
"total": 1052.8,
"placedAt": "2024-06-04T09:52:42.371Z",
"shippedAt": "2024-06-06T06:13:21.108Z",
"deliveredAt": "2024-06-11T12:08:02.134Z",
"createdAt": "2024-06-04T09:52:42.371Z",
"updatedAt": "2024-06-11T12:08:02.134Z"
}