invoices / #47
- fromUserId
- 115
- toUserId
- 217
- invoiceNumber
- INV-2025-0047
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 22450.24
- tax
- 1122.51
- total
- 23572.75
- currency
- AUD
- lineItems
-
[ { "description": "Implementation services", "quantity": 8, "unitPrice": 408.65, "lineTotal": 3269.2 }, { "description": "License fee", "quantity": 19, "unitPrice": 390.82, "lineTotal": 7425.58 }, { "description": "Software development", "quantity": 22, "unitPrice": 397.09, "lineTotal": 8735.98 }, { "description": "Data analysis", "quantity": 29, "unitPrice": 104.12, "lineTotal": 3019.48 } ] - createdAt
Component variants
Medium
#47
#47
Small
invoices/47 curl -sS \
"https://example-data.com/api/v1/invoices/47" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/47"
);
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/47"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/47"
)
invoice = res.json() {
"id": 47,
"fromUserId": 115,
"toUserId": 217,
"invoiceNumber": "INV-2025-0047",
"status": "paid",
"issuedAt": "2025-07-08T12:37:02.504Z",
"dueAt": "2025-07-17T12:37:02.504Z",
"paidAt": "2025-07-13T00:36:10.894Z",
"subtotal": 22450.24,
"tax": 1122.51,
"total": 23572.75,
"currency": "AUD",
"lineItems": [
{
"description": "Implementation services",
"quantity": 8,
"unitPrice": 408.65,
"lineTotal": 3269.2
},
{
"description": "License fee",
"quantity": 19,
"unitPrice": 390.82,
"lineTotal": 7425.58
},
{
"description": "Software development",
"quantity": 22,
"unitPrice": 397.09,
"lineTotal": 8735.98
},
{
"description": "Data analysis",
"quantity": 29,
"unitPrice": 104.12,
"lineTotal": 3019.48
}
],
"createdAt": "2025-07-08T08:37:36.137Z"
}