invoices / #43
- fromUserId
- 88
- toUserId
- 99
- invoiceNumber
- INV-2025-0043
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 14297.86
- tax
- 1429.79
- total
- 15727.65
- currency
- GBP
- lineItems
-
[ { "description": "Photography services", "quantity": 37, "unitPrice": 366.45, "lineTotal": 13558.65 }, { "description": "Content writing", "quantity": 3, "unitPrice": 192.13, "lineTotal": 576.39 }, { "description": "Research services", "quantity": 1, "unitPrice": 162.82, "lineTotal": 162.82 } ] - createdAt
Component variants
Medium
#43
#43
Small
invoices/43 curl -sS \
"https://example-data.com/api/v1/invoices/43" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/43"
);
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/43"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/43"
)
invoice = res.json() {
"id": 43,
"fromUserId": 88,
"toUserId": 99,
"invoiceNumber": "INV-2025-0043",
"status": "sent",
"issuedAt": "2025-12-10T07:35:12.322Z",
"dueAt": "2026-01-03T07:35:12.322Z",
"paidAt": null,
"subtotal": 14297.86,
"tax": 1429.79,
"total": 15727.65,
"currency": "GBP",
"lineItems": [
{
"description": "Photography services",
"quantity": 37,
"unitPrice": 366.45,
"lineTotal": 13558.65
},
{
"description": "Content writing",
"quantity": 3,
"unitPrice": 192.13,
"lineTotal": 576.39
},
{
"description": "Research services",
"quantity": 1,
"unitPrice": 162.82,
"lineTotal": 162.82
}
],
"createdAt": "2025-12-09T17:02:47.241Z"
}