invoices / #45
- fromUserId
- 29
- toUserId
- 182
- invoiceNumber
- INV-2025-0045
- status
- draft
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 23995.59
- tax
- 0
- total
- 23995.59
- currency
- AUD
- lineItems
-
[ { "description": "Training session", "quantity": 36, "unitPrice": 418.74, "lineTotal": 15074.64 }, { "description": "Content writing", "quantity": 5, "unitPrice": 284.66, "lineTotal": 1423.3 }, { "description": "Hardware supply", "quantity": 27, "unitPrice": 228.7, "lineTotal": 6174.9 }, { "description": "Photography services", "quantity": 5, "unitPrice": 264.55, "lineTotal": 1322.75 } ] - createdAt
Component variants
Medium
#45
#45
Small
invoices/45 curl -sS \
"https://example-data.com/api/v1/invoices/45" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/45"
);
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/45"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/45"
)
invoice = res.json() {
"id": 45,
"fromUserId": 29,
"toUserId": 182,
"invoiceNumber": "INV-2025-0045",
"status": "draft",
"issuedAt": "2025-08-25T18:29:54.995Z",
"dueAt": "2025-10-10T18:29:54.995Z",
"paidAt": null,
"subtotal": 23995.59,
"tax": 0,
"total": 23995.59,
"currency": "AUD",
"lineItems": [
{
"description": "Training session",
"quantity": 36,
"unitPrice": 418.74,
"lineTotal": 15074.64
},
{
"description": "Content writing",
"quantity": 5,
"unitPrice": 284.66,
"lineTotal": 1423.3
},
{
"description": "Hardware supply",
"quantity": 27,
"unitPrice": 228.7,
"lineTotal": 6174.9
},
{
"description": "Photography services",
"quantity": 5,
"unitPrice": 264.55,
"lineTotal": 1322.75
}
],
"createdAt": "2025-08-25T14:07:14.600Z"
}