orders #144
- userId
-
Amya Powlowski @amya_powlowski32
- status
- shipped
- currency
- USD
- subtotal
- 355.34
- tax
- 31.09
- shipping
- 0
- total
- 386.43
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #144
#144
#144
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/144" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/144" ); 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/144"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/144"
)
order = res.json() Response
{
"id": 144,
"userId": 80,
"status": "shipped",
"currency": "USD",
"subtotal": 355.34,
"tax": 31.09,
"shipping": 0,
"total": 386.43,
"placedAt": "2025-02-18T19:45:03.235Z",
"shippedAt": "2025-02-21T14:32:07.457Z",
"deliveredAt": null,
"createdAt": "2025-02-18T19:45:03.235Z",
"updatedAt": "2025-02-21T14:32:07.457Z"
}