orders #629
- userId
-
Jolie Abernathy @jolie_abernathy33
- status
- shipped
- currency
- USD
- subtotal
- 1379.32
- tax
- 120.69
- shipping
- 0
- total
- 1500.01
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #629
#629
#629
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/629" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/629" ); 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/629"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/629"
)
order = res.json() Response
{
"id": 629,
"userId": 50,
"status": "shipped",
"currency": "USD",
"subtotal": 1379.32,
"tax": 120.69,
"shipping": 0,
"total": 1500.01,
"placedAt": "2025-03-29T05:25:50.228Z",
"shippedAt": "2025-03-31T02:21:56.068Z",
"deliveredAt": null,
"createdAt": "2025-03-29T05:25:50.228Z",
"updatedAt": "2025-03-31T02:21:56.068Z"
}