orders #889
- userId
-
Merl Jenkins @merl.jenkins6
- status
- shipped
- currency
- USD
- subtotal
- 1663.99
- tax
- 145.6
- shipping
- 0
- total
- 1809.59
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #889
#889
#889
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/889" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/889" ); 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/889"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/889"
)
order = res.json() Response
{
"id": 889,
"userId": 60,
"status": "shipped",
"currency": "USD",
"subtotal": 1663.99,
"tax": 145.6,
"shipping": 0,
"total": 1809.59,
"placedAt": "2024-06-14T05:31:37.718Z",
"shippedAt": "2024-06-16T11:22:10.339Z",
"deliveredAt": null,
"createdAt": "2024-06-14T05:31:37.718Z",
"updatedAt": "2024-06-16T11:22:10.339Z"
}