orders #425
- userId
-
Lilla Koss @lilla.koss
- status
- cancelled
- currency
- USD
- subtotal
- 3021.96
- tax
- 264.42
- shipping
- 0
- total
- 3286.38
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #425
#425
#425
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/425" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/425" ); 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/425"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/425"
)
order = res.json() Response
{
"id": 425,
"userId": 59,
"status": "cancelled",
"currency": "USD",
"subtotal": 3021.96,
"tax": 264.42,
"shipping": 0,
"total": 3286.38,
"placedAt": "2024-09-19T09:51:28.672Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-09-19T09:51:28.672Z",
"updatedAt": "2024-09-19T09:51:28.672Z"
}