invoices / #185
- fromUserId
- 230
- toUserId
- 184
- invoiceNumber
- INV-2025-0185
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 13861.75
- tax
- 1386.18
- total
- 15247.93
- currency
- USD
- lineItems
-
[ { "description": "Legal review", "quantity": 17, "unitPrice": 89.68, "lineTotal": 1524.56 }, { "description": "Training session", "quantity": 16, "unitPrice": 58.43, "lineTotal": 934.88 }, { "description": "Accounting services", "quantity": 11, "unitPrice": 194.18, "lineTotal": 2135.98 }, { "description": "Photography services", "quantity": 19, "unitPrice": 212.95, "lineTotal": 4046.05 }, { "description": "License fee", "quantity": 5, "unitPrice": 64.04, "lineTotal": 320.2 }, { "description": "Design work", "quantity": 24, "unitPrice": 204.17, "lineTotal": 4900.08 } ] - createdAt
Component variants
Medium
#185
#185
Small
invoices/185 curl -sS \
"https://example-data.com/api/v1/invoices/185" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/185"
);
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/185"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/185"
)
invoice = res.json() {
"id": 185,
"fromUserId": 230,
"toUserId": 184,
"invoiceNumber": "INV-2025-0185",
"status": "sent",
"issuedAt": "2025-12-12T05:45:09.854Z",
"dueAt": "2026-01-15T05:45:09.854Z",
"paidAt": null,
"subtotal": 13861.75,
"tax": 1386.18,
"total": 15247.93,
"currency": "USD",
"lineItems": [
{
"description": "Legal review",
"quantity": 17,
"unitPrice": 89.68,
"lineTotal": 1524.56
},
{
"description": "Training session",
"quantity": 16,
"unitPrice": 58.43,
"lineTotal": 934.88
},
{
"description": "Accounting services",
"quantity": 11,
"unitPrice": 194.18,
"lineTotal": 2135.98
},
{
"description": "Photography services",
"quantity": 19,
"unitPrice": 212.95,
"lineTotal": 4046.05
},
{
"description": "License fee",
"quantity": 5,
"unitPrice": 64.04,
"lineTotal": 320.2
},
{
"description": "Design work",
"quantity": 24,
"unitPrice": 204.17,
"lineTotal": 4900.08
}
],
"createdAt": "2025-12-11T14:24:36.560Z"
}