orders #802
- userId
-
Charity Crona @charity.crona12
- status
- delivered
- currency
- USD
- subtotal
- 1506.08
- tax
- 131.78
- shipping
- 0
- total
- 1637.86
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #802
#802
#802
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/802" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/802" ); 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/802"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/802"
)
order = res.json() Response
{
"id": 802,
"userId": 100,
"status": "delivered",
"currency": "USD",
"subtotal": 1506.08,
"tax": 131.78,
"shipping": 0,
"total": 1637.86,
"placedAt": "2024-06-10T21:08:58.912Z",
"shippedAt": "2024-06-13T03:11:32.564Z",
"deliveredAt": "2024-06-18T13:51:52.721Z",
"createdAt": "2024-06-10T21:08:58.912Z",
"updatedAt": "2024-06-18T13:51:52.721Z"
}