orders #623
- userId
-
Antoinette Greenfelder @antoinette_greenfelder61
- status
- delivered
- currency
- USD
- subtotal
- 758.5
- tax
- 66.37
- shipping
- 0
- total
- 824.87
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #623
#623
#623
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/623" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/623" ); 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/623"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/623"
)
order = res.json() Response
{
"id": 623,
"userId": 22,
"status": "delivered",
"currency": "USD",
"subtotal": 758.5,
"tax": 66.37,
"shipping": 0,
"total": 824.87,
"placedAt": "2024-10-28T08:54:23.296Z",
"shippedAt": "2024-10-31T04:20:13.262Z",
"deliveredAt": "2024-11-07T05:25:43.775Z",
"createdAt": "2024-10-28T08:54:23.296Z",
"updatedAt": "2024-11-07T05:25:43.775Z"
}