orders #656
- userId
-
Dasia Volkman @dasia_volkman65
- status
- shipped
- currency
- USD
- subtotal
- 247.99
- tax
- 21.7
- shipping
- 0
- total
- 269.69
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #656
#656
#656
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/656" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/656" ); 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/656"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/656"
)
order = res.json() Response
{
"id": 656,
"userId": 219,
"status": "shipped",
"currency": "USD",
"subtotal": 247.99,
"tax": 21.7,
"shipping": 0,
"total": 269.69,
"placedAt": "2024-06-08T18:21:13.438Z",
"shippedAt": "2024-06-10T09:46:03.996Z",
"deliveredAt": null,
"createdAt": "2024-06-08T18:21:13.438Z",
"updatedAt": "2024-06-10T09:46:03.996Z"
}