orders #687
- userId
-
Adan Weber @adan.weber61
- status
- cancelled
- currency
- USD
- subtotal
- 394.39
- tax
- 34.51
- shipping
- 0
- total
- 428.9
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #687
#687
#687
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/687" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/687" ); 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/687"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/687"
)
order = res.json() Response
{
"id": 687,
"userId": 155,
"status": "cancelled",
"currency": "USD",
"subtotal": 394.39,
"tax": 34.51,
"shipping": 0,
"total": 428.9,
"placedAt": "2024-07-05T04:06:48.439Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-07-05T04:06:48.439Z",
"updatedAt": "2024-07-05T04:06:48.439Z"
}