invoices / #160
- fromUserId
- 217
- toUserId
- 242
- invoiceNumber
- INV-2026-0160
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 32574.06
- tax
- 1628.7
- total
- 34202.76
- currency
- EUR
- lineItems
-
[ { "description": "Marketing services", "quantity": 14, "unitPrice": 384.88, "lineTotal": 5388.32 }, { "description": "Quality assurance", "quantity": 25, "unitPrice": 335.13, "lineTotal": 8378.25 }, { "description": "Hardware supply", "quantity": 27, "unitPrice": 467.25, "lineTotal": 12615.75 }, { "description": "Hardware supply", "quantity": 17, "unitPrice": 364.22, "lineTotal": 6191.74 } ] - createdAt
Component variants
Medium
#160
#160
Small
invoices/160 curl -sS \
"https://example-data.com/api/v1/invoices/160" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/160"
);
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/160"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/160"
)
invoice = res.json() {
"id": 160,
"fromUserId": 217,
"toUserId": 242,
"invoiceNumber": "INV-2026-0160",
"status": "paid",
"issuedAt": "2026-01-02T19:13:00.334Z",
"dueAt": "2026-02-28T19:13:00.334Z",
"paidAt": "2026-02-13T11:46:31.226Z",
"subtotal": 32574.06,
"tax": 1628.7,
"total": 34202.76,
"currency": "EUR",
"lineItems": [
{
"description": "Marketing services",
"quantity": 14,
"unitPrice": 384.88,
"lineTotal": 5388.32
},
{
"description": "Quality assurance",
"quantity": 25,
"unitPrice": 335.13,
"lineTotal": 8378.25
},
{
"description": "Hardware supply",
"quantity": 27,
"unitPrice": 467.25,
"lineTotal": 12615.75
},
{
"description": "Hardware supply",
"quantity": 17,
"unitPrice": 364.22,
"lineTotal": 6191.74
}
],
"createdAt": "2026-01-02T00:46:06.474Z"
}