invoices / #226
- fromUserId
- 94
- toUserId
- 118
- invoiceNumber
- INV-2026-0226
- status
- draft
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 22920.29
- tax
- 1146.01
- total
- 24066.3
- currency
- AUD
- lineItems
-
[ { "description": "Training session", "quantity": 1, "unitPrice": 263.03, "lineTotal": 263.03 }, { "description": "Legal review", "quantity": 35, "unitPrice": 109.38, "lineTotal": 3828.3 }, { "description": "Accounting services", "quantity": 27, "unitPrice": 430.23, "lineTotal": 11616.21 }, { "description": "Quality assurance", "quantity": 25, "unitPrice": 288.51, "lineTotal": 7212.75 } ] - createdAt
Component variants
Medium
#226
#226
Small
invoices/226 curl -sS \
"https://example-data.com/api/v1/invoices/226" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/226"
);
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/226"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/226"
)
invoice = res.json() {
"id": 226,
"fromUserId": 94,
"toUserId": 118,
"invoiceNumber": "INV-2026-0226",
"status": "draft",
"issuedAt": "2026-04-18T05:51:42.404Z",
"dueAt": "2026-06-16T05:51:42.404Z",
"paidAt": null,
"subtotal": 22920.29,
"tax": 1146.01,
"total": 24066.3,
"currency": "AUD",
"lineItems": [
{
"description": "Training session",
"quantity": 1,
"unitPrice": 263.03,
"lineTotal": 263.03
},
{
"description": "Legal review",
"quantity": 35,
"unitPrice": 109.38,
"lineTotal": 3828.3
},
{
"description": "Accounting services",
"quantity": 27,
"unitPrice": 430.23,
"lineTotal": 11616.21
},
{
"description": "Quality assurance",
"quantity": 25,
"unitPrice": 288.51,
"lineTotal": 7212.75
}
],
"createdAt": "2026-04-17T08:27:05.326Z"
}