invoices / #203
- fromUserId
- 216
- toUserId
- 50
- invoiceNumber
- INV-2025-0203
- status
- paid
- issuedAt
- dueAt
- paidAt
- subtotal
- 20250.4
- tax
- 0
- total
- 20250.4
- currency
- EUR
- lineItems
-
[ { "description": "Consulting services", "quantity": 22, "unitPrice": 491.46, "lineTotal": 10812.12 }, { "description": "Project management", "quantity": 23, "unitPrice": 410.36, "lineTotal": 9438.28 } ] - createdAt
Component variants
Medium
#203
#203
Small
invoices/203 curl -sS \
"https://example-data.com/api/v1/invoices/203" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/203"
);
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/203"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/203"
)
invoice = res.json() {
"id": 203,
"fromUserId": 216,
"toUserId": 50,
"invoiceNumber": "INV-2025-0203",
"status": "paid",
"issuedAt": "2025-11-19T01:57:24.462Z",
"dueAt": "2025-12-01T01:57:24.462Z",
"paidAt": "2025-11-26T11:00:30.936Z",
"subtotal": 20250.4,
"tax": 0,
"total": 20250.4,
"currency": "EUR",
"lineItems": [
{
"description": "Consulting services",
"quantity": 22,
"unitPrice": 491.46,
"lineTotal": 10812.12
},
{
"description": "Project management",
"quantity": 23,
"unitPrice": 410.36,
"lineTotal": 9438.28
}
],
"createdAt": "2025-11-18T07:31:21.613Z"
}