invoices / #229
- fromUserId
- 35
- toUserId
- 194
- invoiceNumber
- INV-2026-0229
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 31401.82
- tax
- 6280.36
- total
- 37682.18
- currency
- EUR
- lineItems
-
[ { "description": "System integration", "quantity": 27, "unitPrice": 371.04, "lineTotal": 10018.08 }, { "description": "Legal review", "quantity": 28, "unitPrice": 242.49, "lineTotal": 6789.72 }, { "description": "Research services", "quantity": 17, "unitPrice": 169.82, "lineTotal": 2886.94 }, { "description": "Consulting services", "quantity": 31, "unitPrice": 53.06, "lineTotal": 1644.86 }, { "description": "Research services", "quantity": 38, "unitPrice": 214.78, "lineTotal": 8161.64 }, { "description": "System integration", "quantity": 22, "unitPrice": 86.39, "lineTotal": 1900.58 } ] - createdAt
Component variants
Medium
#229
#229
Small
invoices/229 curl -sS \
"https://example-data.com/api/v1/invoices/229" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/229"
);
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/229"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/229"
)
invoice = res.json() {
"id": 229,
"fromUserId": 35,
"toUserId": 194,
"invoiceNumber": "INV-2026-0229",
"status": "paid",
"issuedAt": "2026-04-26T02:08:55.436Z",
"dueAt": "2026-05-12T02:08:55.436Z",
"paidAt": "2026-05-06T16:45:14.166Z",
"subtotal": 31401.82,
"tax": 6280.36,
"total": 37682.18,
"currency": "EUR",
"lineItems": [
{
"description": "System integration",
"quantity": 27,
"unitPrice": 371.04,
"lineTotal": 10018.08
},
{
"description": "Legal review",
"quantity": 28,
"unitPrice": 242.49,
"lineTotal": 6789.72
},
{
"description": "Research services",
"quantity": 17,
"unitPrice": 169.82,
"lineTotal": 2886.94
},
{
"description": "Consulting services",
"quantity": 31,
"unitPrice": 53.06,
"lineTotal": 1644.86
},
{
"description": "Research services",
"quantity": 38,
"unitPrice": 214.78,
"lineTotal": 8161.64
},
{
"description": "System integration",
"quantity": 22,
"unitPrice": 86.39,
"lineTotal": 1900.58
}
],
"createdAt": "2026-04-25T09:02:29.026Z"
}