invoices / #208
- fromUserId
- 179
- toUserId
- 232
- invoiceNumber
- INV-2025-0208
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 18105.55
- tax
- 1448.44
- total
- 19553.99
- currency
- CAD
- lineItems
-
[ { "description": "Accounting services", "quantity": 35, "unitPrice": 287.51, "lineTotal": 10062.85 }, { "description": "Photography services", "quantity": 17, "unitPrice": 473.1, "lineTotal": 8042.7 } ] - createdAt
Component variants
Medium
#208
#208
Small
invoices/208 curl -sS \
"https://example-data.com/api/v1/invoices/208" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/208"
);
const invoice = await res.json();import type { Invoice } from "https://example-data.com/types/invoices.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/invoices/208"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/208"
)
invoice = res.json() {
"id": 208,
"fromUserId": 179,
"toUserId": 232,
"invoiceNumber": "INV-2025-0208",
"status": "sent",
"issuedAt": "2025-12-09T19:20:09.370Z",
"dueAt": "2026-01-20T19:20:09.370Z",
"paidAt": null,
"subtotal": 18105.55,
"tax": 1448.44,
"total": 19553.99,
"currency": "CAD",
"lineItems": [
{
"description": "Accounting services",
"quantity": 35,
"unitPrice": 287.51,
"lineTotal": 10062.85
},
{
"description": "Photography services",
"quantity": 17,
"unitPrice": 473.1,
"lineTotal": 8042.7
}
],
"createdAt": "2025-12-09T17:52:54.628Z"
}