invoices / #9
- fromUserId
- 76
- toUserId
- 180
- invoiceNumber
- INV-2026-0009
- status
- draft
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 20275.97
- tax
- 0
- total
- 20275.97
- currency
- EUR
- lineItems
-
[ { "description": "Software development", "quantity": 18, "unitPrice": 414.86, "lineTotal": 7467.48 }, { "description": "Design work", "quantity": 17, "unitPrice": 22.09, "lineTotal": 375.53 }, { "description": "Hardware supply", "quantity": 15, "unitPrice": 46.22, "lineTotal": 693.3 }, { "description": "Implementation services", "quantity": 23, "unitPrice": 476.62, "lineTotal": 10962.26 }, { "description": "License fee", "quantity": 2, "unitPrice": 388.7, "lineTotal": 777.4 } ] - createdAt
Component variants
Medium
#9
#9
Small
invoices/9 curl -sS \
"https://example-data.com/api/v1/invoices/9" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/9"
);
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/9"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/9"
)
invoice = res.json() {
"id": 9,
"fromUserId": 76,
"toUserId": 180,
"invoiceNumber": "INV-2026-0009",
"status": "draft",
"issuedAt": "2026-03-29T19:23:14.795Z",
"dueAt": "2026-05-19T19:23:14.795Z",
"paidAt": null,
"subtotal": 20275.97,
"tax": 0,
"total": 20275.97,
"currency": "EUR",
"lineItems": [
{
"description": "Software development",
"quantity": 18,
"unitPrice": 414.86,
"lineTotal": 7467.48
},
{
"description": "Design work",
"quantity": 17,
"unitPrice": 22.09,
"lineTotal": 375.53
},
{
"description": "Hardware supply",
"quantity": 15,
"unitPrice": 46.22,
"lineTotal": 693.3
},
{
"description": "Implementation services",
"quantity": 23,
"unitPrice": 476.62,
"lineTotal": 10962.26
},
{
"description": "License fee",
"quantity": 2,
"unitPrice": 388.7,
"lineTotal": 777.4
}
],
"createdAt": "2026-03-29T12:22:10.320Z"
}