orders #598
- userId
-
Ismael Ward @ismael_ward
- status
- delivered
- currency
- USD
- subtotal
- 3175.86
- tax
- 277.89
- shipping
- 0
- total
- 3453.75
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #598
#598
#598
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/598" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/598" ); 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/598"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/598"
)
order = res.json() Response
{
"id": 598,
"userId": 178,
"status": "delivered",
"currency": "USD",
"subtotal": 3175.86,
"tax": 277.89,
"shipping": 0,
"total": 3453.75,
"placedAt": "2025-03-07T12:48:08.171Z",
"shippedAt": "2025-03-10T08:57:50.036Z",
"deliveredAt": "2025-03-16T04:15:37.167Z",
"createdAt": "2025-03-07T12:48:08.171Z",
"updatedAt": "2025-03-16T04:15:37.167Z"
}