orders #858
- userId
-
Merl Jenkins @merl.jenkins6
- status
- refunded
- currency
- USD
- subtotal
- 2747.02
- tax
- 240.36
- shipping
- 0
- total
- 2987.38
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #858
#858
#858
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/858" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/858" ); 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/858"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/858"
)
order = res.json() Response
{
"id": 858,
"userId": 60,
"status": "refunded",
"currency": "USD",
"subtotal": 2747.02,
"tax": 240.36,
"shipping": 0,
"total": 2987.38,
"placedAt": "2024-09-25T15:33:26.418Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-09-25T15:33:26.418Z",
"updatedAt": "2024-09-25T15:33:26.418Z"
}