invoices / #139
- fromUserId
- 53
- toUserId
- 6
- invoiceNumber
- INV-2025-0139
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 13977.12
- tax
- 698.86
- total
- 14675.98
- currency
- AUD
- lineItems
-
[ { "description": "Photography services", "quantity": 25, "unitPrice": 498.36, "lineTotal": 12459 }, { "description": "Photography services", "quantity": 9, "unitPrice": 168.68, "lineTotal": 1518.12 } ] - createdAt
Component variants
Medium
#139
#139
Small
invoices/139 curl -sS \
"https://example-data.com/api/v1/invoices/139" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/139"
);
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/139"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/139"
)
invoice = res.json() {
"id": 139,
"fromUserId": 53,
"toUserId": 6,
"invoiceNumber": "INV-2025-0139",
"status": "sent",
"issuedAt": "2025-08-20T20:50:21.668Z",
"dueAt": "2025-08-31T20:50:21.668Z",
"paidAt": null,
"subtotal": 13977.12,
"tax": 698.86,
"total": 14675.98,
"currency": "AUD",
"lineItems": [
{
"description": "Photography services",
"quantity": 25,
"unitPrice": 498.36,
"lineTotal": 12459
},
{
"description": "Photography services",
"quantity": 9,
"unitPrice": 168.68,
"lineTotal": 1518.12
}
],
"createdAt": "2025-08-20T11:19:31.028Z"
}