orders #627
- userId
-
Arnaldo Friesen @arnaldo_friesen78
- status
- delivered
- currency
- USD
- subtotal
- 1187.38
- tax
- 103.9
- shipping
- 0
- total
- 1291.28
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #627
#627
#627
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/627" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/627" ); 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/627"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/627"
)
order = res.json() Response
{
"id": 627,
"userId": 113,
"status": "delivered",
"currency": "USD",
"subtotal": 1187.38,
"tax": 103.9,
"shipping": 0,
"total": 1291.28,
"placedAt": "2024-09-19T23:25:40.101Z",
"shippedAt": "2024-09-21T14:16:16.051Z",
"deliveredAt": "2024-09-29T05:41:54.115Z",
"createdAt": "2024-09-19T23:25:40.101Z",
"updatedAt": "2024-09-29T05:41:54.115Z"
}