orders #891
- userId
-
Daisy Kuhic @daisy_kuhic24
- status
- cancelled
- currency
- USD
- subtotal
- 2833.02
- tax
- 247.89
- shipping
- 0
- total
- 3080.91
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #891
#891
#891
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/891" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/891" ); 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/891"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/891"
)
order = res.json() Response
{
"id": 891,
"userId": 172,
"status": "cancelled",
"currency": "USD",
"subtotal": 2833.02,
"tax": 247.89,
"shipping": 0,
"total": 3080.91,
"placedAt": "2024-12-15T20:11:17.056Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-12-15T20:11:17.056Z",
"updatedAt": "2024-12-15T20:11:17.056Z"
}