invoices / #90
- fromUserId
- 242
- toUserId
- 149
- invoiceNumber
- INV-2025-0090
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 5378.13
- tax
- 806.72
- total
- 6184.85
- currency
- CAD
- lineItems
-
[ { "description": "Consulting services", "quantity": 17, "unitPrice": 152.05, "lineTotal": 2584.85 }, { "description": "Implementation services", "quantity": 7, "unitPrice": 399.04, "lineTotal": 2793.28 } ] - createdAt
Component variants
Medium
#90
#90
Small
invoices/90 curl -sS \
"https://example-data.com/api/v1/invoices/90" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/90"
);
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/90"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/90"
)
invoice = res.json() {
"id": 90,
"fromUserId": 242,
"toUserId": 149,
"invoiceNumber": "INV-2025-0090",
"status": "sent",
"issuedAt": "2025-04-26T15:43:41.531Z",
"dueAt": "2025-05-07T15:43:41.531Z",
"paidAt": null,
"subtotal": 5378.13,
"tax": 806.72,
"total": 6184.85,
"currency": "CAD",
"lineItems": [
{
"description": "Consulting services",
"quantity": 17,
"unitPrice": 152.05,
"lineTotal": 2584.85
},
{
"description": "Implementation services",
"quantity": 7,
"unitPrice": 399.04,
"lineTotal": 2793.28
}
],
"createdAt": "2025-04-25T16:53:12.018Z"
}