orders #839
- userId
-
Marlin Goldner @marlin_goldner6
- status
- delivered
- currency
- USD
- subtotal
- 3194.41
- tax
- 279.51
- shipping
- 0
- total
- 3473.92
- placedAt
- shippedAt
- deliveredAt
- createdAt
- updatedAt
Overview
orders / #839
#839
#839
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/839" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/839" ); 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/839"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/839"
)
order = res.json() Response
{
"id": 839,
"userId": 160,
"status": "delivered",
"currency": "USD",
"subtotal": 3194.41,
"tax": 279.51,
"shipping": 0,
"total": 3473.92,
"placedAt": "2024-06-29T01:25:03.437Z",
"shippedAt": "2024-06-30T07:32:36.127Z",
"deliveredAt": "2024-07-07T09:38:47.103Z",
"createdAt": "2024-06-29T01:25:03.437Z",
"updatedAt": "2024-07-07T09:38:47.103Z"
}