invoices / #32
- fromUserId
- 219
- toUserId
- 102
- invoiceNumber
- INV-2025-0032
- status
- sent
- issuedAt
- dueAt
- paidAt
- —
- subtotal
- 22451.61
- tax
- 4490.32
- total
- 26941.93
- currency
- EUR
- lineItems
-
[ { "description": "Photography services", "quantity": 16, "unitPrice": 56.17, "lineTotal": 898.72 }, { "description": "Photography services", "quantity": 39, "unitPrice": 81.71, "lineTotal": 3186.69 }, { "description": "Research services", "quantity": 20, "unitPrice": 126.62, "lineTotal": 2532.4 }, { "description": "Legal review", "quantity": 28, "unitPrice": 418.9, "lineTotal": 11729.2 }, { "description": "Maintenance contract", "quantity": 20, "unitPrice": 205.23, "lineTotal": 4104.6 } ] - createdAt
Component variants
Medium
#32
#32
Small
invoices/32 curl -sS \
"https://example-data.com/api/v1/invoices/32" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/invoices/32"
);
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/32"
);
const invoice = (await res.json()) as Invoice;import requests
res = requests.get(
"https://example-data.com/api/v1/invoices/32"
)
invoice = res.json() {
"id": 32,
"fromUserId": 219,
"toUserId": 102,
"invoiceNumber": "INV-2025-0032",
"status": "sent",
"issuedAt": "2025-08-01T19:27:43.896Z",
"dueAt": "2025-09-20T19:27:43.896Z",
"paidAt": null,
"subtotal": 22451.61,
"tax": 4490.32,
"total": 26941.93,
"currency": "EUR",
"lineItems": [
{
"description": "Photography services",
"quantity": 16,
"unitPrice": 56.17,
"lineTotal": 898.72
},
{
"description": "Photography services",
"quantity": 39,
"unitPrice": 81.71,
"lineTotal": 3186.69
},
{
"description": "Research services",
"quantity": 20,
"unitPrice": 126.62,
"lineTotal": 2532.4
},
{
"description": "Legal review",
"quantity": 28,
"unitPrice": 418.9,
"lineTotal": 11729.2
},
{
"description": "Maintenance contract",
"quantity": 20,
"unitPrice": 205.23,
"lineTotal": 4104.6
}
],
"createdAt": "2025-08-01T06:56:39.329Z"
}