orders #584
- userId
-
Jarrell Flatley @jarrell_flatley39
- status
- delivered
- currency
- USD
- subtotal
- 887.97
- tax
- 77.7
- shipping
- 0
- total
- 965.67
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #584
#584
#584
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/584" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/584" ); 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/584"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/584"
)
order = res.json() Response
{
"id": 584,
"userId": 61,
"status": "delivered",
"currency": "USD",
"subtotal": 887.97,
"tax": 77.7,
"shipping": 0,
"total": 965.67,
"placedAt": "2024-11-26T04:10:37.931Z",
"shippedAt": "2024-11-27T22:25:39.743Z",
"deliveredAt": "2024-12-01T23:31:04.582Z",
"createdAt": "2024-11-26T04:10:37.931Z",
"updatedAt": "2024-12-01T23:31:04.582Z"
}