orders #931
- userId
-
Frederic Armstrong @frederic_armstrong96
- status
- shipped
- currency
- USD
- subtotal
- 1756.99
- tax
- 153.74
- shipping
- 0
- total
- 1910.73
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #931
#931
#931
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/931" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/931" ); 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/931"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/931"
)
order = res.json() Response
{
"id": 931,
"userId": 199,
"status": "shipped",
"currency": "USD",
"subtotal": 1756.99,
"tax": 153.74,
"shipping": 0,
"total": 1910.73,
"placedAt": "2024-08-15T02:58:58.317Z",
"shippedAt": "2024-08-16T20:29:54.776Z",
"deliveredAt": null,
"createdAt": "2024-08-15T02:58:58.317Z",
"updatedAt": "2024-08-16T20:29:54.776Z"
}