invoices / #31
- fromUserId
- 24
- toUserId
- 89
- invoiceNumber
- INV-2026-0031
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 28757.7
- tax
- 2875.77
- total
- 31633.47
- currency
- EUR
- lineItems
-
[ { "description": "Consulting services", "quantity": 34, "unitPrice": 459.32, "lineTotal": 15616.88 }, { "description": "Software development", "quantity": 11, "unitPrice": 149.19, "lineTotal": 1641.09 }, { "description": "Design work", "quantity": 11, "unitPrice": 259.41, "lineTotal": 2853.51 }, { "description": "Maintenance contract", "quantity": 22, "unitPrice": 393.01, "lineTotal": 8646.22 } ] - createdAt
Component variants
Medium
#31
#31
Small
invoices/31 curl -sS \
"https://example-data.com/api/v1/invoices/31" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/31"
);
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/31"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/31"
)
invoice = res.json() {
"id": 31,
"fromUserId": 24,
"toUserId": 89,
"invoiceNumber": "INV-2026-0031",
"status": "sent",
"issuedAt": "2026-03-29T00:22:32.467Z",
"dueAt": "2026-05-01T00:22:32.467Z",
"paidAt": null,
"subtotal": 28757.7,
"tax": 2875.77,
"total": 31633.47,
"currency": "EUR",
"lineItems": [
{
"description": "Consulting services",
"quantity": 34,
"unitPrice": 459.32,
"lineTotal": 15616.88
},
{
"description": "Software development",
"quantity": 11,
"unitPrice": 149.19,
"lineTotal": 1641.09
},
{
"description": "Design work",
"quantity": 11,
"unitPrice": 259.41,
"lineTotal": 2853.51
},
{
"description": "Maintenance contract",
"quantity": 22,
"unitPrice": 393.01,
"lineTotal": 8646.22
}
],
"createdAt": "2026-03-28T00:38:02.189Z"
}