invoices / #232
- fromUserId
- 127
- toUserId
- 223
- invoiceNumber
- INV-2026-0232
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 26374.14
- tax
- 3956.12
- total
- 30330.26
- currency
- EUR
- lineItems
-
[ { "description": "Accounting services", "quantity": 31, "unitPrice": 477.72, "lineTotal": 14809.32 }, { "description": "Software development", "quantity": 40, "unitPrice": 169.84, "lineTotal": 6793.6 }, { "description": "Quality assurance", "quantity": 17, "unitPrice": 280.66, "lineTotal": 4771.22 } ] - createdAt
Component variants
Medium
#232
#232
Small
invoices/232 curl -sS \
"https://example-data.com/api/v1/invoices/232" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/232"
);
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/232"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/232"
)
invoice = res.json() {
"id": 232,
"fromUserId": 127,
"toUserId": 223,
"invoiceNumber": "INV-2026-0232",
"status": "viewed",
"issuedAt": "2026-04-27T05:38:21.604Z",
"dueAt": "2026-06-11T05:38:21.604Z",
"paidAt": null,
"subtotal": 26374.14,
"tax": 3956.12,
"total": 30330.26,
"currency": "EUR",
"lineItems": [
{
"description": "Accounting services",
"quantity": 31,
"unitPrice": 477.72,
"lineTotal": 14809.32
},
{
"description": "Software development",
"quantity": 40,
"unitPrice": 169.84,
"lineTotal": 6793.6
},
{
"description": "Quality assurance",
"quantity": 17,
"unitPrice": 280.66,
"lineTotal": 4771.22
}
],
"createdAt": "2026-04-27T00:23:49.851Z"
}