invoices / #170
- fromUserId
- 97
- toUserId
- 211
- invoiceNumber
- INV-2026-0170
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 7998.66
- tax
- 399.93
- total
- 8398.59
- currency
- AUD
- lineItems
-
[ { "description": "Content writing", "quantity": 7, "unitPrice": 457.35, "lineTotal": 3201.45 }, { "description": "Accounting services", "quantity": 11, "unitPrice": 436.11, "lineTotal": 4797.21 } ] - createdAt
Component variants
Medium
#170
#170
Small
invoices/170 curl -sS \
"https://example-data.com/api/v1/invoices/170" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/170"
);
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/170"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/170"
)
invoice = res.json() {
"id": 170,
"fromUserId": 97,
"toUserId": 211,
"invoiceNumber": "INV-2026-0170",
"status": "overdue",
"issuedAt": "2026-03-12T14:12:43.875Z",
"dueAt": "2026-04-16T14:12:43.875Z",
"paidAt": null,
"subtotal": 7998.66,
"tax": 399.93,
"total": 8398.59,
"currency": "AUD",
"lineItems": [
{
"description": "Content writing",
"quantity": 7,
"unitPrice": 457.35,
"lineTotal": 3201.45
},
{
"description": "Accounting services",
"quantity": 11,
"unitPrice": 436.11,
"lineTotal": 4797.21
}
],
"createdAt": "2026-03-11T20:07:41.759Z"
}