orders #803
- userId
-
Earlene Wisozk @earlene.wisozk
- status
- delivered
- currency
- USD
- subtotal
- 2476.27
- tax
- 216.67
- shipping
- 0
- total
- 2692.94
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #803
#803
#803
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/803" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/803" ); 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/803"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/803"
)
order = res.json() Response
{
"id": 803,
"userId": 216,
"status": "delivered",
"currency": "USD",
"subtotal": 2476.27,
"tax": 216.67,
"shipping": 0,
"total": 2692.94,
"placedAt": "2024-07-10T12:55:03.856Z",
"shippedAt": "2024-07-13T00:31:15.292Z",
"deliveredAt": "2024-07-20T05:33:13.598Z",
"createdAt": "2024-07-10T12:55:03.856Z",
"updatedAt": "2024-07-20T05:33:13.598Z"
}