invoices / #189
- fromUserId
- 180
- toUserId
- 82
- invoiceNumber
- INV-2026-0189
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 12335.22
- tax
- 0
- total
- 12335.22
- currency
- CAD
- lineItems
-
[ { "description": "System integration", "quantity": 4, "unitPrice": 30.3, "lineTotal": 121.2 }, { "description": "Photography services", "quantity": 8, "unitPrice": 495.17, "lineTotal": 3961.36 }, { "description": "Design work", "quantity": 8, "unitPrice": 248.94, "lineTotal": 1991.52 }, { "description": "Documentation", "quantity": 1, "unitPrice": 247.48, "lineTotal": 247.48 }, { "description": "Hardware supply", "quantity": 22, "unitPrice": 240.57, "lineTotal": 5292.54 }, { "description": "Quality assurance", "quantity": 2, "unitPrice": 360.56, "lineTotal": 721.12 } ] - createdAt
Component variants
Medium
#189
#189
Small
invoices/189 curl -sS \
"https://example-data.com/api/v1/invoices/189" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/189"
);
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/189"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/189"
)
invoice = res.json() {
"id": 189,
"fromUserId": 180,
"toUserId": 82,
"invoiceNumber": "INV-2026-0189",
"status": "overdue",
"issuedAt": "2026-01-16T07:20:48.363Z",
"dueAt": "2026-01-26T07:20:48.363Z",
"paidAt": null,
"subtotal": 12335.22,
"tax": 0,
"total": 12335.22,
"currency": "CAD",
"lineItems": [
{
"description": "System integration",
"quantity": 4,
"unitPrice": 30.3,
"lineTotal": 121.2
},
{
"description": "Photography services",
"quantity": 8,
"unitPrice": 495.17,
"lineTotal": 3961.36
},
{
"description": "Design work",
"quantity": 8,
"unitPrice": 248.94,
"lineTotal": 1991.52
},
{
"description": "Documentation",
"quantity": 1,
"unitPrice": 247.48,
"lineTotal": 247.48
},
{
"description": "Hardware supply",
"quantity": 22,
"unitPrice": 240.57,
"lineTotal": 5292.54
},
{
"description": "Quality assurance",
"quantity": 2,
"unitPrice": 360.56,
"lineTotal": 721.12
}
],
"createdAt": "2026-01-15T14:38:26.983Z"
}