orders #699
- userId
-
Jacynthe Sawayn @jacynthe_sawayn71
- status
- pending
- currency
- USD
- subtotal
- 2846.35
- tax
- 249.06
- shipping
- 0
- total
- 3095.41
- placedAt
- shippedAt
- —
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #699
#699
#699
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/699" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/699" ); 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/699"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/699"
)
order = res.json() Response
{
"id": 699,
"userId": 146,
"status": "pending",
"currency": "USD",
"subtotal": 2846.35,
"tax": 249.06,
"shipping": 0,
"total": 3095.41,
"placedAt": "2024-06-14T15:06:00.231Z",
"shippedAt": null,
"deliveredAt": null,
"createdAt": "2024-06-14T15:06:00.231Z",
"updatedAt": "2024-06-14T15:06:00.231Z"
}