invoices / #88
- fromUserId
- 246
- toUserId
- 68
- invoiceNumber
- INV-2025-0088
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 37832.03
- tax
- 5674.8
- total
- 43506.83
- currency
- CAD
- lineItems
-
[ { "description": "Consulting services", "quantity": 37, "unitPrice": 101.46, "lineTotal": 3754.02 }, { "description": "Documentation", "quantity": 10, "unitPrice": 218.52, "lineTotal": 2185.2 }, { "description": "Accounting services", "quantity": 3, "unitPrice": 261.51, "lineTotal": 784.53 }, { "description": "Legal review", "quantity": 39, "unitPrice": 424.66, "lineTotal": 16561.74 }, { "description": "Legal review", "quantity": 22, "unitPrice": 282.29, "lineTotal": 6210.38 }, { "description": "Legal review", "quantity": 28, "unitPrice": 297.72, "lineTotal": 8336.16 } ] - createdAt
Component variants
Medium
#88
#88
Small
invoices/88 curl -sS \
"https://example-data.com/api/v1/invoices/88" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/88"
);
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/88"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/88"
)
invoice = res.json() {
"id": 88,
"fromUserId": 246,
"toUserId": 68,
"invoiceNumber": "INV-2025-0088",
"status": "sent",
"issuedAt": "2025-11-11T01:51:39.912Z",
"dueAt": "2025-11-24T01:51:39.912Z",
"paidAt": null,
"subtotal": 37832.03,
"tax": 5674.8,
"total": 43506.83,
"currency": "CAD",
"lineItems": [
{
"description": "Consulting services",
"quantity": 37,
"unitPrice": 101.46,
"lineTotal": 3754.02
},
{
"description": "Documentation",
"quantity": 10,
"unitPrice": 218.52,
"lineTotal": 2185.2
},
{
"description": "Accounting services",
"quantity": 3,
"unitPrice": 261.51,
"lineTotal": 784.53
},
{
"description": "Legal review",
"quantity": 39,
"unitPrice": 424.66,
"lineTotal": 16561.74
},
{
"description": "Legal review",
"quantity": 22,
"unitPrice": 282.29,
"lineTotal": 6210.38
},
{
"description": "Legal review",
"quantity": 28,
"unitPrice": 297.72,
"lineTotal": 8336.16
}
],
"createdAt": "2025-11-10T23:05:22.265Z"
}