orders #587
- userId
-
Kenya Abshire @kenya.abshire
- status
- shipped
- currency
- USD
- subtotal
- 3362.8
- tax
- 294.25
- shipping
- 0
- total
- 3657.05
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #587
#587
#587
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/587" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/587" ); 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/587"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/587"
)
order = res.json() Response
{
"id": 587,
"userId": 18,
"status": "shipped",
"currency": "USD",
"subtotal": 3362.8,
"tax": 294.25,
"shipping": 0,
"total": 3657.05,
"placedAt": "2024-06-10T13:51:40.488Z",
"shippedAt": "2024-06-11T20:05:39.250Z",
"deliveredAt": null,
"createdAt": "2024-06-10T13:51:40.488Z",
"updatedAt": "2024-06-11T20:05:39.250Z"
}