invoices / #179
- fromUserId
- 136
- toUserId
- 72
- invoiceNumber
- INV-2026-0179
- status
- overdue
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 15867.96
- tax
- 793.4
- total
- 16661.36
- currency
- USD
- lineItems
-
[ { "description": "Technical support", "quantity": 25, "unitPrice": 272.03, "lineTotal": 6800.75 }, { "description": "Training session", "quantity": 23, "unitPrice": 250.93, "lineTotal": 5771.39 }, { "description": "Legal review", "quantity": 11, "unitPrice": 299.62, "lineTotal": 3295.82 } ] - createdAt
Component variants
Medium
#179
#179
Small
invoices/179 curl -sS \
"https://example-data.com/api/v1/invoices/179" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/179"
);
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/179"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/179"
)
invoice = res.json() {
"id": 179,
"fromUserId": 136,
"toUserId": 72,
"invoiceNumber": "INV-2026-0179",
"status": "overdue",
"issuedAt": "2026-03-14T15:05:00.332Z",
"dueAt": "2026-04-05T15:05:00.332Z",
"paidAt": null,
"subtotal": 15867.96,
"tax": 793.4,
"total": 16661.36,
"currency": "USD",
"lineItems": [
{
"description": "Technical support",
"quantity": 25,
"unitPrice": 272.03,
"lineTotal": 6800.75
},
{
"description": "Training session",
"quantity": 23,
"unitPrice": 250.93,
"lineTotal": 5771.39
},
{
"description": "Legal review",
"quantity": 11,
"unitPrice": 299.62,
"lineTotal": 3295.82
}
],
"createdAt": "2026-03-14T11:50:29.807Z"
}