orders #929
- userId
-
Gerda Streich @gerda_streich
- status
- shipped
- currency
- USD
- subtotal
- 1966.63
- tax
- 172.08
- shipping
- 0
- total
- 2138.71
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #929
#929
#929
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/929" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/929" ); 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/929"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/929"
)
order = res.json() Response
{
"id": 929,
"userId": 126,
"status": "shipped",
"currency": "USD",
"subtotal": 1966.63,
"tax": 172.08,
"shipping": 0,
"total": 2138.71,
"placedAt": "2024-07-31T04:54:35.922Z",
"shippedAt": "2024-08-01T14:38:02.942Z",
"deliveredAt": null,
"createdAt": "2024-07-31T04:54:35.922Z",
"updatedAt": "2024-08-01T14:38:02.942Z"
}