invoices / #140
- fromUserId
- 233
- toUserId
- 82
- invoiceNumber
- INV-2025-0140
- status
- viewed
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 36221.86
- tax
- 3622.19
- total
- 39844.05
- currency
- CAD
- lineItems
-
[ { "description": "Content writing", "quantity": 32, "unitPrice": 104.85, "lineTotal": 3355.2 }, { "description": "Legal review", "quantity": 31, "unitPrice": 120.78, "lineTotal": 3744.18 }, { "description": "Design work", "quantity": 30, "unitPrice": 470.7, "lineTotal": 14121 }, { "description": "Implementation services", "quantity": 34, "unitPrice": 441.22, "lineTotal": 15001.48 } ] - createdAt
Component variants
Medium
#140
#140
Small
invoices/140 curl -sS \
"https://example-data.com/api/v1/invoices/140" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/140"
);
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/140"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/140"
)
invoice = res.json() {
"id": 140,
"fromUserId": 233,
"toUserId": 82,
"invoiceNumber": "INV-2025-0140",
"status": "viewed",
"issuedAt": "2025-06-28T10:26:26.811Z",
"dueAt": "2025-08-02T10:26:26.811Z",
"paidAt": null,
"subtotal": 36221.86,
"tax": 3622.19,
"total": 39844.05,
"currency": "CAD",
"lineItems": [
{
"description": "Content writing",
"quantity": 32,
"unitPrice": 104.85,
"lineTotal": 3355.2
},
{
"description": "Legal review",
"quantity": 31,
"unitPrice": 120.78,
"lineTotal": 3744.18
},
{
"description": "Design work",
"quantity": 30,
"unitPrice": 470.7,
"lineTotal": 14121
},
{
"description": "Implementation services",
"quantity": 34,
"unitPrice": 441.22,
"lineTotal": 15001.48
}
],
"createdAt": "2025-06-27T16:33:45.693Z"
}