invoices / #141
- fromUserId
- 178
- toUserId
- 172
- invoiceNumber
- INV-2026-0141
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 16300.37
- tax
- 2445.06
- total
- 18745.43
- currency
- EUR
- lineItems
-
[ { "description": "Implementation services", "quantity": 23, "unitPrice": 351.92, "lineTotal": 8094.16 }, { "description": "System integration", "quantity": 9, "unitPrice": 365.23, "lineTotal": 3287.07 }, { "description": "Data analysis", "quantity": 6, "unitPrice": 344.12, "lineTotal": 2064.72 }, { "description": "Software development", "quantity": 5, "unitPrice": 125.15, "lineTotal": 625.75 }, { "description": "Maintenance contract", "quantity": 12, "unitPrice": 152.15, "lineTotal": 1825.8 }, { "description": "Consulting services", "quantity": 1, "unitPrice": 402.87, "lineTotal": 402.87 } ] - createdAt
Component variants
Medium
#141
#141
Small
invoices/141 curl -sS \
"https://example-data.com/api/v1/invoices/141" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/141"
);
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/141"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/141"
)
invoice = res.json() {
"id": 141,
"fromUserId": 178,
"toUserId": 172,
"invoiceNumber": "INV-2026-0141",
"status": "viewed",
"issuedAt": "2026-02-24T07:09:59.072Z",
"dueAt": "2026-03-15T07:09:59.072Z",
"paidAt": null,
"subtotal": 16300.37,
"tax": 2445.06,
"total": 18745.43,
"currency": "EUR",
"lineItems": [
{
"description": "Implementation services",
"quantity": 23,
"unitPrice": 351.92,
"lineTotal": 8094.16
},
{
"description": "System integration",
"quantity": 9,
"unitPrice": 365.23,
"lineTotal": 3287.07
},
{
"description": "Data analysis",
"quantity": 6,
"unitPrice": 344.12,
"lineTotal": 2064.72
},
{
"description": "Software development",
"quantity": 5,
"unitPrice": 125.15,
"lineTotal": 625.75
},
{
"description": "Maintenance contract",
"quantity": 12,
"unitPrice": 152.15,
"lineTotal": 1825.8
},
{
"description": "Consulting services",
"quantity": 1,
"unitPrice": 402.87,
"lineTotal": 402.87
}
],
"createdAt": "2026-02-23T22:34:21.823Z"
}