invoices / #35
- fromUserId
- 219
- toUserId
- 237
- invoiceNumber
- INV-2026-0035
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 22315.9
- tax
- 0
- total
- 22315.9
- currency
- USD
- lineItems
-
[ { "description": "Accounting services", "quantity": 12, "unitPrice": 399.11, "lineTotal": 4789.32 }, { "description": "Marketing services", "quantity": 26, "unitPrice": 262.43, "lineTotal": 6823.18 }, { "description": "Implementation services", "quantity": 23, "unitPrice": 289.5, "lineTotal": 6658.5 }, { "description": "Marketing services", "quantity": 30, "unitPrice": 134.83, "lineTotal": 4044.9 } ] - createdAt
Component variants
Medium
#35
#35
Small
invoices/35 curl -sS \
"https://example-data.com/api/v1/invoices/35" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/35"
);
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/35"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/35"
)
invoice = res.json() {
"id": 35,
"fromUserId": 219,
"toUserId": 237,
"invoiceNumber": "INV-2026-0035",
"status": "paid",
"issuedAt": "2026-03-14T17:24:35.509Z",
"dueAt": "2026-04-03T17:24:35.509Z",
"paidAt": "2026-03-24T12:01:06.936Z",
"subtotal": 22315.9,
"tax": 0,
"total": 22315.9,
"currency": "USD",
"lineItems": [
{
"description": "Accounting services",
"quantity": 12,
"unitPrice": 399.11,
"lineTotal": 4789.32
},
{
"description": "Marketing services",
"quantity": 26,
"unitPrice": 262.43,
"lineTotal": 6823.18
},
{
"description": "Implementation services",
"quantity": 23,
"unitPrice": 289.5,
"lineTotal": 6658.5
},
{
"description": "Marketing services",
"quantity": 30,
"unitPrice": 134.83,
"lineTotal": 4044.9
}
],
"createdAt": "2026-03-14T03:57:32.111Z"
}