invoices / #149
- fromUserId
- 62
- toUserId
- 200
- invoiceNumber
- INV-2026-0149
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 24219.13
- tax
- 4843.83
- total
- 29062.96
- currency
- EUR
- lineItems
-
[ { "description": "Marketing services", "quantity": 14, "unitPrice": 336.82, "lineTotal": 4715.48 }, { "description": "Hardware supply", "quantity": 28, "unitPrice": 414.05, "lineTotal": 11593.4 }, { "description": "System integration", "quantity": 34, "unitPrice": 134.85, "lineTotal": 4584.9 }, { "description": "Implementation services", "quantity": 35, "unitPrice": 95.01, "lineTotal": 3325.35 } ] - createdAt
Component variants
Medium
#149
#149
Small
invoices/149 curl -sS \
"https://example-data.com/api/v1/invoices/149" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/149"
);
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/149"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/149"
)
invoice = res.json() {
"id": 149,
"fromUserId": 62,
"toUserId": 200,
"invoiceNumber": "INV-2026-0149",
"status": "sent",
"issuedAt": "2026-01-20T09:54:52.682Z",
"dueAt": "2026-03-09T09:54:52.682Z",
"paidAt": null,
"subtotal": 24219.13,
"tax": 4843.83,
"total": 29062.96,
"currency": "EUR",
"lineItems": [
{
"description": "Marketing services",
"quantity": 14,
"unitPrice": 336.82,
"lineTotal": 4715.48
},
{
"description": "Hardware supply",
"quantity": 28,
"unitPrice": 414.05,
"lineTotal": 11593.4
},
{
"description": "System integration",
"quantity": 34,
"unitPrice": 134.85,
"lineTotal": 4584.9
},
{
"description": "Implementation services",
"quantity": 35,
"unitPrice": 95.01,
"lineTotal": 3325.35
}
],
"createdAt": "2026-01-19T23:43:26.867Z"
}