orders #770
- userId
-
Green Kozey @green_kozey22
- status
- shipped
- currency
- USD
- subtotal
- 1242.15
- tax
- 108.69
- shipping
- 0
- total
- 1350.84
- placedAt
- shippedAt
- deliveredAt
- —
- createdAt
- updatedAt
Overview
orders / #770
#770
#770
Request
curl example
curl -sS \ "https://example-data.com/api/v1/orders/770" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/orders/770" ); 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/770"
);
const order = (await res.json()) as Order; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/orders/770"
)
order = res.json() Response
{
"id": 770,
"userId": 49,
"status": "shipped",
"currency": "USD",
"subtotal": 1242.15,
"tax": 108.69,
"shipping": 0,
"total": 1350.84,
"placedAt": "2024-06-22T18:55:04.997Z",
"shippedAt": "2024-06-24T05:47:02.818Z",
"deliveredAt": null,
"createdAt": "2024-06-22T18:55:04.997Z",
"updatedAt": "2024-06-24T05:47:02.818Z"
}